Package org.jbpm.designer.web.preference

Examples of org.jbpm.designer.web.preference.IDiagramPreferenceService


       
        {
            ServiceReference sRef =
                context.getServiceReference(IDiagramPreferenceService.class.getName());
            if (sRef != null) {
              IDiagramPreferenceService service = (IDiagramPreferenceService) context.getService(sRef);
            } else {
                //use a service tracker to be called back when the IUUIDBasedRepositoryFactory is ready:
                ServiceTrackerCustomizer cust = new ServiceTrackerCustomizer() {

                    public void removedService(ServiceReference reference, Object service) {
                        //special servlet shutdown
                    }

                    public void modifiedService(ServiceReference reference, Object service) {
                        //reload?
                    }

                    public Object addingService(ServiceReference reference) {
                      IDiagramPreferenceService service = (IDiagramPreferenceService) context.getService(reference);
                        return service;
                    }
                };
                ServiceTracker tracker = new ServiceTracker(context,
                    IDiagramPreferenceService.class.getName(), cust);
View Full Code Here

TOP

Related Classes of org.jbpm.designer.web.preference.IDiagramPreferenceService

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.