public abstract class JavaEEResourceBase extends Object implements JavaEEResource, Serializable
CONNECTOR_RESOURCE, CUSTOM_RESOURCE, EXTERNAL_JNDI_RESOURCE, JDBC_CONNECTION_POOL, JDBC_DRIVER, JDBC_RESOURCE, JDBC_XA_RESOURCE, JMS_CNX_FACTORY, JMS_DESTINATION, MAIL_RESOURCE, PMF_RESOURCE, RESOURCE_ADAPTER| Constructor and Description |
|---|
JavaEEResourceBase(ResourceInfo resourceInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(ResourceProperty property)
Add a property.
|
protected abstract JavaEEResource |
doClone(ResourceInfo resourceInfo)
Creates a JavaEEResource from a specified
ResourceInfo |
String |
getDescription()
Gets description of the resource
|
Set |
getProperties()
Set containing elements of type ResourceProperty.
|
ResourceProperty |
getProperty(String propertyName)
Get a property with the given name.
|
protected String |
getPropsString()
Gets a the of properties as a JSON array
i.e.
|
ResourceInfo |
getResourceInfo()
Resource Info.
|
abstract int |
getType()
Resource type.
|
boolean |
isEnabled()
Checks whether the resource is enabled.
|
JavaEEResource |
makeClone(ResourceInfo resourceInfo)
Create a new resource with the given name
that has the same attribute and property
settings as the invoked object.
|
boolean |
removeProperty(ResourceProperty property)
Remove a property.
|
void |
setDescription(String value)
Sets description of the resource
|
void |
setEnabled(boolean value)
Sets whether the resource is enabled.
|
public JavaEEResourceBase(ResourceInfo resourceInfo)
public ResourceInfo getResourceInfo()
JavaEEResourcegetResourceInfo in interface JavaEEResourcepublic void setEnabled(boolean value)
JavaEEResource
A resource can exist but be disabled, in which case references if an application is deployed that references it
will deploy without errors, but when it is looked up a NamingException will be thrown
setEnabled in interface JavaEEResourcepublic boolean isEnabled()
JavaEEResource
A resource can exist but be disabled, in which case references if an application is deployed that references it
will deploy without errors, but when it is looked up a NamingException will be thrown
isEnabled in interface JavaEEResourcepublic void setDescription(String value)
JavaEEResourcesetDescription in interface JavaEEResourcepublic String getDescription()
JavaEEResourcegetDescription in interface JavaEEResourcepublic abstract int getType()
JavaEEResourcegetType in interface JavaEEResourcepublic Set getProperties()
JavaEEResourcegetProperties in interface JavaEEResourcepublic void addProperty(ResourceProperty property)
JavaEEResourceaddProperty in interface JavaEEResourcepublic boolean removeProperty(ResourceProperty property)
JavaEEResourceremoveProperty in interface JavaEEResourcepublic ResourceProperty getProperty(String propertyName)
JavaEEResourcegetProperty in interface JavaEEResourcepublic JavaEEResource makeClone(ResourceInfo resourceInfo)
JavaEEResourcemakeClone in interface JavaEEResourceprotected String getPropsString()
If there are no properties an empty string is returned.
protected abstract JavaEEResource doClone(ResourceInfo resourceInfo)
ResourceInforesourceInfo - Copyright © 2019. All rights reserved.