org.deegree.rendering.r3d.persistence
Class RenderableStoreManager

java.lang.Object
  extended by org.deegree.commons.config.AbstractBasicResourceManager
      extended by org.deegree.rendering.r3d.persistence.RenderableStoreManager
All Implemented Interfaces:
ResourceManager

public class RenderableStoreManager
extends AbstractBasicResourceManager

The class TODO add class documentation here.

Version:
$Revision: 31619 $, $Date: 2011-08-23 14:56:28 +0200 (Tue, 23 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Field Summary
 
Fields inherited from class org.deegree.commons.config.AbstractBasicResourceManager
dir, idToState, workspace
 
Constructor Summary
RenderableStoreManager()
           
 
Method Summary
 ResourceState<RenderableStore> activate(String id)
          Activates the resource with the given identifier.
 ResourceState<RenderableStore> deactivate(String id)
          Deactivates the resource with the given identifier.
static RenderableStore get(String id)
          Returns the RenderableStore instance with the specified identifier.
static Collection<RenderableStore> getAll()
          Returns all active RenderableStores.
 Class<? extends ResourceManager>[] getDependencies()
           
 ResourceManagerMetadata<RenderableStore> getMetadata()
           
protected  ResourceProvider getProvider(File file)
           
 void init(File configLocation, DeegreeWorkspace workspace)
          Initializes the RenderableStoreManager by loading all RenderableStore configurations from the given directory.
protected  void remove(String id)
           
 void shutdown()
          Is called upon workspace shutdown.
 void startup(DeegreeWorkspace workspace)
          Is called upon workspace startup.
 
Methods inherited from class org.deegree.commons.config.AbstractBasicResourceManager
createResource, deleteResource, getState, getStates, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderableStoreManager

public RenderableStoreManager()
Method Detail

init

public void init(File configLocation,
                 DeegreeWorkspace workspace)
Initializes the RenderableStoreManager by loading all RenderableStore configurations from the given directory.

Parameters:
configLocation - containing renderable manager configurations

get

public static RenderableStore get(String id)
Returns the RenderableStore instance with the specified identifier.

Parameters:
id - identifier of the renderable store instance
Returns:
the corresponding RenderableStore instance or null if no such instance has been created

getAll

public static Collection<RenderableStore> getAll()
Returns all active RenderableStores.

Returns:
the RenderableStores instance, may be empty but never null

getDependencies

public Class<? extends ResourceManager>[] getDependencies()
Returns:
an empty array if there are no dependencies

shutdown

public void shutdown()
Description copied from interface: ResourceManager
Is called upon workspace shutdown.


startup

public void startup(DeegreeWorkspace workspace)
Description copied from interface: ResourceManager
Is called upon workspace startup.


getMetadata

public ResourceManagerMetadata<RenderableStore> getMetadata()
Returns:
a metadata object, may be null

activate

public ResourceState<RenderableStore> activate(String id)
Description copied from interface: ResourceManager
Activates the resource with the given identifier.

Parameters:
id - resource identifier, must not be null
Returns:
resource state after activation (may be unsuccessful), but never null

deactivate

public ResourceState<RenderableStore> deactivate(String id)
Description copied from interface: ResourceManager
Deactivates the resource with the given identifier.

Parameters:
id - resource identifier, must not be null
Returns:
resource state after deactivation (may be unsuccessful), but never null

getProvider

protected ResourceProvider getProvider(File file)
Specified by:
getProvider in class AbstractBasicResourceManager

remove

protected void remove(String id)
Specified by:
remove in class AbstractBasicResourceManager


Copyright © 2011. All Rights Reserved.