Package org.hibernate.service

Examples of org.hibernate.service.Service


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

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

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


    serviceBindingMap.clear();
  }

  @Override
  public <R extends Service> void stopService(ServiceBinding<R> binding) {
    final Service service = binding.getService();
    if ( Stoppable.class.isInstance( service ) ) {
      try {
        ( (Stoppable) service ).stop();
      }
      catch ( Exception e ) {
        log.unableToStopService( service.getClass(), e.toString() );
      }
    }
  }
View Full Code Here

    throw new ServiceException( "Boot-strap registry should only contain provided services" );
  }

  @Override
  public <R extends Service> void stopService(ServiceBinding<R> binding) {
    final Service service = binding.getService();
    if ( Stoppable.class.isInstance( service ) ) {
      try {
        ( (Stoppable) service ).stop();
      }
      catch ( Exception e ) {
        LOG.unableToStopService( service.getClass(), e.toString() );
      }
    }
  }
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 = getService( dependentServiceRole );
    if ( dependantService == null ) {
      if ( injectService.required() ) {
        throw new ServiceDependencyException(
            "Dependency [" + dependentServiceRole + "] declared by service [" + service + "] not found"
        );
View Full Code Here

    serviceBindingMap = null;
  }

  @Override
  public <R extends Service> void stopService(ServiceBinding<R> binding) {
    final Service service = binding.getService();
    if ( Stoppable.class.isInstance( service ) ) {
      try {
        ( (Stoppable) service ).stop();
      }
      catch ( Exception e ) {
        LOG.unableToStopService( service.getClass(), e.toString() );
      }
    }
  }
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 = getService( dependentServiceRole );
    if ( dependantService == null ) {
      if ( injectService.required() ) {
        throw new ServiceDependencyException(
            "Dependency [" + dependentServiceRole + "] declared by service [" + service + "] not found"
        );
View Full Code Here

    serviceBindingMap.clear();
  }

  @Override
  public <R extends Service> void stopService(ServiceBinding<R> binding) {
    final Service service = binding.getService();
    if ( Stoppable.class.isInstance( service ) ) {
      try {
        ( (Stoppable) service ).stop();
      }
      catch ( Exception e ) {
        LOG.unableToStopService( service.getClass(), e.toString() );
      }
    }
  }
View Full Code Here

    throw new ServiceException( "Boot-strap registry should only contain provided services" );
  }

  @Override
  public <R extends Service> void stopService(ServiceBinding<R> binding) {
    final Service service = binding.getService();
    if ( Stoppable.class.isInstance( service ) ) {
      try {
        ( (Stoppable) service ).stop();
      }
      catch ( Exception e ) {
        LOG.unableToStopService( service.getClass(), e.toString() );
      }
    }
  }
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 = getService( dependentServiceRole );
    if ( dependantService == null ) {
      if ( injectService.required() ) {
        throw new ServiceDependencyException(
            "Dependency [" + dependentServiceRole + "] declared by service [" + service + "] not found"
        );
View Full Code Here

  }

  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

TOP

Related Classes of org.hibernate.service.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.