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();
}
});
}