Package org.hibernate.boot.registry.classloading.spi

Examples of org.hibernate.boot.registry.classloading.spi.ClassLoaderService.classForName()



    // JBoss ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    try {
      classLoaderService.classForName( JBossStandAloneJtaPlatform.JBOSS_TM_CLASS_NAME );
      classLoaderService.classForName( JBossStandAloneJtaPlatform.JBOSS_UT_CLASS_NAME );

      // we know that the JBoss TS classes are available
      // if neither of these look-ups resulted in an error (no such class), then JBossTM is available on
      // the classpath
      //
View Full Code Here


    catch (ClassLoadingException ignore) {
    }

    // Bitronix ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    try {
      classLoaderService.classForName( BitronixJtaPlatform.TM_CLASS_NAME );
      return new BitronixJtaPlatform();
    }
    catch (ClassLoadingException ignore) {
    }
View Full Code Here

    catch (ClassLoadingException ignore) {
    }

    // JOnAS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    try {
      classLoaderService.classForName( JOnASJtaPlatform.TM_CLASS_NAME );
      return new JOnASJtaPlatform();
    }
    catch (ClassLoadingException ignore) {
    }
View Full Code Here

    catch (ClassLoadingException ignore) {
    }

    // JOTM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    try {
      classLoaderService.classForName( JOTMJtaPlatform.TM_CLASS_NAME );
      return new JOTMJtaPlatform();
    }
    catch (ClassLoadingException ignore) {
    }
View Full Code Here

    // WebSphere ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    for ( WebSphereJtaPlatform.WebSphereEnvironment webSphereEnvironment
        : WebSphereJtaPlatform.WebSphereEnvironment.values() ) {
      try {
        Class accessClass = classLoaderService.classForName( webSphereEnvironment.getTmAccessClassName() );
        return new WebSphereJtaPlatform( accessClass, webSphereEnvironment );
      }
      catch (ClassLoadingException ignore) {
      }
    }
View Full Code Here

    if ( StringHelper.isNotEmpty( resolverImplNames ) ) {
      final ClassLoaderService classLoaderService = registry.getService( ClassLoaderService.class );
      for ( String resolverImplName : StringHelper.split( ", \n\r\f\t", resolverImplNames ) ) {
        try {
          resolver.addResolver(
              (DialectResolver) classLoaderService.classForName( resolverImplName ).newInstance()
          );
        }
        catch (HibernateException e) {
          throw e;
        }
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.