Examples of classForName()


Examples of ariba.ui.aribaweb.util.AWMultiLocaleResourceManager.classForName()

            if (isUpperCase) {
                targetClassName = fieldPathString.substring(0, lastDotIndex);
                boolean isJavaIdentifier = Character.isJavaIdentifierStart(targetClassName.charAt(0));
                if (isJavaIdentifier) {
                    AWMultiLocaleResourceManager resourceManager = AWConcreteApplication.SharedInstance.resourceManager();
                    Class targetClass = resourceManager.classForName(targetClassName);
                    if (targetClass == null) {
                        targetClassName = classNameForKeyPath(targetClassName);
                    }
                }
            }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResourceManager.classForName()

                            _componentDefinitionHashtable.put(componentName.intern(), componentDefinition);
                        }
                        else {
                            Class componentClass = null;
                            AWResourceManager resourceManager = resourceManager();
                            componentClass = resourceManager.classForName(componentName);
                            if (componentClass == null) {
                                if (Character.isUpperCase(componentName.charAt(0))) {
                                    String templateName = StringUtil.strcat(componentName, AWComponent.ComponentTemplateFileExtension);
                                    AWResource resource = resourceManager.packageResourceNamed(templateName);
                                    if (resource != null) {
View Full Code Here

Examples of bsh.BshClassManager.classForName()

                    Interpreter i = new Interpreter(); // Construct an interpreter
                    BshClassManager bsh = i.getClassManager();
                    if (!bsh.classExists(classname)) {
                        i.source(url.getFile());
                    }
                    ti = bsh.classForName(classname);
                } catch (IOException ex) {
                    System.err.println("File missing:" + ex);
                    return null;
                } catch (Exception ex) {
                    System.err.println("Problem:" + ex);
View Full Code Here

Examples of org.datanucleus.ClassLoaderResolver.classForName()

            iteratorMappingClass = new StatementClassMapping();
            for (int i = 0; i < elementInfo.length; i++)
            {
                // TODO This will only work if all element types have a discriminator
                final int elementNo = i;
                final Class elementCls = clr.classForName(elementInfo[elementNo].getClassName());
                SQLStatement elementStmt = null;
                if (elementInfo[elementNo].getDiscriminatorStrategy() != null &&
                    elementInfo[elementNo].getDiscriminatorStrategy() != DiscriminatorStrategy.NONE)
                {
                    // The element uses a discriminator so just use that in the SELECT
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.ReflectionManager.classForName()

      if ( clazz.getClassName() == null ) {
        //we can have non java class persisted by hibernate
        continue;
      }
      try {
        callbackHandler.add( reflectionManager.classForName( clazz.getClassName(), this.getClass() ), reflectionManager );
      }
      catch (ClassNotFoundException e) {
        throw new MappingException( "entity class not found: " + clazz.getNodeName(), e );
      }
    }
View Full Code Here

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

  // todo : remove this once the state objects are cleaned up

  public static Class classForName(String className, ServiceRegistry serviceRegistry) {
    ClassLoaderService classLoaderService = serviceRegistry.getService( ClassLoaderService.class );
    try {
      return classLoaderService.classForName( className );
    }
    catch ( ClassLoadingException e ) {
      throw new MappingException( "Could not find class: " + className );
    }
  }
View Full Code Here

Examples of org.hibernate.reflection.ReflectionManager.classForName()

    while ( classes.hasNext() ) {
      PersistentClass clazz = (PersistentClass) classes.next();
      if ( clazz.getClassName() != null ) {
        //we can have non java class persisted by hibernate
        try {
          callbackHandler.add( reflectionManager.classForName( clazz.getClassName(), this.getClass() ), reflectionManager );
        }
        catch (ClassNotFoundException e) {
          throw new MappingException("entity class not found: " + clazz.getNodeName(), e);
        }
      }
View Full Code Here

Examples of org.hibernate.search.engine.service.classloading.spi.ClassLoaderService.classForName()

      String targetEntity = ( (CriteriaImpl) criteria ).getEntityOrClassName();
      if ( entityType == null ) {
        ServiceManager serviceManager = searchFactoryImplementor.getServiceManager();
        try {
          ClassLoaderService classLoaderService = serviceManager.requestService( ClassLoaderService.class );
          entityType = classLoaderService.classForName( targetEntity );
        }
        catch (ClassLoadingException e) {
          throw new SearchException( "Unable to load entity class from criteria: " + targetEntity, e );
        }
        finally {
View Full Code Here

Examples of org.hibernate.service.classloading.spi.ClassLoaderService.classForName()

            if (name == null) {
                //we can have non java class persisted by hibernate
                continue;
            }
            try {
                callbackHandler.add(classLoaderSvc.classForName(name), classLoaderSvc, binding);
            } catch (ClassLoadingException error) {
                throw new MappingException( "entity class not found: " + name, error );
            }
        }
//
View Full Code Here

Examples of org.jboss.weld.environment.deployment.WeldResourceLoader.classForName()

            throw CommonLogger.LOG.missingBeansXml();
        }

        final CDI11Bootstrap bootstrap;
        try {
            bootstrap = (CDI11Bootstrap) resourceLoader.classForName(BOOTSTRAP_IMPL_CLASS_NAME).newInstance();
        } catch (InstantiationException ex) {
            throw CommonLogger.LOG.errorLoadingWeld();
        } catch (IllegalAccessException ex) {
            throw CommonLogger.LOG.errorLoadingWeld();
        }
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.