Package org.codehaus.plexus

Examples of org.codehaus.plexus.ContainerConfiguration


            cliRequest.classWorld = new ClassWorld( "plexus.core", Thread.currentThread().getContextClassLoader() );
        }

        DefaultPlexusContainer container = null;

        ContainerConfiguration cc = new DefaultContainerConfiguration()
            .setClassWorld( cliRequest.classWorld )
            .setRealm( setupContainerRealm( cliRequest ) )
            .setClassPathScanning( PlexusConstants.SCANNING_INDEX )
            .setAutoWiring( true )
            .setName( "maven" );
View Full Code Here


                     @Override
                     public DefaultPlexusContainer call() throws Exception
                     {
                        try
                        {
                           ContainerConfiguration config = new DefaultContainerConfiguration().setAutoWiring(true);
                           plexusContainer = new DefaultPlexusContainer(config);
                           ConsoleLoggerManager loggerManager = new ConsoleLoggerManager();
                           loggerManager.setThreshold("ERROR");
                           ((DefaultPlexusContainer) plexusContainer).setLoggerManager(loggerManager);
                           return (DefaultPlexusContainer) plexusContainer;
View Full Code Here

            Thread.currentThread().setContextClassLoader(container.getContainerRealm());
        }

        private DefaultPlexusContainer createContainer() throws Exception {
            ContainerConfiguration cc = new DefaultContainerConfiguration()
                .setClassWorld(config.getClassWorld())
                .setName("maven");

            // NOTE: This causes wiring failures for jline.Terminal, investigate further
            //.setAutoWiring(true)
View Full Code Here

        if (classWorld == null) {
            classWorld = new ClassWorld("plexus.core", Thread.currentThread()
                    .getContextClassLoader());
        }

        final ContainerConfiguration cc = new DefaultContainerConfiguration().setClassWorld(classWorld)
                .setName("ruby-tools");
        this.container = new DefaultPlexusContainer(cc);
    }
View Full Code Here

    }
   
    log.debug("Setting up context:" + context.toString());
   
    // Configuration
    ContainerConfiguration containerConfiguration = new DefaultContainerConfiguration()
      .setName("test").setContext(context.getContextData());
   
    // String custom configuration
    containerConfiguration.setContainerConfiguration(getConfigurationName());
       
    customizeContainerConfiguration( containerConfiguration );
   
    try {
      container = new DefaultPlexusContainer( containerConfiguration );
View Full Code Here

  public PolyglotTranslatorCli(ClassWorld classWorld) throws Exception {
    if (classWorld == null) {
      classWorld = new ClassWorld("plexus.core", Thread.currentThread().getContextClassLoader());
    }

    ContainerConfiguration cc = new DefaultContainerConfiguration().setClassWorld(classWorld).setName("translator");
    container = new DefaultPlexusContainer(cc);

    translator = container.lookup(TeslaModelTranslator.class);
  }
View Full Code Here

  public TeslaTranslatorCli(ClassWorld classWorld) throws Exception {
    if (classWorld == null) {
      classWorld = new ClassWorld("plexus.core", Thread.currentThread().getContextClassLoader());
    }

    ContainerConfiguration cc = new DefaultContainerConfiguration()
      .setClassWorld(classWorld)
      .setName("translator");

    container = new DefaultPlexusContainer(cc);
    translator = container.lookup(TeslaModelTranslator.class);
View Full Code Here

        DefaultPlexusContainer container = this.container;

        if ( container == null )
        {
            ContainerConfiguration cc = new DefaultContainerConfiguration()
                .setClassWorld( cliRequest.classWorld )
                .setName( "maven" );

            container = new DefaultPlexusContainer( cc );
View Full Code Here

    private Set<MavenProject> createNow(Settings settings, File pomFile) throws PlexusContainerException, PlexusConfigurationException, ComponentLookupException, MavenExecutionRequestPopulationException, ProjectBuildingException {
        //using jarjar for maven3 classes affects the contents of the effective pom
        //references to certain Maven standard plugins contain jarjar in the fqn
        //not sure if this is a problem.
        ContainerConfiguration containerConfiguration = new DefaultContainerConfiguration()
                .setClassWorld(new ClassWorld("plexus.core", ClassWorld.class.getClassLoader()))
                .setName("mavenCore");

        DefaultPlexusContainer container = new DefaultPlexusContainer(containerConfiguration);
        ProjectBuilder builder = container.lookup(ProjectBuilder.class);
View Full Code Here

TOP

Related Classes of org.codehaus.plexus.ContainerConfiguration

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.