Package org.hibernate.service.spi

Examples of org.hibernate.service.spi.ServiceBinding


    this.allowCrawling = ConfigurationHelper.getBoolean( ALLOW_CRAWLING, Environment.getProperties(), true );
  }

  @SuppressWarnings({ "unchecked" })
  protected <R extends Service> void createServiceBinding(ServiceInitiator<R> initiator) {
    final ServiceBinding serviceBinding = new ServiceBinding( this, initiator );
    serviceBindingMap.put( initiator.getServiceInitiated(), serviceBinding );
  }
View Full Code Here


    @SuppressWarnings( {"unchecked"})
  public void destroy() {
    synchronized ( serviceBindingList ) {
      ListIterator<ServiceBinding> serviceBindingsIterator = serviceBindingList.listIterator( serviceBindingList.size() );
      while ( serviceBindingsIterator.hasPrevious() ) {
        final ServiceBinding serviceBinding = serviceBindingsIterator.previous();
        serviceBinding.getLifecycleOwner().stopService( serviceBinding );
      }
      serviceBindingList.clear();
    }
    serviceBindingMap.clear();
  }
View Full Code Here

    prepare();
  }

  @SuppressWarnings({ "unchecked" })
  protected <R extends Service> void createServiceBinding(ServiceInitiator<R> initiator) {
    serviceBindingMap.put( initiator.getServiceInitiated(), new ServiceBinding( this, initiator ) );
  }
View Full Code Here

  @Override
    @SuppressWarnings( {"unchecked"})
  public void destroy() {
    ListIterator<ServiceBinding> serviceBindingsIterator = serviceBindingList.listIterator( serviceBindingList.size() );
    while ( serviceBindingsIterator.hasPrevious() ) {
      final ServiceBinding serviceBinding = serviceBindingsIterator.previous();
      serviceBinding.getLifecycleOwner().stopService( serviceBinding );
    }
    serviceBindingList.clear();
    serviceBindingList = null;
    serviceBindingMap.clear();
    serviceBindingMap = null;
View Full Code Here

    this.parent = (ServiceRegistryImplementor) bootstrapServiceRegistry;
  }

  @SuppressWarnings({ "unchecked" })
  protected <R extends Service> void createServiceBinding(ServiceInitiator<R> initiator) {
    final ServiceBinding serviceBinding = new ServiceBinding( this, initiator );
    serviceBindingMap.put( initiator.getServiceInitiated(), serviceBinding );
  }
View Full Code Here

    @SuppressWarnings( {"unchecked"})
  public void destroy() {
    synchronized ( serviceBindingList ) {
      ListIterator<ServiceBinding> serviceBindingsIterator = serviceBindingList.listIterator( serviceBindingList.size() );
      while ( serviceBindingsIterator.hasPrevious() ) {
        final ServiceBinding serviceBinding = serviceBindingsIterator.previous();
        serviceBinding.getLifecycleOwner().stopService( serviceBinding );
      }
      serviceBindingList.clear();
    }
    serviceBindingMap.clear();
  }
View Full Code Here

    this.parent = (ServiceRegistryImplementor) bootstrapServiceRegistry;
  }

  @SuppressWarnings({ "unchecked" })
  protected <R extends Service> void createServiceBinding(ServiceInitiator<R> initiator) {
    serviceBindingMap.put( initiator.getServiceInitiated(), new ServiceBinding( this, initiator ) );
  }
View Full Code Here

    @SuppressWarnings( {"unchecked"})
  public void destroy() {
    synchronized ( serviceBindingList ) {
      ListIterator<ServiceBinding> serviceBindingsIterator = serviceBindingList.listIterator( serviceBindingList.size() );
      while ( serviceBindingsIterator.hasPrevious() ) {
        final ServiceBinding serviceBinding = serviceBindingsIterator.previous();
        serviceBinding.getLifecycleOwner().stopService( serviceBinding );
      }
      serviceBindingList.clear();
    }
    serviceBindingMap.clear();
  }
View Full Code Here

    this.parent.registerChild( this );
  }

  @SuppressWarnings({ "unchecked" })
  protected <R extends Service> void createServiceBinding(ServiceInitiator<R> initiator) {
    final ServiceBinding serviceBinding = new ServiceBinding( this, initiator );
    serviceBindingMap.put( initiator.getServiceInitiated(), serviceBinding );
  }
View Full Code Here

      synchronized (serviceBindingList) {
        ListIterator<ServiceBinding> serviceBindingsIterator = serviceBindingList.listIterator(
            serviceBindingList.size()
        );
        while ( serviceBindingsIterator.hasPrevious() ) {
          final ServiceBinding serviceBinding = serviceBindingsIterator.previous();
          serviceBinding.getLifecycleOwner().stopService( serviceBinding );
        }
        serviceBindingList.clear();
      }
      serviceBindingMap.clear();
    }
View Full Code Here

TOP

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

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.