Ejemplo n.º 1
0
  public Object autowire(Object component) throws CompositionException {
    SetterComponentComposer composer = new SetterComponentComposer();

    composer.assembleComponent(component, null, this);

    return component;
  }
Ejemplo n.º 2
0
  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;
  }