public Object autowire(Object component) throws CompositionException { SetterComponentComposer composer = new SetterComponentComposer(); composer.assembleComponent(component, null, this); return component; }
public Object createAndAutowire(String clazz) throws CompositionException, ClassNotFoundException, InstantiationException, IllegalAccessException { Object component = containerRealm.loadClass(clazz).newInstance(); SetterComponentComposer composer = new SetterComponentComposer(); composer.assembleComponent(component, null, this); return component; }