Examples of lookupService()


Examples of org.apache.isis.core.metamodel.services.ServicesInjectorSpi.lookupService()

    public <T> T getService(Class<T> serviceClass) {
        if(serviceClass == DomainObjectContainer.class) {
            return (T) getContainer();
        }
        final ServicesInjectorSpi servicesInjector = getPersistenceSession().getServicesInjector();
        final T service = servicesInjector.lookupService(serviceClass);
        if(service == null) {
            throw new RuntimeException("Could not find a service of type: " + serviceClass.getName());
        }
        return service;
    }
View Full Code Here

Examples of org.openbp.guiclient.remote.ServerConnection.lookupService()

      {
        try
        {
          ClientSession session = ServerConnection.getInstance().getSession();

          ModelNotificationService mns = (ModelNotificationService) serverConnection.lookupService(ModelNotificationService.class);
          mns.requestModelReset(session);

          String message = getPluginResourceCollection().getRequiredString("okmessage");
          JMsgBox.show(null, message, JMsgBox.ICON_INFO);
        }
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.