Class JavaMailResourceManager
- java.lang.Object
-
- org.glassfish.resources.javamail.admin.cli.JavaMailResourceManager
-
- All Implemented Interfaces:
ResourceManager
@Service(name="mail-resource") public class JavaMailResourceManager extends Object implements ResourceManager
-
-
Constructor Summary
Constructors Constructor Description JavaMailResourceManager()
-
Method Summary
All Methods Instance Methods Concrete 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
-
getResourceType
public String getResourceType()
Description copied from interface:ResourceManager
returns the resource-type- Specified by:
getResourceType
in interfaceResourceManager
- Returns:
- resource-type
-
create
public ResourceStatus create(Resources resources, HashMap attributes, Properties properties, String target) throws Exception
Description copied from interface:ResourceManager
creates the resource as a child to the resources provided- Specified by:
create
in interfaceResourceManager
- 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
public Resource createConfigBean(Resources resources, HashMap attributes, Properties properties, boolean validate) throws Exception
Description copied from interface:ResourceManager
creates config-bean equivalent for the resource configuration provided as attributes and properties
Does not persist the configuration- Specified by:
createConfigBean
in interfaceResourceManager
- 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
-
-