Interface ResourceManager
-
- All Known Implementing Classes:
AdminObjectManager
,ConnectorConnectionPoolManager
,ConnectorResourceManager
,ConnectorWorkSecurityMapResourceManager
,ContextServiceManager
,CustomResourceManager
,JavaMailResourceManager
,JDBCConnectionPoolManager
,JDBCResourceManager
,JndiResourceManager
,ManagedExecutorServiceBaseManager
,ManagedExecutorServiceManager
,ManagedScheduledExecutorServiceManager
,ManagedThreadFactoryManager
,PMFResourceManager
,ResourceAdapterConfigManager
@Contract public interface ResourceManager
Contract for all ResourceManagers- Author:
- Prashanth Abbagani
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceStatus
create(Resources resources, HashMap attributes, Properties properties, String target)
creates the resource as a child to the resources providedResource
createConfigBean(Resources resources, HashMap attributes, Properties properties, boolean validate)
creates config-bean equivalent for the resource configuration provided as attributes and properties
Does not persist the configurationString
getResourceType()
returns the resource-type
-
-
-
Method Detail
-
create
ResourceStatus create(Resources resources, HashMap attributes, Properties properties, String target) throws Exception
creates the resource as a child to the resources provided- Parameters:
resources
- parent for the resource to be createdattributes
- resource configurationproperties
- propertiestarget
- target- Returns:
- ResourceStatus indicating the status of resource creation
- Throws:
Exception
- when unable to create the resource
-
createConfigBean
Resource createConfigBean(Resources resources, HashMap attributes, Properties properties, boolean validate) throws Exception
creates config-bean equivalent for the resource configuration provided as attributes and properties
Does not persist the configuration- Parameters:
resources
- parent for the resource to be createdattributes
- attributes of the resourceproperties
- properties of the resourcevalidate
- indicate whether config validation is required or not- Returns:
- Config-Bean equivalent of the resource
- Throws:
Exception
- when unable to create config-bean-equivalent
-
getResourceType
String getResourceType()
returns the resource-type- Returns:
- resource-type
-
-