Package com.dotmarketing.osgi.override

Source Code of com.dotmarketing.osgi.override.Activator

package com.dotmarketing.osgi.override;

import com.dotcms.repackage.org.osgi.framework.BundleContext;
import com.dotmarketing.osgi.GenericBundleActivator;
import com.dotmarketing.portlets.folders.model.Folder;

/**
* Created by Jonathan Gamba
* Date: 6/18/12
*/
public class Activator extends GenericBundleActivator {

    @SuppressWarnings ("unchecked")
    public void start ( BundleContext context ) throws Exception {

        //Initializing services...
        initializeServices( context );

        //Expose bundle elements
        publishBundleServices( context );

        /**
         * Trying to use our custom implementation of this class, after the last method call should be possible
         * if was added the Override-Classes property inside the MANIFEST.MF.
         */
        Folder folder = new Folder();
        folder.getPath();
    }

    public void stop ( BundleContext context ) throws Exception {

        //Unpublish bundle services
        unpublishBundleServices();
    }

}
TOP

Related Classes of com.dotmarketing.osgi.override.Activator

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.