You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sk...@apache.org on 2005/02/20 08:00:56 UTC
svn commit: r154481 -
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/PluginDeclarationAction.java
Author: skitching
Date: Sat Feb 19 23:00:55 2005
New Revision: 154481
URL: http://svn.apache.org/viewcvs?view=rev&rev=154481
Log:
Minor changes due to removal of Declaration.init method
(all initialisation now done in Declaration constructor).
Modified:
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/PluginDeclarationAction.java
Modified: jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/PluginDeclarationAction.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/PluginDeclarationAction.java?view=diff&r1=154480&r2=154481
==============================================================================
--- jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/PluginDeclarationAction.java (original)
+++ jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/PluginDeclarationAction.java Sat Feb 19 23:00:55 2005
@@ -122,19 +122,10 @@
"mandatory attribute class not present on plugin declaration");
}
- Declaration newDecl = new Declaration(pluginClassName);
+ Declaration newDecl = new Declaration(context, pluginClassName, props);
newDecl.setId(id);
- newDecl.setProperties(props);
PluginDeclarationScope pds = PluginDeclarationScope.getInstance(context);
-
- // Create a RuleLoader instance which is capable of adding dynamic
- // rules for the plugged-in class to a RuleManager instance. The
- // dynamic rules don't get added until a PluginCreateAction fires,
- // so redeclaring a plugin multiple times is fine...
- newDecl.init(context, pds);
-
- // and remember it for later...
pds.addDeclaration(newDecl);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org