You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2001/07/13 06:02:55 UTC
cvs commit: xml-cocoon2/src/org/apache/cocoon/components/profiler Profiler.java ProfilerGenerator.java ProfilingCachingEventPipeline.java ProfilingNonCachingEventPipeline.java
vgritsenko 01/07/12 21:02:54
Modified: src/org/apache/cocoon/components/profiler Profiler.java
ProfilerGenerator.java
ProfilingCachingEventPipeline.java
ProfilingNonCachingEventPipeline.java
Log:
Declare Profiler role
Revision Changes Path
1.2 +3 -1 xml-cocoon2/src/org/apache/cocoon/components/profiler/Profiler.java
Index: Profiler.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/profiler/Profiler.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Profiler.java 2001/07/05 15:03:28 1.1
+++ Profiler.java 2001/07/13 04:02:40 1.2
@@ -18,10 +18,12 @@
* Profiler component interface.
*
* @author <a href="mailto:vgritsenko@apache.org">Vadim Gritsenko</a>
- * @version CVS $Revision: 1.1 $ $Date: 2001/07/05 15:03:28 $
+ * @version CVS $Revision: 1.2 $ $Date: 2001/07/13 04:02:40 $
*/
public interface Profiler extends Component
{
+ String ROLE = "org.apache.cocoon.components.profiler.Profiler";
+
public void clearResults();
public void clearResult(Object key);
1.2 +2 -2 xml-cocoon2/src/org/apache/cocoon/components/profiler/ProfilerGenerator.java
Index: ProfilerGenerator.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/profiler/ProfilerGenerator.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ProfilerGenerator.java 2001/07/05 15:03:28 1.1
+++ ProfilerGenerator.java 2001/07/13 04:02:42 1.2
@@ -33,7 +33,7 @@
* Generates an XML representation of the current status of Profiler.
*
* @author <a href="mailto:vgritsenko@apache.org">Vadim Gritsenko</a>
- * @version CVS $Revision: 1.1 $ $Date: 2001/07/05 15:03:28 $
+ * @version CVS $Revision: 1.2 $ $Date: 2001/07/13 04:02:42 $
*/
public class ProfilerGenerator extends ComposerGenerator
implements Recyclable, Composable, Disposable {
@@ -51,7 +51,7 @@
super.compose(manager);
try{
- this.profiler = (Profiler)super.manager.lookup("org.apache.cocoon.components.profiler.Profiler");
+ this.profiler = (Profiler)super.manager.lookup(Profiler.ROLE);
}catch(Exception e){
e.printStackTrace();
}
1.2 +2 -2 xml-cocoon2/src/org/apache/cocoon/components/profiler/ProfilingCachingEventPipeline.java
Index: ProfilingCachingEventPipeline.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/profiler/ProfilingCachingEventPipeline.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ProfilingCachingEventPipeline.java 2001/07/05 15:03:28 1.1
+++ ProfilingCachingEventPipeline.java 2001/07/13 04:02:44 1.2
@@ -29,7 +29,7 @@
/**
* @author <a href="mailto:vgritsenko@apache.org">Vadim Gritsenko</a>
- * @version CVS $Revision: 1.1 $ $Date: 2001/07/05 15:03:28 $
+ * @version CVS $Revision: 1.2 $ $Date: 2001/07/13 04:02:44 $
*/
public class ProfilingCachingEventPipeline extends CachingEventPipeline
implements Recyclable, Composable, Disposable {
@@ -46,7 +46,7 @@
try{
this.manager = manager;
- this.profiler = (Profiler)manager.lookup("org.apache.cocoon.components.profiler.Profiler");
+ this.profiler = (Profiler)manager.lookup(Profiler.ROLE);
}catch(Exception e){
e.printStackTrace();
}
1.2 +2 -2 xml-cocoon2/src/org/apache/cocoon/components/profiler/ProfilingNonCachingEventPipeline.java
Index: ProfilingNonCachingEventPipeline.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/profiler/ProfilingNonCachingEventPipeline.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ProfilingNonCachingEventPipeline.java 2001/07/05 15:03:28 1.1
+++ ProfilingNonCachingEventPipeline.java 2001/07/13 04:02:45 1.2
@@ -29,7 +29,7 @@
/**
* @author <a href="mailto:vgritsenko@apache.org">Vadim Gritsenko</a>
- * @version CVS $Revision: 1.1 $ $Date: 2001/07/05 15:03:28 $
+ * @version CVS $Revision: 1.2 $ $Date: 2001/07/13 04:02:45 $
*/
public class ProfilingNonCachingEventPipeline extends NonCachingEventPipeline
implements Recyclable, Composable, Disposable {
@@ -46,7 +46,7 @@
try{
this.manager = manager;
- this.profiler = (Profiler)manager.lookup("org.apache.cocoon.components.profiler.Profiler");
+ this.profiler = (Profiler)manager.lookup(Profiler.ROLE);
}catch(Exception e){
e.printStackTrace();
}
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org