*/
public class ObjectAdapter extends AbstractComponent<Object> {
- private SetterConfiguration _setterConfig;
- private Object _object;
+ private ObjectConfiguration objectConfig;
+ private Object object;
- public ObjectAdapter(String aName, Object aObject, SetterConfiguration aSetterConfig) {
+ public ObjectAdapter(String aName, Object aObject, ObjectConfiguration aObjectConfig) {
super(aName,
new ProvidedInterface[] { new DefaultProvidedInterface(aName, aObject.getClass()) },
- aSetterConfig.getRequiredInterfaces().toArray(new RequiredInterface[0]));
- _setterConfig = aSetterConfig;
- _object = aObject;
+ aObjectConfig.getRequiredInterfaces().toArray(new RequiredInterface[0]));
+ objectConfig = aObjectConfig;
+ object = aObject;
}
@Override
protected Object doStart(Scope aScope) {
- _setterConfig.inject(aScope, _object);
+ objectConfig.inject(aScope, object);
for (ProvidedInterface provided: getProvidedInterfaces()) {
- addInterface(provided, _object, aScope);
+ addInterface(provided, object, aScope);
}
- return _object;
+ return object;
}
@Override