org.tubo.resource.baseimpl
Class BaseManagerImpl

java.lang.Object
  extended by org.tubo.resource.baseimpl.BaseManagerImpl
All Implemented Interfaces:
Manager
Direct Known Subclasses:
BaseComponentManagerImpl, BaseConnectionManagerImpl, BaseConsumerManagerImpl

public class BaseManagerImpl
extends java.lang.Object
implements Manager

Created: Apr 5, 2006 9:16:42 PM Last Modification Date: $Date: 2006-10-26 01:26:45 -0300 (Thu, 26 Oct 2006) $

Version:
$Revision: 34 $
Author:
jvlio (jvlio@users.sourceforge.net)

Field Summary
static java.lang.String RCS_ID
           
 
Constructor Summary
BaseManagerImpl()
          Default Constructor
 
Method Summary
 Resource get()
           Resource Get.
This method is delegated to strategy.
 java.lang.String getId()
           
 java.util.Properties getProperties()
           
 java.lang.String getProperty(java.lang.String name)
           
 ResourceManager getResourceManager()
          Get for the ResourceManager linked to this Manager
 ManagerStrategy getStrategy()
           
 void restore(Resource resource)
           Restore resource.
This method is delegated to strategy.
 void setId(java.lang.String id)
           
 void setProperties(java.util.Properties properties)
           
 void setProperty(java.lang.String name, java.lang.String value)
           
 void setResourceManager(ResourceManager resourceManager)
          Set for the ResourceManager for this Manager
 void setStrategy(ManagerStrategy strategy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID
See Also:
Constant Field Values
Constructor Detail

BaseManagerImpl

public BaseManagerImpl()
Default Constructor

Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface Manager

setId

public void setId(java.lang.String id)

getResourceManager

public ResourceManager getResourceManager()
Get for the ResourceManager linked to this Manager

Specified by:
getResourceManager in interface Manager
Returns:
the ResourceManager for this Manager

setResourceManager

public void setResourceManager(ResourceManager resourceManager)
                        throws TuboException
Set for the ResourceManager for this Manager

Specified by:
setResourceManager in interface Manager
Parameters:
resourceManager - the ResourceManager for this Manager
Throws:
TuboException

getStrategy

public ManagerStrategy getStrategy()

setStrategy

public void setStrategy(ManagerStrategy strategy)

get

public Resource get()
             throws TuboResourceException

Resource Get.
This method is delegated to strategy.

Specified by:
get in interface Manager
Returns:
a Resource
Throws:
TuboResourceException

restore

public void restore(Resource resource)
             throws TuboResourceException

Restore resource.
This method is delegated to strategy.

Specified by:
restore in interface Manager
Parameters:
resource - Resource to be restored by strategy.
Throws:
TuboResourceException

getProperties

public java.util.Properties getProperties()
Specified by:
getProperties in interface Manager

setProperties

public void setProperties(java.util.Properties properties)

getProperty

public java.lang.String getProperty(java.lang.String name)
Specified by:
getProperty in interface Manager

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)


Copyright © 2004-2007 Tubo. All Rights Reserved.