Package rocket.beans.rebind

Examples of rocket.beans.rebind.NestedBean


    final BeanTag tag = new BeanTag();
    tag.setElement(element);

    tag.setPlaceHolderResolver(this.getPlaceHolderResolver());

    final NestedBean bean = new NestedBean();
    bean.setFilename(this.getFilename());
    bean.setEagerLoaded(tag.isEagerLoaded());
    bean.setSingleton(tag.isSingleton());
    bean.setTypeName(tag.getClassName());
    bean.setFactoryMethod(tag.getFactoryMethod());
    bean.setInitMethod(tag.getInitMethod());
    bean.setDestroyMethod(tag.getDestroyMethod());

    if (tag.getElement().hasAttribute(Constants.BEAN_ID_ATTRIBUTE)) {
      this.throwNestedBeansMustNotHaveIds(bean);
    }

    bean.setId(this.buildNestedBeanName());

    this.addBean(bean);

    this.addNestedBean();
    this.setParentBean(bean);

    bean.setConstructorValues(this.visitConstructorValues(tag.getConstructorValues()));
    bean.setProperties(this.visitProperties(tag.getProperties()));

    this.removeParentBean();

    return bean;
  }
View Full Code Here

TOP

Related Classes of rocket.beans.rebind.NestedBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.