Interface Resources
-
- All Superinterfaces:
ConfigBeanProxy
public interface Resources extends ConfigBeanProxy
Applications can lookup resources registered in the server. These can be through portable JNDI names (eg: resource-ref in standard deployment descriptors like ejb-jar.xml, web.xml etc.,) or by doing direct lookup. Each of the resource has valid target for defining the resource-ref. (eg: JdbcResource can be referred from Server, Cluster, Stand Alone Instance, ServerResource can be referred from Server, Cluster, Stand Alone Instance, Config)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Resources.Duck
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Resource
getResourceByName(Class<T> type, String name)
List<Resource>
getResources()
Returns a list of Resources like Custom Resource Or External Jndi Resource Or Jdbc Resource Or Mail Resource Or Admin Object Resource Or Connector Resource Or Resource Adapter Config Or Jdbc Connection Pool Or Connector Connection Pool.<T> Collection<T>
getResources(Class<T> type)
-
Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParent
-
-
-
-
Method Detail
-
getResources
List<Resource> getResources()
Returns a list of Resources like Custom Resource Or External Jndi Resource Or Jdbc Resource Or Mail Resource Or Admin Object Resource Or Connector Resource Or Resource Adapter Config Or Jdbc Connection Pool Or Connector Connection Pool. 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 aset
method for the customResource Or ExternalJndiResource Or JdbcResource Or MailResource Or AdminObjectResource Or ConnectorResource Or ResourceAdapterConfig Or JdbcConnectionPool Or ConnectorConnectionPool. For example, to add a new item, do as follows:get(CustomResource Or ExternalJndiResource Or JdbcResource Or MailResource Or AdminObjectResource Or ConnectorResource Or ResourceAdapterConfig Or JdbcConnectionPool Or ConnectorConnectionPool).add(newItem);
Any sub type(s) of resource is allowed.
-
getResources
@DuckTyped <T> Collection<T> getResources(Class<T> type)
-
getResourceByName
@DuckTyped <T> Resource getResourceByName(Class<T> type, String name)
-
-