Package org.hibernate.service.spi

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


      dependentServiceRole = injectionMethod.getParameterTypes()[0];
    }

    // todo : because of the use of proxies, this is no longer returning null here...

    final Service dependantService = servicesRegistry.getService( dependentServiceRole );
    if ( dependantService == null ) {
      if ( injectService.required() ) {
        throw new ServiceDependencyException(
            "Dependency [" + dependentServiceRole + "] declared by service [" + service + "] not found"
        );
View Full Code Here

TOP

Related Classes of org.hibernate.service.spi.Service

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.