Package org.milyn.javabean.context

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


      ExecutionContext executionContext = event.getExecutionContext();
      populator.populateAndSetPropertyValue(bean, executionContext.getBeanContext(), watchingBeanId, executionContext, event.getSource());
    } else if(beanId == watchingBeanId && lifecycle == BeanLifecycle.REMOVE) {
      BeanContext beanContext = event.getExecutionContext().getBeanContext();
     
      beanContext.removeObserver(this);
      // Need to remove the watched bean from the bean context too because it's lifecycle is associated
      // with the lifecycle of the watching bean, which has been removed...
      if(watchedBeanId != null) {
        beanContext.removeBean(watchedBeanId, event.getSource());
      }
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.