|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.commons.config.DeegreeWorkspace
public class DeegreeWorkspace
Encapsulates a directory for deegree configuration files (a deegree workspace) and provides access to the configured deegree resources.
Method Summary | ||
---|---|---|
void |
destroyAll()
Unloads all resources associated with this context, as well as ALL STATIC ones. |
|
static DeegreeWorkspace |
getInstance()
Returns the default workspace. |
|
static DeegreeWorkspace |
getInstance(String workspaceName)
Returns the workspace with the given name. |
|
static DeegreeWorkspace |
getInstance(String workspaceName,
File fallbackDir)
Returns the workspace with the given name (or the workspace for the given directory if the former does not exist). |
|
File |
getLocation()
|
|
ClassLoader |
getModuleClassLoader()
|
|
Collection<ModuleInfo> |
getModulesInfo()
Returns the ModuleInfo for all deegree modules in the workspace. |
|
String |
getName()
Returns the name of the workspace. |
|
List<ResourceManager> |
getResourceManagers()
|
|
|
getSubsystemManager(Class<T> c)
|
|
static String |
getWorkspaceRoot()
|
|
void |
initAll()
Initializes all managed configurations. |
|
void |
initManagers()
Initializes the managers available on the classpath, but does not actually read the configurations. |
|
static boolean |
isWorkspace(String name)
|
|
static List<String> |
listWorkspaces()
|
|
static void |
unregisterWorkspace(String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public List<ResourceManager> getResourceManagers()
public Collection<ModuleInfo> getModulesInfo() throws IOException
ModuleInfo
for all deegree modules in the workspace.
IOException
public void initManagers()
ResourceInitException
public static boolean isWorkspace(String name)
name
-
public static DeegreeWorkspace getInstance()
null
public static DeegreeWorkspace getInstance(String workspaceName)
workspaceName
- name of the workspace, can be null
(implies default workspace)
null
public static DeegreeWorkspace getInstance(String workspaceName, File fallbackDir) throws IOException
workspaceName
- name of the workspace, can be null
(implies default workspace)fallbackDir
- directory to use as workspace if the named workspace does not exist
null
IOException
public String getName()
null
public File getLocation()
null
public <T extends ResourceManager> T getSubsystemManager(Class<T> c)
c
-
public void initAll() throws ResourceInitException
ResourceInitException
public void destroyAll()
public ClassLoader getModuleClassLoader()
public static String getWorkspaceRoot()
public static List<String> listWorkspaces()
public static void unregisterWorkspace(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |