org.apache.avalon.composition.provider
Interface SystemContextFactory

All Known Implementing Classes:
DefaultSystemContextFactory

public interface SystemContextFactory

Defintion of a system context that exposes a system wide set of parameters.

Version:
$Revision: 1.7 $ $Date: 2004/04/01 04:06:52 $
Author:
Avalon Development Team

Method Summary
 SystemContext createSystemContext()
          Creation of a new system context using supplied and default values.
 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 grants table.
 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 context)
          Set the parent context.
 void setRepository(Repository repository)
          Set the application repository.
 void setRuntime(Artifact artifact)
          Set the runtime using a supplied artifact.
 void setRuntime(Class clazz)
          Set the runtime using a supplied class.
 void setSecurityEnabled(boolean secure)
          Set the security enabled status.
 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.
 

Method Detail

setSecurityEnabled

public void setSecurityEnabled(boolean secure)
Set the security enabled status.

Parameters:
secure - the security enabled flag

setParentContext

public void setParentContext(Context context)
Set the parent context.

Parameters:
context - a parent context instance

setRuntime

public void setRuntime(Artifact artifact)
Set the runtime using a supplied artifact.

Parameters:
artifact - a factory artifact supporting Runtime instance creation.
See Also:
Runtime, setRuntime( Class )

setLifestyleArtifact

public void setLifestyleArtifact(Artifact artifact)
Set the lifestyle factory using a supplied artifact.

Parameters:
artifact - a factory artifact supporting LifestyleFactory instance creation.
See Also:
Runtime, setRuntime( Class )

setRuntime

public void setRuntime(Class clazz)
Set the runtime using a supplied class.

Parameters:
clazz - a runtime implementation class
See Also:
Runtime

setRepository

public void setRepository(Repository repository)
Set the application repository.

Parameters:
repository - the application repository

setLoggingManager

public void setLoggingManager(LoggingManager logging)
Set the logging manager.

Parameters:
logging - the logging manager

setDefaultDeploymentTimeout

public void setDefaultDeploymentTimeout(long timeout)
Set the system wide default deployment timeout.

Parameters:
timeout - the timeout value in milliseconds

setTraceEnabled

public void setTraceEnabled(boolean trace)
Set the system trace flag.

Parameters:
trace - the trace flag

setSecurityProfiles

public void setSecurityProfiles(SecurityProfile[] profiles)
Set the security profiles.

Parameters:
profiles - the security profiles

setGrantsTable

public void setGrantsTable(Map grants)
Set the initial grants table.

Parameters:
grants - the initial grants table

setWorkingDirectory

public void setWorkingDirectory(File work)
Set the working directory.

Parameters:
work - the working directory

setTemporaryDirectory

public void setTemporaryDirectory(File temp)
Set the temporary directory.

Parameters:
temp - the temporary directory

setAnchorDirectory

public void setAnchorDirectory(File anchor)
Set the anchor directory.

Parameters:
anchor - the anchor directory

setName

public void setName(String name)
Set the name of the logging channel to be used by the system context.

Parameters:
name - the name to assign

createSystemContext

public SystemContext createSystemContext()
                                  throws SystemException
Creation of a new system context using supplied and default values.

Returns:
a new system context instance
Throws:
SystemException - if a stytem context creation error occurs


Copyright © The Apache Software Foundation. All Rights Reserved.