public class InitializeComponentRegistryPhase implements ContainerInitializationPhase
{
public void execute( ContainerInitializationContext context )
throws ContainerInitializationException
{
LifecycleHandlerManager lifecycleHandlerManager = getLifecycleHandlerManager( context );
ComponentRegistry componentRegistry = new DefaultComponentRegistry( context.getContainer(),
lifecycleHandlerManager );
componentRegistry.registerComponentManagerFactory( new PerLookupComponentManagerFactory() );