org.apache.commons.digester.plugins

Interface InitializableRule

public interface InitializableRule

Defines an interface that a Rule class can implement if it wishes to get an initialisation callback after the rule has been added to the set of Rules within a PluginRules instance.

Since: 1.6

Method Summary
voidpostRegisterInit(String pattern)
Called after this Rule object has been added to the list of all Rules.

Method Detail

postRegisterInit

public void postRegisterInit(String pattern)
Called after this Rule object has been added to the list of all Rules. Note that if a single InitializableRule instance is associated with more than one pattern, then this method will be called more than once.

Parameters: pattern is the digester match pattern that will trigger this rule.

Throws: PluginConfigurationException is thrown if the InitializableRule determines that it cannot correctly initialise itself for any reason.

Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.