com.hammurapi.config.runtime
Class FactoryConfig
java.lang.Object
com.hammurapi.config.runtime.FactoryConfig
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- InjectionConfig
public class FactoryConfig
- extends Object
- implements Cloneable
Factory parameter class.
- Author:
- Pavel Vlasov
FactoryConfig
public FactoryConfig()
getObjectPath
public Object[] getObjectPath()
- Returns:
- Path to the object currently being configured (last element, if already instantiated) from the root object (first element).
setObjectPath
public void setObjectPath(Object[] objectPath)
- Parameters:
objectPath - Path to the object currently being configured (last element, if already instantiated) from the root object (first element).
addToObjectPath
public void addToObjectPath(Object obj)
getContextFactory
public ContextFactory getContextFactory()
- Returns:
- Context factory.
setContextFactory
public void setContextFactory(ContextFactory contextFactory)
- Parameters:
contextFactory - Context factory.
getContextUrl
public URL getContextUrl()
- Returns:
- Context URL for classpath entries.
setContextUrl
public void setContextUrl(URL contextUrl)
- Parameters:
contextUrl - Context URL for classpath entries.
getClassLoader
public ClassLoader getClassLoader()
- Returns:
- Class loader.
setClassLoader
public void setClassLoader(ClassLoader classLoader)
- Parameters:
classLoader - Class loader.
getTokenSource
public TokenExpander.TokenSource getTokenSource()
- Returns:
- Expansion tokens.
setTokenSource
public void setTokenSource(TokenExpander.TokenSource tokens)
- Parameters:
tokens - Expansion tokens.
getContext
public Context getContext()
- Returns:
- Service lookup.
setContext
public void setContext(Context context)
- Parameters:
lookup - Service lookup.
getProfilePath
public String[] getProfilePath()
- Returns:
- Profile path.
setProfilePath
public void setProfilePath(String... profilePath)
- Parameters:
profilePath - Profile path.
clone
public Object clone()
throws CloneNotSupportedException
- Overrides:
clone in class Object
- Throws:
CloneNotSupportedException