Package org.codehaus.plexus

Examples of org.codehaus.plexus.ComponentRegistry


    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 );
    }
View Full Code Here


                return false;
            }

            // if the type to be created is an instance of the expected type, return true
            try {
                ComponentRegistry componentRegistry = container.getComponentRegistry();

                return componentRegistry.getComponentDescriptor(propertyType, requirement.getRole(), requirement.getRoleHint()) != null;
            } catch (Exception e) {
            }

            return false;
        }
View Full Code Here

                return false;
            }

            // if the type to be created is an instance of the expected type, return true
            try {
                ComponentRegistry componentRegistry = container.getComponentRegistry();

                return componentRegistry.getComponentDescriptor(propertyType, requirement.getRole(), requirement.getRoleHint()) != null;
            } catch (Exception e) {
            }

            return false;
        }
View Full Code Here

    {
        ComponentRepository repository = getComponentRepository( context );

        LifecycleHandlerManager lifecycleHandlerManager = getLifecycleHandlerManager( context );

        ComponentRegistry componentRegistry = new DefaultComponentRegistry( context.getContainer(),
            repository,
            lifecycleHandlerManager );

        componentRegistry.registerComponentManagerFactory( new PerLookupComponentManagerFactory() );

        componentRegistry.registerComponentManagerFactory( new SingletonComponentManagerFactory() );

        context.getContainer().setComponentRegistry( componentRegistry );
    }
View Full Code Here

    {
        ComponentRepository repository = getComponentRepository( context );

        LifecycleHandlerManager lifecycleHandlerManager = getLifecycleHandlerManager( context );

        ComponentRegistry componentRegistry = new DefaultComponentRegistry( context.getContainer(),
            repository,
            lifecycleHandlerManager );

        componentRegistry.registerComponentManagerFactory( new PerLookupComponentManagerFactory() );

        componentRegistry.registerComponentManagerFactory( new SingletonComponentManagerFactory() );

        context.getContainer().setComponentRegistry( componentRegistry );
    }
View Full Code Here

TOP

Related Classes of org.codehaus.plexus.ComponentRegistry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.