|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.config.base.BaseConfigurationImpl
com.ibm.di.config.base.AttributeMapConfigImpl
com.ibm.di.config.base.HooksConfigImpl
public class HooksConfigImpl
Implements the configuration for all the Hooks e.g. in a Connector or AssemblyLine.
| Field Summary |
|---|
| Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl |
|---|
NAME |
| Fields inherited from interface com.ibm.di.config.interfaces.BaseConfiguration |
|---|
CHILD_PATH_SEPARATOR, DISABLE_EXTPROPS, DISABLE_INHERITANCE, INHERIT_NONE, INHERIT_PARENT, ONE_LEVEL, RECURSIVE, RECURSIVE_ONELEVEL, RECURSIVE_SUBTREE, SEARCH_EXACTCASE, SEARCH_ONELEVEL, SEARCH_PARAMNAME, SEARCH_PARAMNAME_RE, SEARCH_PROPERTY, SEARCH_REGEX, SEARCH_SUBSTRING, SUBTREE |
| Constructor Summary | |
|---|---|
HooksConfigImpl()
|
|
HooksConfigImpl(Object config)
|
|
| Method Summary | |
|---|---|
boolean |
couldInherit(String name)
Could this hook inherit data, if it did not have local data? |
boolean |
flatten(List<String> excludedNS)
flatten - combines all values from this object and its inherited objects into one single config object. |
ArrayList<HookConfig> |
getActiveHooks()
Returns a list of enabled hooks for this configuration. |
BaseConfiguration |
getChild(Object name)
|
HookConfig |
getHook(Object o)
|
HookConfig |
getHook(Object name,
boolean create)
Returns a hook or optionally creates it |
void |
removeHook(Object name)
|
List<Binding> |
search(String text,
int options,
int sizelimit,
List<Binding> results)
Searches a configuration object and optionally its children for a specific key or value. |
void |
setHook(HookConfig hook)
|
void |
setInheritsFrom(BaseConfiguration inheritFrom)
We override this method to change the inherited object if we inherit from a connector. |
| Methods inherited from class com.ibm.di.config.base.AttributeMapConfigImpl |
|---|
configurationChanged, getAttributeMapItem, getAttributeNames, getChildNames, getClone, hasAttributeMapItem, init, newAttributeMapItem, removeAttributeMapItem, renameAttributeMapItem, setAttributeMapItem, setupInheritanceChain |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ibm.di.config.interfaces.AttributeMapConfig |
|---|
getAttributeMapItem, getAttributeNames, hasAttributeMapItem, newAttributeMapItem, removeAttributeMapItem, renameAttributeMapItem, setAttributeMapItem |
| Constructor Detail |
|---|
public HooksConfigImpl()
public HooksConfigImpl(Object config)
| Method Detail |
|---|
public void setInheritsFrom(BaseConfiguration inheritFrom)
setInheritsFrom in interface BaseConfigurationsetInheritsFrom in class AttributeMapConfigImplinheritFrom - if this is ConnectorConfig object we take his
AttributeMap to inherit from else standard behavior.public HookConfig getHook(Object o)
getHook in interface HooksConfigpublic void setHook(HookConfig hook)
setHook in interface HooksConfigpublic void removeHook(Object name)
removeHook in interface HooksConfigpublic boolean couldInherit(String name)
HooksConfig
couldInherit in interface HooksConfigname - Name of Hook
public boolean flatten(List<String> excludedNS)
throws Exception
flatten in interface BaseConfigurationflatten in class AttributeMapConfigImplexcludedNS - List of namespaces to exclude from flattening
true if object attempted flattening, FALSE is this
object inherits from an excluded namespace or has no inheritance
Exception
public List<Binding> search(String text,
int options,
int sizelimit,
List<Binding> results)
BaseConfigurationImpl
search in interface BaseConfigurationsearch in class BaseConfigurationImpltext - The search textoptions - Search options (oneLevel=1, exactCase=2, regExp=4,
paramName=8)sizelimit - Max number of hits returnedresults - A list of results.
results parameter.public ArrayList<HookConfig> getActiveHooks()
getActiveHooks in interface HooksConfig
public HookConfig getHook(Object name,
boolean create)
getHook in interface HooksConfigpublic BaseConfiguration getChild(Object name)
getChild in interface BaseConfigurationgetChild in class AttributeMapConfigImplname - The name of the configuration object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||