Package org.hibernate.annotations.common.reflection.java

Examples of org.hibernate.annotations.common.reflection.java.JavaReflectionManager


    return getReflectionManager( reflectionManager );
  }

  private ReflectionManager getReflectionManager(ReflectionManager reflectionManager) {
    if ( reflectionManager == null ) {
      reflectionManager = new JavaReflectionManager();
    }
    return reflectionManager;
  }
View Full Code Here


    return getReflectionManager( reflectionManager );
  }

  private ReflectionManager getReflectionManager(ReflectionManager reflectionManager) {
    if ( reflectionManager == null ) {
      reflectionManager = new JavaReflectionManager();
    }
    return reflectionManager;
  }
View Full Code Here

  private void createReflectionManager() {
    createReflectionManager( new JPAMetadataProvider() );
  }

  private void createReflectionManager(MetadataProvider metadataProvider) {
    reflectionManager = new JavaReflectionManager();
    ( ( MetadataProviderInjector ) reflectionManager ).setMetadataProvider( metadataProvider );
  }
View Full Code Here

     */
    public ClassValidator(
      Class<T> beanClass, ResourceBundle resourceBundle, MessageInterpolator interpolator,
            Map<XClass, ClassValidator> childClassValidators, ReflectionManager reflectionManager
    ) {
        this.reflectionManager = reflectionManager != null ? reflectionManager : new JavaReflectionManager();
        XClass beanXClass = this.reflectionManager.toXClass( beanClass );
    this.beanClass = beanClass;
    this.messageBundle = resourceBundle == null ?
        getDefaultResourceBundle() :
        resourceBundle;
View Full Code Here

    ResourceBundle rb = (ResourceBundle) ois.readObject();
    if ( rb == null ) rb = getDefaultResourceBundle();
    this.messageBundle = rb;
    this.userInterpolator = (MessageInterpolator) ois.readObject();
    this.defaultMessageBundle = ResourceBundle.getBundle( DEFAULT_VALIDATOR_MESSAGE );
    reflectionManager = new JavaReflectionManager();
    initValidator( reflectionManager.toXClass( beanClass ), new HashMap<XClass, ClassValidator>() );
  }
View Full Code Here

  }

  private static String getDirectoryProviderName(XClass clazz, SearchConfiguration cfg) {
    ReflectionManager reflectionManager = cfg.getReflectionManager();
    if ( reflectionManager == null ) {
      reflectionManager = new JavaReflectionManager();
    }
    //get the most specialized (ie subclass > superclass) non default index name
    //if none extract the name from the most generic (superclass > subclass) @Indexed class in the hierarchy
    //FIXME I'm inclined to get rid of the default value
    Class<?> aClass = cfg.getClassMapping( clazz.getName() );
View Full Code Here

    return geReflectionManager( reflectionManager );
  }

  private ReflectionManager geReflectionManager(ReflectionManager reflectionManager) {
    if ( reflectionManager == null ) {
      reflectionManager = new JavaReflectionManager();
    }
    return reflectionManager;
  }
View Full Code Here

    return getReflectionManager( reflectionManager );
  }

  private ReflectionManager getReflectionManager(ReflectionManager reflectionManager) {
    if ( reflectionManager == null ) {
      reflectionManager = new JavaReflectionManager();
    }
    return reflectionManager;
  }
View Full Code Here

  private void createReflectionManager() {
    createReflectionManager( new JPAMetadataProvider() );
  }

  private void createReflectionManager(MetadataProvider metadataProvider) {
    reflectionManager = new JavaReflectionManager();
    ( ( MetadataProviderInjector ) reflectionManager ).setMetadataProvider( metadataProvider );
  }
View Full Code Here

  }

  public SearchFactoryImpl(SearchConfiguration cfg) {
    ReflectionManager reflectionManager = cfg.getReflectionManager();
    if ( reflectionManager == null ) {
      reflectionManager = new JavaReflectionManager();
    }
    this.indexingStrategy = defineIndexingStrategy( cfg ); //need to be done before the document builds
    initDocumentBuilders( cfg, reflectionManager );

    Set<Class<?>> indexedClasses = documentBuildersIndexedEntities.keySet();
View Full Code Here

TOP

Related Classes of org.hibernate.annotations.common.reflection.java.JavaReflectionManager

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.