public interface JavaEEResource
Modifier and Type | Field and Description |
---|---|
static int |
CONNECTOR_RESOURCE |
static int |
CUSTOM_RESOURCE |
static int |
EXTERNAL_JNDI_RESOURCE |
static int |
JDBC_CONNECTION_POOL |
static int |
JDBC_DRIVER |
static int |
JDBC_RESOURCE |
static int |
JDBC_XA_RESOURCE |
static int |
JMS_CNX_FACTORY |
static int |
JMS_DESTINATION
Resource Types
|
static int |
MAIL_RESOURCE |
static int |
PMF_RESOURCE |
static int |
RESOURCE_ADAPTER |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(ResourceProperty property)
Add a property.
|
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.
|
ResourceInfo |
getResourceInfo()
Resource Info.
|
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.
|
static final int JMS_DESTINATION
static final int JMS_CNX_FACTORY
static final int JDBC_RESOURCE
static final int JDBC_XA_RESOURCE
static final int JDBC_DRIVER
static final int CONNECTOR_RESOURCE
static final int RESOURCE_ADAPTER
static final int JDBC_CONNECTION_POOL
static final int PMF_RESOURCE
static final int EXTERNAL_JNDI_RESOURCE
static final int CUSTOM_RESOURCE
static final int MAIL_RESOURCE
ResourceInfo getResourceInfo()
int getType()
Set getProperties()
void addProperty(ResourceProperty property)
property
- boolean removeProperty(ResourceProperty property)
property
- ResourceProperty getProperty(String propertyName)
propertyName
- JavaEEResource makeClone(ResourceInfo resourceInfo)
resourceInfo
- void setEnabled(boolean value)
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
value
- boolean isEnabled()
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
void setDescription(String value)
value
- String getDescription()
Copyright © 2021. All rights reserved.