Package org.milyn.javabean.context

Examples of org.milyn.javabean.context.BeanContext.addBean()


      if(deletedBeanId != null) {
        if(result == null) {
          result = bean;
        }
        beanContext.addBean(deletedBeanId, result, source);
      } else if(result != null && bean != result) {
        beanContext.changeBean(beanId, bean, source);
      }

View Full Code Here


    BeanContext beanContext = executionContext.getBeanContext();

    if(valueObj == null) {
      beanContext.removeBean(beanId, source);
    } else {
      beanContext.addBean(beanId, valueObj, source);
    }
  }

  public Set<? extends Object> getProducts() {
    return CollectionsUtil.toSet(beanIdName);
View Full Code Here

      if(insertedBeanId != null) {
        if(result == null) {
          result = bean;
        }
        beanRepository.addBean(insertedBeanId, result, source);
      } else if(result != null && bean != result) {
        beanRepository.changeBean(beanId, bean, source);
      }
    } finally {
      if(dao != null) {
View Full Code Here

      if(updatedBeanId != null) {
        if(result == null) {
          result = bean;
        }
        beanContext.addBean(updatedBeanId, result, source);
      } else if(result != null && bean != result) {
        beanContext.changeBean(beanId, bean, source);
      }
    } finally {
      if(dao != null) {
View Full Code Here

        if(initValsExpression != null) {
          initValsExpression.exec(bean);
        }

        beanContext.setBeanInContext(beanId, false);
        beanContext.addBean(beanId, bean, source);
        beanContext.setBeanInContext(beanId, true);

        if (logger.isDebugEnabled()) {
            logger.debug("Bean [" + beanIdName + "] instance created.");
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.