com.hammurapi.config.runtime
Class FactoryConfig

java.lang.Object
  extended by 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

Constructor Summary
FactoryConfig()
           
 
Method Summary
 void addToObjectPath(Object obj)
           
 Object clone()
           
 ClassLoader getClassLoader()
           
 Context getContext()
           
 ContextFactory getContextFactory()
           
 URL getContextUrl()
           
 Object[] getObjectPath()
           
 String[] getProfilePath()
           
 TokenExpander.TokenSource getTokenSource()
           
 void setClassLoader(ClassLoader classLoader)
           
 void setContext(Context context)
           
 void setContextFactory(ContextFactory contextFactory)
           
 void setContextUrl(URL contextUrl)
           
 void setObjectPath(Object[] objectPath)
           
 void setProfilePath(String... profilePath)
           
 void setTokenSource(TokenExpander.TokenSource tokens)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryConfig

public FactoryConfig()
Method Detail

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