org.glassfish.javaee.services
Class DataSourceDefinitionProxy
java.lang.Object
org.glassfish.javaee.services.DataSourceDefinitionProxy
- All Implemented Interfaces:
- Serializable, NamingObjectProxy, NamingObjectProxy.InitializationNamingObjectProxy
@Service
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class DataSourceDefinitionProxy
- extends Object
- implements NamingObjectProxy.InitializationNamingObjectProxy, Serializable
This resource proxy will not bind the actual object upon first lookup unlike
org.glassfish.javaee.services.ResourceProxy.
It holds the information required to get the actual object upon requests.
This is used for @DataSourceDefinition
Upon first lookup, the datasource is created, deployed and the internal jndi-name is given to the
proxy, using the internal jndi-name actual resource is returned.
On further lookups, internal jndi-name is used to get the actual resource.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSourceDefinitionProxy
public DataSourceDefinitionProxy()
create
public Object create(Context ic)
throws NamingException
- Specified by:
create in interface NamingObjectProxy
- Throws:
NamingException
setDescriptor
public void setDescriptor(DataSourceDefinitionDescriptor desc)
Copyright © 2012 GlassFish Community. All Rights Reserved.