Examples of JavaReflectionManager


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

  }

  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

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

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

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

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

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

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

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

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

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

   * @return the index name
   */
  private static String getIndexName(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

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

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

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

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

  private ReflectionManager createReflectionManager() {
    return createReflectionManager( new JPAMetadataProvider() );
  }

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

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

     */
    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

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

    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
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.