Package jfun.yan.lifecycle

Examples of jfun.yan.lifecycle.Procedure


      String nuts_resource){
    setSpringAware(module_name, processor, processor.getClassLoader(), nuts_resource);
  }
  private static DefaultLifecycleManager.DefaultLifecycle newBeanLifecycle(
      DefaultLifecycleManager man){
    return man.newLifecycle().disposer(new Procedure(){
      public void invoke(Object self, Object[] args) throws Throwable {
        ((DisposableBean)self).destroy();
      }
    });
  }
View Full Code Here


      db.destroy();
    }
  }
  private static DefaultLifecycleManager.DefaultLifecycle
  getDisposerLifecycle(DefaultLifecycleManager manager){
    return manager.newLifecycle().disposer(new Procedure(){
      public void invoke(Object self, Object[] args)
      throws Throwable {
        final BeanDisposer bd = (BeanDisposer)self;
        bd.dispose();
      }
View Full Code Here

TOP

Related Classes of jfun.yan.lifecycle.Procedure

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.