com.sun.enterprise.config.serverbeans
Interface Resources
- All Superinterfaces:
- org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.component.Injectable
public interface Resources
- extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.component.Injectable
J2EE Applications look up resources registered with the Application server,
using portable JNDI names.
|
Method Summary |
|
getResourceByName(java.lang.Class<T> type,
java.lang.String name)
|
java.util.List<Resource> |
getResources()
Gets the value of the customResourceOrExternalJndiResourceOrJdbcResourceOrMailResourceOrAdminObjectResourceOrConnectorResourceOrResourceAdapterConfigOrJdbcConnectionPoolOrConnectorConnectionPool property. |
<T> java.util.Collection<T> |
|
getResources(java.lang.Class<T> type)
|
java.util.Collection<BindableResource> |
getResourcesOfPool(java.lang.String connectionPoolName)
|
| Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy |
createChild, deepCopy, getParent, getParent |
| Methods inherited from interface org.jvnet.hk2.component.Injectable |
injectedInto |
getResources
java.util.List<Resource> getResources()
- Gets the value of the customResourceOrExternalJndiResourceOrJdbcResourceOrMailResourceOrAdminObjectResourceOrConnectorResourceOrResourceAdapterConfigOrJdbcConnectionPoolOrConnectorConnectionPool property.
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a
set method for the customResourceOrExternalJndiResourceOrJdbcResourceOrMailResourceOrAdminObjectResourceOrConnectorResourceOrResourceAdapterConfigOrJdbcConnectionPoolOrConnectorConnectionPool property.
For example, to add a new item, do as follows:
getCustomResourceOrExternalJndiResourceOrJdbcResourceOrMailResourceOrAdminObjectResourceOrConnectorResourceOrResourceAdapterConfigOrJdbcConnectionPoolOrConnectorConnectionPool().add(newItem);
Objects of the following type(s) are allowed in the list
CustomResource
ExternalJndiResource
JdbcResource �
MailResource
AdminObjectResource
ConnectorResource
ResourceAdapterConfig
JdbcConnectionPool
ConnectorConnectionPool
getResources
@DuckTyped
<T> java.util.Collection<T> getResources(java.lang.Class<T> type)
getResourceByName
@DuckTyped
<T> Resource getResourceByName(java.lang.Class<T> type,
java.lang.String name)
getResourcesOfPool
@DuckTyped
java.util.Collection<BindableResource> getResourcesOfPool(java.lang.String connectionPoolName)
Copyright © 2012 GlassFish Community. All Rights Reserved.