Package org.hibernate.service

Examples of org.hibernate.service.UnknownServiceException


  @SuppressWarnings( {"unchecked"})
  protected <R extends Service> R createService(ServiceBinding<R> serviceBinding) {
    final ServiceInitiator<R> serviceInitiator = serviceBinding.getServiceInitiator();
    if ( serviceInitiator == null ) {
      // this condition should never ever occur
      throw new UnknownServiceException( serviceBinding.getServiceRole() );
    }

    try {
      R service = serviceBinding.getLifecycleOwner().initiateService( serviceInitiator );
      // IMPL NOTE : the register call here is important to avoid potential stack overflow issues
View Full Code Here


  @Override
  public <R extends Service> R getService(Class<R> serviceRole) {
    final ServiceBinding<R> serviceBinding = locateServiceBinding( serviceRole );
    if ( serviceBinding == null ) {
      throw new UnknownServiceException( serviceRole );
    }

    R service = serviceBinding.getService();
    if ( service == null ) {
      service = initializeService( serviceBinding );
View Full Code Here

  @SuppressWarnings( {"unchecked"})
  protected <R extends Service> R createService(ServiceBinding<R> serviceBinding) {
    final ServiceInitiator<R> serviceInitiator = serviceBinding.getServiceInitiator();
    if ( serviceInitiator == null ) {
      // this condition should never ever occur
      throw new UnknownServiceException( serviceBinding.getServiceRole() );
    }

    try {
      R service = serviceBinding.getLifecycleOwner().initiateService( serviceInitiator );
      // IMPL NOTE : the register call here is important to avoid potential stack overflow issues
View Full Code Here

    if ( service == null ) {
      service = initializeService( serviceRole );
      serviceBinding.setTarget( service );
    }
    if ( service == null ) {
      throw new UnknownServiceException( serviceRole );
    }
    return service;
  }
View Full Code Here

  @Override
  @SuppressWarnings({ "unchecked" })
  protected <T extends Service> T createService(Class<T> serviceRole) {
    SessionFactoryServiceInitiator<T> initiator = serviceInitiatorMap.get( serviceRole );
    if ( initiator == null ) {
      throw new UnknownServiceException( serviceRole );
    }
    try {
      T service = initiator.initiateService( sessionFactory, configuration, this );
      // IMPL NOTE : the register call here is important to avoid potential stack overflow issues
      //    from recursive calls through #configureService
View Full Code Here

  @Override
  @SuppressWarnings({ "unchecked" })
  protected <T extends Service> T createService(Class<T> serviceRole) {
    BasicServiceInitiator<T> initiator = serviceInitiatorMap.get( serviceRole );
    if ( initiator == null ) {
      throw new UnknownServiceException( serviceRole );
    }
    try {
      T service = initiator.initiateService( configurationValues, this );
      // IMPL NOTE : the register call here is important to avoid potential stack overflow issues
      //    from recursive calls through #configureService
View Full Code Here

  @Override
  public <R extends Service> R getService(Class<R> serviceRole) {
    final ServiceBinding<R> serviceBinding = locateServiceBinding( serviceRole );
    if ( serviceBinding == null ) {
      throw new UnknownServiceException( serviceRole );
    }

    R service = serviceBinding.getService();
    if ( service == null ) {
      service = initializeService( serviceBinding );
View Full Code Here

  @SuppressWarnings( {"unchecked"})
  protected <R extends Service> R createService(ServiceBinding<R> serviceBinding) {
    final ServiceInitiator<R> serviceInitiator = serviceBinding.getServiceInitiator();
    if ( serviceInitiator == null ) {
      // this condition should never ever occur
      throw new UnknownServiceException( serviceBinding.getServiceRole() );
    }

    try {
      R service = serviceBinding.getServiceRegistry().initiateService( serviceInitiator );
      // IMPL NOTE : the register call here is important to avoid potential stack overflow issues
View Full Code Here

  @Override
  public <R extends Service> R getService(Class<R> serviceRole) {
    final ServiceBinding<R> serviceBinding = locateServiceBinding( serviceRole );
    if ( serviceBinding == null ) {
      throw new UnknownServiceException( serviceRole );
    }

    R service = serviceBinding.getService();
    if ( service == null ) {
      service = initializeService( serviceBinding );
View Full Code Here

  @SuppressWarnings( {"unchecked"})
  protected <R extends Service> R createService(ServiceBinding<R> serviceBinding) {
    final ServiceInitiator<R> serviceInitiator = serviceBinding.getServiceInitiator();
    if ( serviceInitiator == null ) {
      // this condition should never ever occur
      throw new UnknownServiceException( serviceBinding.getServiceRole() );
    }

    try {
      R service = serviceBinding.getLifecycleOwner().initiateService( serviceInitiator );
      // IMPL NOTE : the register call here is important to avoid potential stack overflow issues
View Full Code Here

TOP

Related Classes of org.hibernate.service.UnknownServiceException

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.