@Service @PerLookup public class ResourceProxy extends Object implements org.glassfish.api.naming.NamingObjectProxy.InitializationNamingObjectProxy
| Constructor and Description |
|---|
ResourceProxy() |
| Modifier and Type | Method and Description |
|---|---|
Object |
create(Context ic) |
protected ResourceDeployer |
getResourceDeployer(Object resource)
Given a resource instance, appropriate deployer will be provided
|
void |
setResource(com.sun.enterprise.config.serverbeans.Resource resource)
Set the resource config bean instance
|
void |
setResourceInfo(ResourceInfo resourceInfo)
Name by which the proxy (or the resource) will be bound in JNDI
|
protected Object |
throwResourceNotFoundException(Exception e,
ResourceInfo resourceInfo) |
public Object create(Context ic) throws NamingException
create in interface org.glassfish.api.naming.NamingObjectProxyNamingExceptionpublic void setResource(com.sun.enterprise.config.serverbeans.Resource resource)
resource - config beanpublic void setResourceInfo(ResourceInfo resourceInfo)
resourceInfo - resource-infoprotected Object throwResourceNotFoundException(Exception e, ResourceInfo resourceInfo) throws NamingException
NamingExceptionprotected ResourceDeployer getResourceDeployer(Object resource)
resource - resource instanceCopyright © 2013. All Rights Reserved.