Examples of PassivationCapable


Examples of javax.enterprise.inject.spi.PassivationCapable

    T instance = super.create(bean, env);

    if ((instance instanceof HandleAware)
        && (bean instanceof PassivationCapable)) {
      HandleAware handleAware = (HandleAware) instance;
      PassivationCapable passiveBean = (PassivationCapable) bean;
     
      handleAware.setSerializationHandle(new SingletonHandle(passiveBean.getId()));
    }
   
    return instance;
  }
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.