org.deegree.sqldialect
Class SQLDialectManager

java.lang.Object
  extended by org.deegree.commons.config.AbstractBasicResourceManager
      extended by org.deegree.sqldialect.SQLDialectManager
All Implemented Interfaces:
ResourceManager

public class SQLDialectManager
extends AbstractBasicResourceManager

Manager for SQLDialect instances.

Version:
$Revision: 31043 $, $Date: 2011-06-10 10:24:36 +0200 (Fr, 10. Jun 2011) $
Author:
Markus Schneider, last edited by: $Author: aschmitz $

Field Summary
 
Fields inherited from class org.deegree.commons.config.AbstractBasicResourceManager
dir, idToState, workspace
 
Constructor Summary
SQLDialectManager()
           
 
Method Summary
 ResourceState activate(String id)
          Activates the resource with the given identifier.
 SQLDialect create(String connId)
           
 ResourceState deactivate(String id)
          Deactivates the resource with the given identifier.
 Class<? extends ResourceManager>[] getDependencies()
           
 ResourceManagerMetadata<?> getMetadata()
           
protected  ResourceProvider getProvider(File file)
           
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

SQLDialectManager

public SQLDialectManager()
Method Detail

create

public SQLDialect create(String connId)
                  throws ResourceInitException
Throws:
ResourceInitException

getDependencies

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

getMetadata

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

shutdown

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


startup

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

Throws:
ResourceInitException

activate

public ResourceState 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 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.