Package org.jboss.windup.config.metadata
Class RuleProviderRegistry
- java.lang.Object
-
- org.jboss.windup.config.metadata.RuleProviderRegistry
-
public class RuleProviderRegistry extends Object
Maintains a link between allRuleandRuleProviderinstances that have been loaded by Windup.- Author:
- Jesse Sightler
-
-
Constructor Summary
Constructors Constructor Description RuleProviderRegistry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRulesForProvider(RuleProvider provider, List<org.ocpsoft.rewrite.config.Rule> rules)org.ocpsoft.rewrite.config.ConfigurationgetConfiguration()Contains theConfigurationcontaining all of the loaded s.List<RuleProvider>getProviders()Gets the list of loadedRuleProviders as an immutableList.List<org.ocpsoft.rewrite.config.Rule>getRules(RuleProvider provider)Gets all of theRules that were loaded by the givenRuleProvider.static RuleProviderRegistryinstance(GraphRewrite event)Gets the current instance ofRuleProviderRegistry.voidsetConfiguration(org.ocpsoft.rewrite.config.Configuration configuration)Contains theConfigurationcontaining all of the loaded s.voidsetProviders(List<RuleProvider> providers)Sets the list of loadedRuleProviders.
-
-
-
Method Detail
-
instance
public static RuleProviderRegistry instance(GraphRewrite event)
Gets the current instance ofRuleProviderRegistry.
-
setProviders
public void setProviders(List<RuleProvider> providers)
Sets the list of loadedRuleProviders.
-
getProviders
public List<RuleProvider> getProviders()
Gets the list of loadedRuleProviders as an immutableList.
-
addRulesForProvider
public void addRulesForProvider(RuleProvider provider, List<org.ocpsoft.rewrite.config.Rule> rules)
-
getRules
public List<org.ocpsoft.rewrite.config.Rule> getRules(RuleProvider provider)
Gets all of theRules that were loaded by the givenRuleProvider.
-
getConfiguration
public org.ocpsoft.rewrite.config.Configuration getConfiguration()
Contains theConfigurationcontaining all of the loaded s.
-
setConfiguration
public void setConfiguration(org.ocpsoft.rewrite.config.Configuration configuration)
Contains theConfigurationcontaining all of the loaded s.
-
-