/** * Sets the implementation of this componet. * * @param implementation string denoting a FQCN in normal Java components, or some other name or file for other * component factory implementations */ public void setImplementation( String implementation ) { this.implementation = implementation; // reload implementation class implementationClass = null; attemptImplementationLoad(); }
/** * Returns the implementation class of this componet, or null if the implementation class can not be loaded. * * @return the implementation of this componet's role. */ public Class<? extends T> getImplementationClass() { attemptImplementationLoad(); if (implementationClass == null) { return (Class<T>) Object.class; } return (Class<T>)implementationClass; }
/** * Set the ClassRealm that this component lives under. * * @param realm the ClassRealm that this component lives under */ public void setRealm( ClassRealm realm ) { this.realm = realm; // reload implementation class implementationClass = null; attemptImplementationLoad(); // reload role class roleClass = null; attemptRoleLoad(); }
/** * Returns the implementation class of this componet, or null if the implementation class can not be loaded. * * @return the implementation of this componet's role. */ public Class<? extends T> getImplementationClass() { attemptImplementationLoad(); if (implementationClass == null) { return (Class<T>) Object.class; } return implementationClass; }
/** * Sets the implementation of this componet. * * @param implementation string denoting a FQCN in normal Java components, or some other name or file for other * component factory implementations */ public void setImplementation( String implementation ) { this.implementation = implementation; // reload implementation class implementationClass = null; attemptImplementationLoad(); }
/** * Set the ClassRealm that this component lives under. * * @param realm the ClassRealm that this component lives under */ public void setRealm( ClassRealm realm ) { this.realm = realm; // reload implementation class implementationClass = null; attemptImplementationLoad(); // reload role class roleClass = null; attemptRoleLoad(); }