Examples of Service


Examples of org.hibernate.service.spi.Service

  }

  public void destroy() {
    ListIterator<Service> serviceIterator = serviceList.listIterator( serviceList.size() );
    while ( serviceIterator.hasPrevious() ) {
      final Service service = serviceIterator.previous();
      if ( Stoppable.class.isInstance( service ) ) {
        try {
          ( (Stoppable) service ).stop();
        }
        catch ( Exception e ) {
                    LOG.unableToStopService(service.getClass(), e.toString());
        }
      }
    }
    serviceList.clear();
    serviceList = null;
View Full Code Here

Examples of org.hightides.annotations.Service

  @SuppressWarnings("unchecked")
  public Map<String, Object> getParameters(Class clazz) {
    Map<String, Object> params = new HashMap<String, Object>();
    Annotation annotation = clazz.getAnnotation(Service.class);
    if (annotation instanceof Service) {
      Service service = (Service) annotation;
      params.put("syncMode", service.synchronizeMode());
    } else {
      // unexpected case... but handle it nevertheless
      params.put("syncMode", SyncMode.UPDATE);
      _log.error("Unable to retrieve syncMode for ["+clazz.getName()+"]");
    }
View Full Code Here

Examples of org.hivedb.services.Service

    Collection<T> instances = Lists.newArrayList();
    for(int i=0; i<5; i++) {
      final T instance = getInstance();
      instances.add(instance);
    }
    Service s = getClient();
    invokeWithArrayArgument(s, "saveAll", collectionToArray(clazz, instances));
    for(Object original : instances)
      validate(
          createServiceResponse(Arrays.asList(original)),
          invoke(s, "get", entityConfig.getId(original)),
View Full Code Here

Examples of org.huihoo.willow.Service

    service.setServer(this);

    synchronized (services)
    {
      Service results[] = new Service[services.length + 1];
      System.arraycopy(services, 0, results, 0, services.length);
      results[services.length] = service;
      services = results;

      if (started && (service instanceof Lifecycle))
View Full Code Here

Examples of org.hyperic.sigar.win32.Service

            @SuppressWarnings("unchecked")
            List<String> serviceNames = Service.getServiceNames();

            if (serviceNames != null) {
                for (String serviceName : serviceNames) {
                    Service s = null;

                    try {
                        s = new Service(serviceName);

                        ServiceConfig sc = s.getConfig();
                        ServiceInfo si = new ServiceInfo(sc.getName(), sc.getDisplayName(), sc.getDescription(), sc
                            .getPath(), sc.getDependencies());
                        services.add(si);
                    } catch (Win32Exception e) {
                        ; // Ignore these, it means Sigar was rejected by Windows for the particular Service.
                    } finally {
                        if (null != s) {
                            s.close();
                        }
                    }
                }
            }
        } catch (Exception e) {
View Full Code Here

Examples of org.jasig.cas.authentication.principal.Service

  protected String resolveServiceThemeName(HttpServletRequest request) {
        if (this.servicesManager == null) {
            return getDefaultThemeName();
        }

        final Service service = WebUtils.getService(this.argumentExtractors,
            request);

        final RegisteredService rService = this.servicesManager
            .findServiceBy(service);
View Full Code Here

Examples of org.jboss.ejb3.annotation.Service

               mbeanServer = org.jboss.mx.util.MBeanServerLocator.locateJBoss();

            if (mbeanServer == null)
               throw new RuntimeException("There is a @Management interface on " + ejbName + " but the MBeanServer has not been initialized for it");

            Service service = (Service)resolveAnnotation(Service.class);

            String objname = service.objectName();
            delegateObjectName = (objname == null || objname.equals("")) ?
                            new ObjectName(getObjectName().getCanonicalName() + ",type=ManagementInterface") : new ObjectName(service.objectName());

            delegate = new ServiceMBeanDelegate(mbeanServer, this, intf, delegateObjectName);

            getDeployment().getKernelAbstraction().installMBean(delegateObjectName, getDependencyPolicy(), delegate);
         }
         else
         {
            Service service = (Service)resolveAnnotation(Service.class);
            if (service.xmbean().length() > 0)
            {
               if (mbeanServer == null)
                  mbeanServer = org.jboss.mx.util.MBeanServerLocator.locateJBoss();

               if (mbeanServer == null)
                  throw new RuntimeException(ejbName + "is defined as an XMBean, but the MBeanServer has not been initialized for it");

               String objname = service.objectName();
               delegateObjectName = (objname == null || objname.equals("")) ?
                               new ObjectName(getObjectName().getCanonicalName() + ",type=ManagementInterface") : new ObjectName(service.objectName());

               delegate = new ServiceMBeanDelegate(mbeanServer, this, service.xmbean(), delegateObjectName);

               getDeployment().getKernelAbstraction().installMBean(delegateObjectName, getDependencyPolicy(), delegate);
            }
         }
        
View Full Code Here

Examples of org.jboss.errai.bus.server.annotations.Service

    final Set<Class<?>> services = reflections.getTypesAnnotatedWithExcluding(Service.class, MetaDataScanner.CLIENT_PKG_REGEX);

    for (Class<?> loadClass : services) {
      Object svc = null;

      Service svcAnnotation = loadClass.getAnnotation(Service.class);
      if (null == svcAnnotation) {
        // Diagnose Errai-111
        StringBuffer sb = new StringBuffer();
        sb.append("Service annotation cannot be loaded. (See https://jira.jboss.org/browse/ERRAI-111)\n");
        sb.append(loadClass.getSimpleName()).append(" loader: ").append(loadClass.getClassLoader()).append("\n");
        sb.append("@Service loader:").append(Service.class.getClassLoader()).append("\n");
        log.warn(sb.toString());
        continue;
      }

      boolean local = loadClass.isAnnotationPresent(Local.class);

      String svcName = svcAnnotation.value();

      // If no name is specified, just use the class name as the service by default.
      if ("".equals(svcName)) {
        svcName = loadClass.getSimpleName();
      }
View Full Code Here

Examples of org.jboss.seam.security.external.jaxb.xrds.Service

            Type type = objectFactory.createType();
            type.setValue(DiscoveryInformation.OPENID2_OP);
            URIPriorityAppendPattern uri = objectFactory.createURIPriorityAppendPattern();
            uri.setValue(getServiceURL(OpenIdService.OPEN_ID_SERVICE));

            Service service = objectFactory.createService();
            service.getType().add(type);
            service.getURI().add(uri);

            xrd.getService().add(service);

            xrds.getOtherelement().add(xrd);
View Full Code Here

Examples of org.jboss.soa.esb.Service

      assertEquals(4, TestChannel.count);
     
      Channel channel_3 = channel_map.get("channel_3");
      assertNotNull(channel_3);
      assertTrue(channel_3 instanceof ServiceChannel);
      Service service_3 = ((ServiceChannel)channel_3).getService();
      assertNotNull(service_3);
      assertEquals("category_3", service_3.getCategory());
      assertEquals("service_3", service_3.getName());
    }
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.