taylor 2005/01/18 19:26:13
Modified: components/profiler/src/java/org/apache/jetspeed/profiler/impl
JetspeedProfilerImpl.java
Log:
- added defaultRule parameter to profiler
Revision Changes Path
1.5 +13 -5
jakarta-jetspeed-2/components/profiler/src/java/org/apache/jetspeed/profiler/impl/JetspeedProfilerImpl.java
Index: JetspeedProfilerImpl.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/components/profiler/src/java/org/apache/jetspeed/profiler/impl/JetspeedProfilerImpl.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- JetspeedProfilerImpl.java 10 Jan 2005 22:32:38 -0000 1.4
+++ JetspeedProfilerImpl.java 19 Jan 2005 03:26:13 -0000 1.5
@@ -73,7 +73,7 @@
private Map principalRules = new HashMap();
- public JetspeedProfilerImpl( String repositoryPath )
+ public JetspeedProfilerImpl(String repositoryPath)
{
super(repositoryPath);
}
@@ -94,14 +94,22 @@
* if any the implementation classes defined within
the
* <code>properties</code> argument could not be
found.
*/
- public JetspeedProfilerImpl( String repositoryPath, Properties
properties ) throws ClassNotFoundException
+ public JetspeedProfilerImpl(String repositoryPath, String defaultRule)
+ throws ClassNotFoundException
{
this(repositoryPath);
- this.defaultRule = properties.getProperty("defaultRule", "j1");
- initModelClasses(properties); // TODO: move this to
+ this.defaultRule = defaultRule;
// start()
}
+ public JetspeedProfilerImpl( String repositoryPath, String defaultRule,
Properties properties)
+ throws ClassNotFoundException
+ {
+ this(repositoryPath, defaultRule);
+ initModelClasses(properties); // TODO: move this to
+ // start()
+ }
+
private void initModelClasses( Properties properties ) throws
ClassNotFoundException
{
String modelName = "";
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]