|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.fortress.util.FortressConfig
Helper class to create a m_context for the ContextManager.
Constructor Summary | |
FortressConfig()
Creates a m_context builder and initializes it with default values. |
|
FortressConfig(Context parent)
Creates a m_context builder and initializes it with default values. |
Method Summary | |
static Context |
createDefaultConfig()
Creates a default m_context. |
static Context |
createDefaultConfig(java.lang.ClassLoader classLoader)
Creates a default m_context. |
Context |
getContext()
Finalizes the m_context and returns it. |
void |
setCommandFailureHandlerClass(java.lang.Class commandFailureHandlerClass)
Sets a class whose instance will be used to override the default CommandFailureHandler used by the container. |
void |
setCommandFailureHandlerClass(java.lang.String commandFailureHandlerClass)
Sets a class whose instance will be used to override the default CommandFailureHandler used by the container. |
void |
setCommandSink(org.d_haven.event.Sink commandSink)
|
void |
setContainerClass(java.lang.Class containerClass)
|
void |
setContainerClass(java.lang.String containerClass)
|
void |
setContainerConfiguration(Configuration config)
|
void |
setContainerConfiguration(java.lang.String location)
|
void |
setContextClassLoader(java.lang.ClassLoader loader)
|
void |
setContextDirectory(java.io.File file)
|
void |
setContextDirectory(java.lang.String directory)
|
void |
setContextRootURL(java.net.URL url)
|
void |
setInstrumentManager(InstrumentManager profiler)
|
void |
setInstrumentManagerConfiguration(Configuration config)
|
void |
setInstrumentManagerConfiguration(java.lang.String location)
|
void |
setLifecycleExtensionManager(LifecycleExtensionManager extensionManager)
|
void |
setLoggerCategory(java.lang.String category)
|
void |
setLoggerManager(LoggerManager logManager)
|
void |
setLoggerManagerConfiguration(Configuration config)
|
void |
setLoggerManagerConfiguration(java.lang.String location)
|
void |
setNumberOfThreadsPerCPU(int numberOfThreads)
|
void |
setPoolManager(org.d_haven.mpool.PoolManager poolManager)
|
void |
setRoleManager(RoleManager roleManager)
|
void |
setRoleManagerClass(java.lang.Class clazz)
|
void |
setRoleManagerClass(java.lang.String containerClass)
|
void |
setRoleManagerConfiguration(Configuration config)
|
void |
setRoleManagerConfiguration(java.lang.String location)
|
void |
setServiceManager(ServiceManager componentManager)
|
void |
setThreadManager(org.d_haven.event.command.ThreadManager threadManager)
|
void |
setThreadTimeout(long timeout)
|
void |
setWorkDirectory(java.io.File file)
|
void |
setWorkDirectory(java.lang.String directory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FortressConfig()
public FortressConfig(Context parent)
parent
- parent m_context with default values.Method Detail |
public static final Context createDefaultConfig()
public static final Context createDefaultConfig(java.lang.ClassLoader classLoader)
public Context getContext()
public void setCommandSink(org.d_haven.event.Sink commandSink)
public void setServiceManager(ServiceManager componentManager)
public void setLifecycleExtensionManager(LifecycleExtensionManager extensionManager)
public void setContainerClass(java.lang.String containerClass) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public void setContainerClass(java.lang.Class containerClass)
public void setCommandFailureHandlerClass(java.lang.String commandFailureHandlerClass) throws java.lang.ClassNotFoundException
commandFailureHandlerClass
- Name of the CommandFailureHandler class to use.
java.lang.ClassNotFoundException
public void setCommandFailureHandlerClass(java.lang.Class commandFailureHandlerClass)
commandFailureHandlerClass
- The CommandFailureHandler class to use.public void setContainerConfiguration(Configuration config)
public void setContainerConfiguration(java.lang.String location)
public void setContextClassLoader(java.lang.ClassLoader loader)
public void setContextDirectory(java.io.File file)
public void setContextDirectory(java.lang.String directory)
public void setContextRootURL(java.net.URL url)
public void setLoggerCategory(java.lang.String category)
public void setLoggerManager(LoggerManager logManager)
public void setLoggerManagerConfiguration(Configuration config)
public void setLoggerManagerConfiguration(java.lang.String location)
public void setInstrumentManager(InstrumentManager profiler)
public void setInstrumentManagerConfiguration(Configuration config)
public void setInstrumentManagerConfiguration(java.lang.String location)
public void setNumberOfThreadsPerCPU(int numberOfThreads)
public void setPoolManager(org.d_haven.mpool.PoolManager poolManager)
public void setRoleManager(RoleManager roleManager)
public void setRoleManagerConfiguration(Configuration config)
public void setRoleManagerClass(java.lang.String containerClass) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public void setRoleManagerClass(java.lang.Class clazz)
public void setRoleManagerConfiguration(java.lang.String location)
public void setThreadTimeout(long timeout)
public void setWorkDirectory(java.io.File file)
public void setWorkDirectory(java.lang.String directory)
public void setThreadManager(org.d_haven.event.command.ThreadManager threadManager)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |