Package org.codehaus.plexus.component.configurator

Examples of org.codehaus.plexus.component.configurator.BasicComponentConfigurator


    }

    private void initializeCoreComponents()
        throws ComponentConfigurationException, ComponentRepositoryException, ContextException
    {
        BasicComponentConfigurator configurator = new BasicComponentConfigurator();

        PlexusConfiguration c = configuration.getChild( "component-repository" );

        processCoreComponentConfiguration( "component-repository", configurator, c );
View Full Code Here


    }

    private void initializeCoreComponents()
        throws ComponentConfigurationException, ComponentRepositoryException, ContextException
    {
        BasicComponentConfigurator configurator = new BasicComponentConfigurator();

        PlexusConfiguration c = configuration.getChild( "component-repository" );

        processCoreComponentConfiguration( "component-repository", configurator, c );
View Full Code Here

            containerRealm,
            configuration );

        // PLXAPI: I think we might only ever need one of these so maybe we can create it with a constructor
        // and store it.
        ComponentConfigurator c = new BasicComponentConfigurator();

        try
        {
            c.configureComponent( this, initializationConfiguration, containerRealm );
        }
        catch ( ComponentConfigurationException e )
        {
            throw new PlexusContainerException( "Error setting container initialization initializationPhases.", e );
        }
View Full Code Here

            containerRealm,
            configuration );

        // PLXAPI: I think we might only ever need one of these so maybe we can create it with a constructor
        // and store it.
        ComponentConfigurator c = new BasicComponentConfigurator();

        try
        {
            c.configureComponent( this, initializationConfiguration, containerRealm );
        }
        catch ( ComponentConfigurationException e )
        {
            throw new PlexusContainerException( "Error setting container initialization initializationPhases.", e );
        }
View Full Code Here

        configureMojo(mojo, new FileInputStream(pom));
        return mojo;
    }

    private void configureMojo(Object mojo, InputStream is) throws Exception {
        ComponentConfigurator configurator = new BasicComponentConfigurator();
        ExpressionEvaluator evaluator = new DefaultExpressionEvaluator();
        Xpp3Dom dom = Xpp3DomBuilder.build(is, "UTF-8")
                .getChild("build")
                .getChild("plugins")
                .getChild("plugin")
                .getChild("configuration");
        PlexusConfiguration config = new XmlPlexusConfiguration(dom);
        ClassRealm realm = new ClassWorld()
                .newRealm(null, getClass().getClassLoader());
        configurator.configureComponent(mojo, config, evaluator, realm);
    }
View Full Code Here

TOP

Related Classes of org.codehaus.plexus.component.configurator.BasicComponentConfigurator

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.