use of org.hudsonci.inject.internal.extension.ExtensionModule in project hudson-2.x by hudson.
the class SmoothieContainerBootstrap method bootstrap.
public SmoothieContainer bootstrap(final ClassLoader classLoader, final Class... types) {
log.info("Bootstrapping Smoothie");
// Build the root space for the given types
ClassSpace space = new ClassSpaceFactory().create(classLoader, types);
// Start up the container
SmoothieContainer container = new SmoothieContainerImpl(new ExtensionModule(space, true));
Smoothie.setContainer(container);
// Enable aspect-based injection
InjectomaticAspectHelper.setEnabled(true);
return container;
}
Aggregations