@Service @PerLookup public class ResourceProxy extends Object implements NamingObjectProxy.InitializationNamingObjectProxy
NamingObjectProxy.InitializationNamingObjectProxy| Constructor and Description |
|---|
ResourceProxy() |
| Modifier and Type | Method and Description |
|---|---|
Object |
create(Context ic)
Create and return an object.
|
protected ResourceDeployer |
getResourceDeployer(Object resource)
Given a resource instance, appropriate deployer will be provided
|
void |
setResource(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
NamingObjectProxycreate in interface NamingObjectProxyNamingExceptionpublic void setResource(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 © 2017. All rights reserved.