public class MAddonsFinder extends ConfigDiscovery
NODE_CONVERTER, NODE_EXTRA_INITIALIZER, NODE_IMPORT, NODE_MAIN, NODE_PROPERTY, NODE_PROPERTY_ACCESS_CACHE, NODE_PROPERTY_COMPILER, NODE_SECURITY_MANAGER
Modifier | Constructor and Description |
---|---|
protected |
MAddonsFinder() |
Modifier and Type | Method and Description |
---|---|
static Class<? extends IAddon> |
getAddon(String name) |
static Collection<String> |
getAddonNames() |
static ICacheActivationResolver |
getCacheActivationResolver()
Returns cache resolver loaded from global configuration.
|
protected String |
getFileName()
Overridden to change file names to search for.
|
static MRulesJmxRegistrationStrategy |
getJmxRegistrationStrategy()
Returns strategy used to register JMX Beans to monitor rulesets lifecycle steps.
|
static IMOptimizerChain |
getOptimizerChain() |
static boolean |
isJmxAutoRegistrationActivated()
Tells if rulesets should auto register themselves.
|
static void |
load()
Invoking this method will force initialization of this class if not already done, so that all addons will be discovered.
|
static void |
registerAddon(IAddon addon)
Allows to manually register new Addons.
|
static void |
registerAddon(String addonClassName)
Allows to manually register new Addons.
|
protected void |
registerDiscoveredNodes(Map<String,ArrayList<Node>> discoveredNodes)
Overridden to register added node types.
|
static void |
registerOptimizerChain(IMOptimizerChain optCh)
Register global optimizer utility.
|
static void |
reload()
Invoking this method will force all addons to be re-discovered.
|
static void |
setJmxRegistrationStrategy(MRulesJmxRegistrationStrategy newStrategy,
boolean autoRegistration)
Replaces current strategy used to register JMX Beans to monitor rulesets lifecycle steps.
|
static boolean |
unregisterAddon(String implementationID)
Allows to manually unregister Addons, in order to register other implementations for the same ID.
|
discoverConfig, getPropertyAccessCache, getPropertyCompiler, registerPropertyAccessCache, registerPropertyCompiler
public static void load()
public static void reload()
public static MRulesJmxRegistrationStrategy getJmxRegistrationStrategy()
public static boolean isJmxAutoRegistrationActivated()
public static void setJmxRegistrationStrategy(MRulesJmxRegistrationStrategy newStrategy, boolean autoRegistration)
newStrategy
- New registration strategy to use.autoRegistration
- If true, new MBeans will be automatically registered.public static ICacheActivationResolver getCacheActivationResolver()
public static IMOptimizerChain getOptimizerChain()
public static Collection<String> getAddonNames()
protected String getFileName()
getFileName
in class ConfigDiscovery
protected void registerDiscoveredNodes(Map<String,ArrayList<Node>> discoveredNodes) throws UtilsException
registerDiscoveredNodes
in class ConfigDiscovery
UtilsException
public static void registerOptimizerChain(IMOptimizerChain optCh)
public static void registerAddon(String addonClassName) throws MRuleInternalException
MRuleInternalException
public static void registerAddon(IAddon addon) throws MRuleInternalException
MRuleInternalException
public static boolean unregisterAddon(String implementationID)