Package org.glassfish.resources.api
Class Resource
- java.lang.Object
-
- org.glassfish.resources.api.Resource
-
public class Resource extends Object
Class which represents the Resource.
-
-
Field Summary
Fields Modifier and Type Field Description static StringADMIN_OBJECT_RESOURCEstatic ListBINDABLE_RESOURCESstatic StringCONNECTOR_CONNECTION_POOLstatic StringCONNECTOR_RESOURCEstatic StringCONNECTOR_SECURITY_MAPstatic StringCONNECTOR_WORK_SECURITY_MAPstatic StringCUSTOM_RESOURCEstatic StringEXTERNAL_JNDI_RESOURCEstatic StringJDBC_CONNECTION_POOLstatic StringJDBC_RESOURCEstatic StringMAIL_RESOURCEstatic StringMANAGED_EXECUTOR_SERVICEstatic StringMANAGED_SCHEDULED_EXECUTOR_SERVICEstatic StringMANAGED_THREAD_FACTORYstatic StringPERSISTENCE_MANAGER_FACTORY_RESOURCEstatic StringRESOURCE_ADAPTER_CONFIGstatic ListRESOURCE_POOL
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)HashMapgetAttributes()StringgetDescription()PropertiesgetProperties()StringgetType()inthashCode()booleanisAConflict(Resource r)voidsetAttribute(String name, String value)voidsetAttribute(String name, String[] value)voidsetAttribute(String name, Properties value)voidsetDescription(String sDescription)voidsetProperty(String name, String value)StringtoString()
-
-
-
Field Detail
-
CUSTOM_RESOURCE
public static final String CUSTOM_RESOURCE
- See Also:
- Constant Field Values
-
CONNECTOR_RESOURCE
public static final String CONNECTOR_RESOURCE
- See Also:
- Constant Field Values
-
ADMIN_OBJECT_RESOURCE
public static final String ADMIN_OBJECT_RESOURCE
- See Also:
- Constant Field Values
-
JDBC_RESOURCE
public static final String JDBC_RESOURCE
- See Also:
- Constant Field Values
-
MAIL_RESOURCE
public static final String MAIL_RESOURCE
- See Also:
- Constant Field Values
-
EXTERNAL_JNDI_RESOURCE
public static final String EXTERNAL_JNDI_RESOURCE
- See Also:
- Constant Field Values
-
JDBC_CONNECTION_POOL
public static final String JDBC_CONNECTION_POOL
- See Also:
- Constant Field Values
-
CONNECTOR_CONNECTION_POOL
public static final String CONNECTOR_CONNECTION_POOL
- See Also:
- Constant Field Values
-
MANAGED_EXECUTOR_SERVICE
public static final String MANAGED_EXECUTOR_SERVICE
- See Also:
- Constant Field Values
-
MANAGED_SCHEDULED_EXECUTOR_SERVICE
public static final String MANAGED_SCHEDULED_EXECUTOR_SERVICE
- See Also:
- Constant Field Values
-
MANAGED_THREAD_FACTORY
public static final String MANAGED_THREAD_FACTORY
- See Also:
- Constant Field Values
-
RESOURCE_ADAPTER_CONFIG
public static final String RESOURCE_ADAPTER_CONFIG
- See Also:
- Constant Field Values
-
PERSISTENCE_MANAGER_FACTORY_RESOURCE
public static final String PERSISTENCE_MANAGER_FACTORY_RESOURCE
- See Also:
- Constant Field Values
-
CONNECTOR_SECURITY_MAP
public static final String CONNECTOR_SECURITY_MAP
- See Also:
- Constant Field Values
-
CONNECTOR_WORK_SECURITY_MAP
public static final String CONNECTOR_WORK_SECURITY_MAP
- See Also:
- Constant Field Values
-
BINDABLE_RESOURCES
public static final List BINDABLE_RESOURCES
-
RESOURCE_POOL
public static final List RESOURCE_POOL
-
-
Constructor Detail
-
Resource
public Resource(String type)
-
-
Method Detail
-
getType
public String getType()
-
getAttributes
public HashMap getAttributes()
-
setAttribute
public void setAttribute(String name, Properties value)
-
setDescription
public void setDescription(String sDescription)
-
getDescription
public String getDescription()
-
getProperties
public Properties getProperties()
-
isAConflict
public boolean isAConflict(Resource r)
-
-