|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Utility interface that provides support for the creation of a new initial context.
Field Summary | |
static String[] |
KEYS
An array of property keys that are used to locate default values. |
Method Summary | |
InitialContext |
createInitialContext()
Creation of an inital context based on the system and working directory, parent classloader, repository cache manager implementation artifact, cache directory, and remote hosts sequence supplied to the factory. |
File |
getHomeDirectory()
Return the home directory value direved from the application key. |
void |
setCacheDirectory(File cache)
The cache directory is the directory into which resources such as jar files are loaded by a repository cache manager. |
void |
setFactoryArtifacts(Artifact[] artifacts)
Register a set of factory artifacts. |
void |
setHosts(String[] hosts)
Set the initial hosts to be used by a repository cache manager implementation and the initial context implementation when resolving dependent resources. |
void |
setImplementation(Artifact artifact)
The initial context factory support the establishment of an initial context which is associated with a repository cache manager implementation. |
void |
setOnlineMode(boolean policy)
Set the online mode of the repository. |
void |
setParentClassLoader(ClassLoader classloader)
Set the parent classloader. |
void |
setProxyHost(String host)
Set the proxy host name. |
void |
setProxyPassword(String password)
Set the proxy account password. |
void |
setProxyPort(int port)
Set the proxy host port. |
void |
setProxyUsername(String username)
Set the proxy username. |
Field Detail |
public static final String[] KEYS
InitialContext.IMPLEMENTATION_KEY
,
InitialContext.CACHE_KEY
,
InitialContext.HOSTS_KEY
,
InitialContext.ONLINE_KEY
,
InitialContext.FACTORY_ARTIFACTS_KEY
Method Detail |
public File getHomeDirectory()
public void setFactoryArtifacts(Artifact[] artifacts)
artifacts
- the factory artifact referencespublic void setOnlineMode(boolean policy)
policy
- the online connected policypublic void setParentClassLoader(ClassLoader classloader)
classloader
- the parent classloaderpublic void setImplementation(Artifact artifact)
artifact
- the repository cache manager artifactpublic void setCacheDirectory(File cache)
cache
- the repository cache directorypublic void setProxyHost(String host)
host
- the proxy host namepublic void setProxyPort(int port)
port
- the proxy portpublic void setProxyUsername(String username)
username
- the proxy usernamepublic void setProxyPassword(String password)
password
- the proxy passwordpublic void setHosts(String[] hosts)
hosts
- a sequence of remote host urlspublic InitialContext createInitialContext()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |