public class FeatureManagerObjectFactory extends Object implements ObjectFactory
Implementation of ObjectFactory that creates a FeatureManager.
The method getConfiguration(Object) is used to obtain the TogglzConfig instance to use for building the
manager. The default implementation assumes that the supplied object is a Reference with an RefAddr element
with the name togglzConfig. This behavior can be changed by overwriting this method.
http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html#Adding_Custom_Resource_Factories| Constructor and Description |
|---|
FeatureManagerObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
createInstance(String classname)
Creates an instance of the supplied class.
|
protected TogglzConfig |
getConfiguration(Object obj)
This class looks up the
TogglzConfig to use when building the FeatureManager. |
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment) |
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws Exception
getObjectInstance in interface ObjectFactoryExceptionprotected TogglzConfig getConfiguration(Object obj)
TogglzConfig to use when building the FeatureManager.obj - The Object obtained from getObjectInstance(Object, Name, Context, Hashtable).Copyright © 2018. All Rights Reserved.