|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.composition.model.impl.DefaultSystemContextFactory
Implementation of a system context that exposes a system wide set of parameters.
Constructor Summary | |
DefaultSystemContextFactory(InitialContext context)
Creation of a new system context factory. |
Method Summary | |
static LoggingManager |
createLoggingManager(InitialContext context,
Artifact artifact,
File dir,
URL path,
boolean trace)
Utility method to create the LoggingManager. |
SystemContext |
createSystemContext()
Creation of a new system context using supplied and default values. |
File |
getAnchorDirectory()
Return the anchor directory from which a container may use to establish relative classpath references. |
File |
getBaseDirectory()
Return the base directory from which relative classloader references may be resolved. |
long |
getDefaultDeploymentTimeout()
Return the default deployment phase timeout value. |
Map |
getGrantsTable()
Return the initial grants table. |
File |
getHomeDirectory()
Return the working directory from which containers may establish persistent content. |
Artifact |
getLifestyleArtifact()
Return the artifact referencing the lifestyle factory. |
LoggingManager |
getLoggingManager()
Return the logging manager. |
String |
getName()
Return the name assigned to the system context. |
Context |
getParentContext()
Return the parent context to use when establishing a new SystemContext. |
Repository |
getRepository()
Return the system wide repository from which resource directives can be resolved. |
Artifact |
getRuntimeArtifact()
Return the artifact referencing the runtime. |
Class |
getRuntimeClass()
Return the class implementating the runtime. |
boolean |
getSecurityEnabled()
Return the security enabled status flag. |
SecurityProfile[] |
getSecurityProfiles()
Return the assigned security profiles. |
File |
getTempDirectory()
Return the temporary directory from which a container may use to establish a transient content directory. |
boolean |
isTraceEnabled()
Return the system trace flag. |
void |
setAnchorDirectory(File anchor)
Set the anchor directory. |
void |
setDefaultDeploymentTimeout(long timeout)
Set the system wide default deployment timeout. |
void |
setGrantsTable(Map grants)
Set the initial set of address to security profile grants. |
void |
setLifestyleArtifact(Artifact artifact)
Set the lifestyle factory using a supplied artifact. |
void |
setLoggingManager(LoggingManager logging)
Set the logging manager. |
void |
setName(String name)
Set the name of the logging channel to be used by the system context. |
void |
setParentContext(Context parent)
Set the parent context of the system context. |
void |
setRepository(Repository repository)
Set the application repository. |
void |
setRuntime(Artifact artifact)
Set the runtime artifact. |
void |
setRuntime(Class clazz)
Set the runtime using a supplied class. |
void |
setSecurityEnabled(boolean secure)
Set the security enabled status. |
void |
setSecurityModel(SecurityModel security)
|
void |
setSecurityProfiles(SecurityProfile[] profiles)
Set the security profiles. |
void |
setTemporaryDirectory(File temp)
Set the temporary directory. |
void |
setTraceEnabled(boolean trace)
Set the system trace flag. |
void |
setWorkingDirectory(File work)
Set the working directory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultSystemContextFactory(InitialContext context)
context
- a repository initial contextMethod Detail |
public void setSecurityEnabled(boolean secure)
setSecurityEnabled
in interface SystemContextFactory
secure
- the security enabled statuspublic void setParentContext(Context parent)
setParentContext
in interface SystemContextFactory
parent
- the parent contextpublic void setRuntime(Artifact artifact)
setRuntime
in interface SystemContextFactory
artifact
- an artifact referencing the runtimeRuntime
,
SystemContextFactory.setRuntime( Class )
public void setLifestyleArtifact(Artifact artifact)
SystemContextFactory
setLifestyleArtifact
in interface SystemContextFactory
artifact
- a factory artifact supporting
LifestyleFactory
instance creation.Runtime
,
SystemContextFactory.setRuntime( Class )
public void setRuntime(Class clazz)
SystemContextFactory
setRuntime
in interface SystemContextFactory
clazz
- a runtime implementation classRuntime
public void setRepository(Repository repository)
SystemContextFactory
setRepository
in interface SystemContextFactory
repository
- the application repositorypublic void setLoggingManager(LoggingManager logging)
SystemContextFactory
setLoggingManager
in interface SystemContextFactory
logging
- the logging managerpublic void setDefaultDeploymentTimeout(long timeout)
SystemContextFactory
setDefaultDeploymentTimeout
in interface SystemContextFactory
timeout
- the timeout value in millisecondspublic void setTraceEnabled(boolean trace)
setTraceEnabled
in interface SystemContextFactory
trace
- the trace flagpublic void setSecurityModel(SecurityModel security)
public void setWorkingDirectory(File work)
SystemContextFactory
setWorkingDirectory
in interface SystemContextFactory
work
- the working directorypublic void setTemporaryDirectory(File temp)
SystemContextFactory
setTemporaryDirectory
in interface SystemContextFactory
temp
- the temporary directorypublic void setAnchorDirectory(File anchor)
setAnchorDirectory
in interface SystemContextFactory
anchor
- the anchor directorypublic void setName(String name)
SystemContextFactory
setName
in interface SystemContextFactory
name
- the name to assignpublic void setSecurityProfiles(SecurityProfile[] profiles)
SystemContextFactory
setSecurityProfiles
in interface SystemContextFactory
profiles
- the security profilespublic void setGrantsTable(Map grants)
setGrantsTable
in interface SystemContextFactory
grants
- the initial grants tablepublic SystemContext createSystemContext() throws SystemException
createSystemContext
in interface SystemContextFactory
SystemException
- if a stytem context creation error occurspublic boolean getSecurityEnabled()
public Context getParentContext()
public String getName()
public Map getGrantsTable()
public SecurityProfile[] getSecurityProfiles()
public File getBaseDirectory()
public File getHomeDirectory()
public File getTempDirectory()
public File getAnchorDirectory()
public Repository getRepository()
public boolean isTraceEnabled()
public LoggingManager getLoggingManager()
public long getDefaultDeploymentTimeout()
public Class getRuntimeClass()
public Artifact getRuntimeArtifact()
public Artifact getLifestyleArtifact()
public static LoggingManager createLoggingManager(InitialContext context, Artifact artifact, File dir, URL path, boolean trace) throws Exception
context
- the initial context referenceartifact
- the logging implementation factory artifactdir
- the logging system base directorypath
- the logging system configuration pathtrace
- the trace enabled flag
NullPointerException
- if the supplied context is null
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |