Examples of IDiagramProfileService


Examples of org.wapama.web.profile.IDiagramProfileService

            BundleContext bundleContext = ((BundleReference) getClass().getClassLoader()).getBundle().getBundleContext();
            ServiceReference ref = bundleContext.getServiceReference(IDiagramProfileService.class.getName());
            if (ref == null) {
                throw new IllegalArgumentException(profileName + " is not registered");
            }
            IDiagramProfileService service = (IDiagramProfileService) bundleContext.getService(ref);
            profile = service.findProfile(req, profileName);
        } else {
            // check w/o BundleReference
            IDiagramProfileService service = ProfileServiceImpl.INSTANCE;
            profile = service.findProfile(req, profileName);
            if(profile == null) {
                throw new IllegalArgumentException("Cannot determine the profile to use for interpreting models");
            }
        }
        return profile;
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.