*/
public static void setSpringAware(String module_name,
NutsProcessor processor,
ClassLoader loader, String nuts_resource,
String appcontext_resource){
final NutsProcessor spring =
processor.createMetaProcessor(loader);
final Container yan = processor.getContainer();
/*
final ReloadableResourceBundleMessageSource msgsrc = new ReloadableResourceBundleMessageSource();
msgsrc.setBasename("org/springframework/context/support/messages");
final ApplicationEventPublisher aep = new ApplicationEventPublisher(){
}*/
final Container base = new ManualContainer();
base.registerValue("modulename", module_name);
base.registerValue("timestamp", new Long(System.currentTimeMillis()));
base.registerValue("classloader", loader);
base.registerValue("container", yan);
final NutsProcessor cinterpreter = new NutsProcessor();
//cinterpreter.setParameterWiring(Modes.params_bytype);
try{
cinterpreter.processResource(appcontext_resource);
}
catch(IOException e){
throw new IllegalStateException("cannot startup spring integration.");
}
final Container context = cinterpreter.getContainer().inherit(base);
final Container2ApplicationContext ctxt = (Container2ApplicationContext)
context.getInstance("appcontext");
final Container nuts = spring.getContainer();
final DefaultLifecycleManager manager = processor.getLifecycleManager();