Package org.codehaus.plexus

Examples of org.codehaus.plexus.PlexusContainer.dispose()


        public Wagon lookup(String roleHint) throws Exception {
            if ("http".equals(roleHint)) {
                PlexusContainer container= new DefaultPlexusContainer();
                Wagon httpWagon = (Wagon) container.lookup( org.apache.maven.wagon.Wagon.ROLE, "http" );
                container.dispose();
                return httpWagon;
            }
            return null;
        }
View Full Code Here


        }
        finally
        {
            if ( localContainer != null )
            {
                localContainer.dispose();
            }
        }
    }

    private void initialize( CliRequest cliRequest )
View Full Code Here

        for (Object container1 : containers) {
            PlexusContainer container = (PlexusContainer) container1;

            if (container != null) {
                container.dispose();

                ClassRealm realm = container.getContainerRealm();

                if (realm != null) {
                    realm.getWorld().disposeRealm(realm.getId());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.