Methods Summary |
---|
public void | addConfigProperty(com.sun.enterprise.deployment.EnvironmentProperty configProperty)
this.configProperties_.add(configProperty);
|
public javax.naming.Reference | createAdminObjectReference()
Reference ref =
new Reference(getAdminObjectType(),
new SerializableObjectRefAddr("jndiName", this),
ConnectorConstants.ADMINISTERED_OBJECT_FACTORY, null);
return ref;
|
public java.lang.Object | createAdministeredObject(java.lang.ClassLoader jcl)
try {
if (jcl == null) {
// use context class loader
jcl = (ClassLoader) AccessController.doPrivileged
(new PrivilegedAction() {
public Object run() {
return
Thread.currentThread().getContextClassLoader();
}
});
}
Object adminObject =
jcl.loadClass(adminObjectClass_).newInstance();
AccessController.doPrivileged
(new SetMethodAction(adminObject, configProperties_));
return adminObject;
} catch (PrivilegedActionException ex) {
throw (PoolingException) (new PoolingException().initCause(ex));
} catch (Exception ex) {
throw (PoolingException) (new PoolingException().initCause(ex));
}
|
protected com.sun.enterprise.repository.J2EEResource | doClone(java.lang.String name)
AdministeredObjectResource clone =
new AdministeredObjectResource(name);
clone.setResourceAdapter(getResourceAdapter());
clone.setAdminObjectType(getAdminObjectType());
return clone;
|
public java.lang.String | getAdminObjectClass()
return this.adminObjectClass_;
|
public java.lang.String | getAdminObjectType()
return adminObjectType_;
|
public java.lang.String | getResourceAdapter()
return resadapter_;
|
public int | getType()
// FIX ME
return 0;
//return J2EEResource.ADMINISTERED_OBJECT;
|
public void | initialize(com.sun.enterprise.deployment.AdminObject desc)
configProperties_ = new HashSet();
adminObjectClass_ = desc.getAdminObjectClass();
adminObjectType_ = desc.getAdminObjectInterface();
|
public void | removeConfigProperty(com.sun.enterprise.deployment.EnvironmentProperty configProperty)Add a configProperty to the set
this.configProperties_.remove(configProperty);
|
public void | setAdminObjectClass(java.lang.String name)
this.adminObjectClass_ = name;
|
public void | setAdminObjectType(java.lang.String adminObjectType)
this.adminObjectType_ = adminObjectType;
|
public void | setResourceAdapter(java.lang.String resadapter)
resadapter_ = resadapter;
|
public java.lang.String | toString()
return "< Administered Object : " + getName() +
" , " + getResourceAdapter() +
" , " + getAdminObjectType() + " >";
|