public void execute( ContainerInitializationContext context )
throws ContainerInitializationException
{
LifecycleHandlerManager lifecycleHandlerManager = getLifecycleHandlerManager( context );
ComponentRegistry componentRegistry = new DefaultComponentRegistry( context.getContainer(),
lifecycleHandlerManager );
componentRegistry.registerComponentManagerFactory( new PerLookupComponentManagerFactory() );
componentRegistry.registerComponentManagerFactory( new SingletonComponentManagerFactory() );
initializeComponentRegistry( componentRegistry, context );
context.getContainer().setComponentRegistry( componentRegistry );
}