You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by William Huang <wh...@yahoo.com> on 2005/11/16 00:29:57 UTC
[Digester] call-method-rule not executing
Hi, digester was able to create the MackerRules object
and the list of RuleSet objects, but did not execute
any of the call-method-rule.
below is the data xml and xml-rule file
<!---- xml-rule file ------>
<digester-rules>
<pattern value="macker">
<object-create-rule
classname="common.MackerRules" />
<pattern value="ruleset">
<object-create-rule
classname="common.RuleSet" />
<set-next-rule methodname="add" />
<set-properties-rule />
<pattern value="access-rule">
<call-method-rule pattern="deny/from"
methodname="denyFrom" paramcount="1" />
<call-param-rule pattern="deny/from"
paramnumber="0" attrname="pattern" />
<call-method-rule pattern="allow/from"
methodname="allowFrom" paramcount="1" />
<call-param-rule pattern="allow/from"
paramnumber="0" attrname="pattern" />
</pattern>
</pattern> <!-- ruleset -->
</pattern> <!-- macker -->
</digester-rules>
<!-- data file -->
<macker>
<ruleset name="Modularity: Business Logic does not
depend on Tests">
<pattern name="tests"
class="com.intralinks.test.**" />
<access-rule>
<message>Core Code ${from} shall not have
dependencies on test code!</message>
<deny>
<to pattern="tests" />
</deny>
<allow><from pattern="tests" /></allow>
</access-rule>
</ruleset>
<ruleset name="Modularity: Business or Test Logic
does not depend on Presentation Logic" >
<pattern name="presentation"
class="com.intralinks.presentation.**" />
<pattern name="presentation-tests"
class="com.intralinks.test.presentation.**" />
<access-rule>
<message>${from} must not have
dependencies on Presentation Layer</message>
<deny>
<to pattern="presentation" />
</deny>
<allow><from
pattern="presentation"/></allow>
<allow><from
pattern="presentation-tests"/></allow>
</access-rule>
</ruleset>
</macker>
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org