import org.wamblee.system.core.RequiredInterface;
import org.wamblee.system.core.Scope;
-
/**
* A Class Adapter adapts a given class to a Component.
- *
+ *
* @author Erik Brakkee
*/
public class ClassAdapter extends AbstractComponent<Object> {
- /**
- * DOCUMENT ME!
- */
private ClassConfiguration _classConfig;
/**
* Creates a new ClassAdapter object.
- *
- * @param aName DOCUMENT ME!
- * @param aClassConfig DOCUMENT ME!
+ *
*/
public ClassAdapter(String aName, ClassConfiguration aClassConfig) {
- super(aName,
- aClassConfig.getProvidedInterfaces()
- .toArray(new ProvidedInterface[0]),
- aClassConfig.getRequiredInterfaces()
+ super(aName, aClassConfig.getProvidedInterfaces().toArray(
+ new ProvidedInterface[0]), aClassConfig.getRequiredInterfaces()
.toArray(new RequiredInterface[0]));
_classConfig = aClassConfig;
}
- /**
- * DOCUMENT ME!
- *
- * @param aScope DOCUMENT ME!
- *
- * @return DOCUMENT ME!
- */
@Override
protected Object doStart(Scope aScope) {
Object obj = _classConfig.create(aScope);
return obj;
}
- /**
- * DOCUMENT ME!
- *
- * @param aRuntime DOCUMENT ME!
- */
@Override
protected void doStop(Object aRuntime) {
- // Empty.
+ // Empty.
}
}