Examples of HostObjectServiceInterface


Examples of org.wso2.carbon.mashup.utils.HostObjectServiceInterface

        try {
            //Getting the registered required OSGi services
            ServiceReference[] references = bundleContext.getServiceReferences(HostObjectServiceInterface.class.getName(), null);
            if (references != null && references.length > 0) {
                for (ServiceReference reference : references) {
                    HostObjectServiceInterface hostObjectServiceInterface = (HostObjectServiceInterface) bundleContext.getService(reference);
                    String className = hostObjectServiceInterface.getHostObjectClassName();
                    hostObjectsThatNeedServices.remove(className);
                }
            }
        } catch (InvalidSyntaxException e) {
            //SyntaxError Occured. Ignoring
View Full Code Here

Examples of org.wso2.carbon.mashup.utils.HostObjectServiceInterface

    public synchronized void serviceChanged(ServiceEvent event) {
        if (event.getType() == ServiceEvent.REGISTERED) {
            Object service = bundleContext.getService(event.getServiceReference());
            if (service instanceof HostObjectServiceInterface) {
                HostObjectServiceInterface hostObjectServiceInterface = (HostObjectServiceInterface) service;
                hostObjectsThatNeedServices.remove(hostObjectServiceInterface.getHostObjectClassName());
            }
            if (hostObjectsThatNeedServices.isEmpty()) {
                try {
                    bundleContext.removeServiceListener(this);
                    Utils.registerDeployerServices(bundleContext);
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.