Interface Resources
-
- All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy
public interface Resources extends org.jvnet.hk2.config.ConfigBeanProxyApplications 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 classResources.Duck
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> ResourcegetResourceByName(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)
-
-
-
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 asetmethod 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)
-
-