FileDocCategorySizeDatePackage
J2EEResource.javaAPI DocGlassfish v2 API4226Fri May 04 22:35:10 BST 2007com.sun.enterprise.repository

J2EEResource

public interface J2EEResource
Interface representing J2EE Resource info.
author
Kenneth Saks

Fields Summary
final int
JMS_DESTINATION
Resource Types
final int
JMS_CNX_FACTORY
final int
JDBC_RESOURCE
final int
JDBC_XA_RESOURCE
final int
JDBC_DRIVER
final int
CONNECTOR_RESOURCE
final int
RESOURCE_ADAPTER
final int
JDBC_CONNECTION_POOL
final int
PMF_RESOURCE
final int
EXTERNAL_JNDI_RESOURCE
final int
CUSTOM_RESOURCE
final int
MAIL_RESOURCE
Constructors Summary
Methods Summary
public voidaddProperty(ResourceProperty property)
Add a property. Underlying set is keyed by property name. The new property overrides any existing property with same name.

public java.lang.StringgetDescription()

public java.lang.StringgetName()
Resource name. Immutable.

public java.util.SetgetProperties()
Set containing elements of type ResourceProperty. Actual property names are resource type specific.

return
Shallow copy of resource property set. If resource has 0 properties, empty set is returned.

public ResourcePropertygetProperty(java.lang.String propertyName)
Get a property with the given name.

return
ResourceProperty or null if not found.

public intgetType()
Resource type. Defined above. Immutable.

public booleanisEnabled()

public com.sun.enterprise.repository.J2EEResourcemakeClone(java.lang.String name)
Create a new resource with the given name that has the same attribute and property settings as the invoked object.

public booleanremoveProperty(ResourceProperty property)
Remove a property. Underlying set is keyed by property name.

return
true if property was removed, false if property was not found

public voidsetDescription(java.lang.String value)

public voidsetEnabled(boolean value)