Package com.dotcms.repackage.org.osgi.framework

Examples of com.dotcms.repackage.org.osgi.framework.Bundle


        String jar = request.getParameter( "jar" );
        String bundleId = request.getParameter( "bundleId" );

        //First uninstall the bundle
        Bundle bundle;
        try {
            try {
                bundle = OSGIUtil.getInstance().getBundleContext().getBundle( new Long( bundleId ) );
            } catch ( NumberFormatException e ) {
                bundle = OSGIUtil.getInstance().getBundleContext().getBundle( bundleId );
            }

            bundle.uninstall();
        } catch ( BundleException e ) {
            Logger.error( OSGIAJAX.class, "Unable to undeploy bundle [" + e.getMessage() + "]", e );
        }

        //Then move the bundle from the load folder to the undeployed folder
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.org.osgi.framework.Bundle

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.