Examples of ReflectionManager


Examples of org.hibernate.annotations.common.reflection.ReflectionManager

      return shardLocalProperties;
    }
  }

  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() );
    XClass rootIndex = null;
    do {
      XClass currentClazz = reflectionManager.toXClass( aClass );
      Indexed indexAnn = currentClazz.getAnnotation( Indexed.class );
      if ( indexAnn != null ) {
        if ( indexAnn.index().length() != 0 ) {
          return indexAnn.index();
        }
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.ReflectionManager

   * @return A map of {@code InheritanceState}s keyed against their {@code XClass}.
   */
  public static Map<XClass, InheritanceState> buildInheritanceStates(
      List<XClass> orderedClasses,
      Mappings mappings) {
    ReflectionManager reflectionManager = mappings.getReflectionManager();
    Map<XClass, InheritanceState> inheritanceStatePerClass = new HashMap<XClass, InheritanceState>(
        orderedClasses.size()
    );
    for ( XClass clazz : orderedClasses ) {
      InheritanceState superclassState = InheritanceState.getSuperclassInheritanceState(
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.ReflectionManager

   * @return A map of {@code InheritanceState}s keyed against their {@code XClass}.
   */
  public static Map<XClass, InheritanceState> buildInheritanceStates(
      List<XClass> orderedClasses,
      Mappings mappings) {
    ReflectionManager reflectionManager = mappings.getReflectionManager();
    Map<XClass, InheritanceState> inheritanceStatePerClass = new HashMap<XClass, InheritanceState>(
        orderedClasses.size()
    );
    for ( XClass clazz : orderedClasses ) {
      InheritanceState superclassState = InheritanceState.getSuperclassInheritanceState(
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.ReflectionManager

    @SuppressWarnings({"unchecked"})
    public AuditConfiguration(Configuration cfg) {
        Properties properties = cfg.getProperties();

        ReflectionManager reflectionManager = ((AnnotationConfiguration) cfg).getReflectionManager();
        RevisionInfoConfiguration revInfoCfg = new RevisionInfoConfiguration();
        RevisionInfoConfigurationResult revInfoCfgResult = revInfoCfg.configure(cfg, reflectionManager);
        auditEntCfg = new AuditEntitiesConfiguration(properties, revInfoCfgResult.getRevisionInfoEntityName());
        globalCfg = new GlobalConfiguration(properties);
        auditProcessManager = new AuditProcessManager(revInfoCfgResult.getRevisionInfoGenerator());
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.ReflectionManager

    }

    public AuditConfiguration(Configuration cfg) {
        Properties properties = cfg.getProperties();

        ReflectionManager reflectionManager = cfg.getReflectionManager();
        globalCfg = new GlobalConfiguration(properties);
        RevisionInfoConfiguration revInfoCfg = new RevisionInfoConfiguration(globalCfg);
        RevisionInfoConfigurationResult revInfoCfgResult = revInfoCfg.configure(cfg, reflectionManager);
        auditEntCfg = new AuditEntitiesConfiguration(properties, revInfoCfgResult.getRevisionInfoEntityName());
        auditProcessManager = new AuditProcessManager(revInfoCfgResult.getRevisionInfoGenerator());
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.ReflectionManager

  }

  private SearchFactoryImplementor buildNewSearchFactory() {
    createCleanFactoryState( cfg );

    final ReflectionManager reflectionManager = getReflectionManager( cfg );
    if ( reflectionManager != cfg.getReflectionManager() ) {
      cfg = new ReflectionReplacingSearchConfiguration( reflectionManager, cfg );
    }

    BuildContext buildContext = new BuildContext();
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.ReflectionManager

      }
    }
  }

  private ReflectionManager getReflectionManager(SearchConfiguration cfg) {
    ReflectionManager reflectionManager = cfg.getReflectionManager();
    return getReflectionManager( reflectionManager );
  }
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.ReflectionManager

   * @return A map of {@code InheritanceState}s keyed against their {@code XClass}.
   */
  public static Map<XClass, InheritanceState> buildInheritanceStates(
      List<XClass> orderedClasses,
      Mappings mappings) {
    ReflectionManager reflectionManager = mappings.getReflectionManager();
    Map<XClass, InheritanceState> inheritanceStatePerClass = new HashMap<XClass, InheritanceState>(
        orderedClasses.size()
    );
    for ( XClass clazz : orderedClasses ) {
      InheritanceState superclassState = InheritanceState.getSuperclassInheritanceState(
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.ReflectionManager

   * @return A map of {@code InheritanceState}s keyed against their {@code XClass}.
   */
  public static Map<XClass, InheritanceState> buildInheritanceStates(
      List<XClass> orderedClasses,
      ExtendedMappings mappings) {
    ReflectionManager reflectionManager = mappings.getReflectionManager();
    Map<XClass, InheritanceState> inheritanceStatePerClass = new HashMap<XClass, InheritanceState>(
        orderedClasses.size()
    );
    for ( XClass clazz : orderedClasses ) {
      InheritanceState superclassState = InheritanceState.getSuperclassInheritanceState(
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.ReflectionManager

   * @return A map of {@code InheritanceState}s keyed against their {@code XClass}.
   */
  public static Map<XClass, InheritanceState> buildInheritanceStates(
      List<XClass> orderedClasses,
      Mappings mappings) {
    ReflectionManager reflectionManager = mappings.getReflectionManager();
    Map<XClass, InheritanceState> inheritanceStatePerClass = new HashMap<XClass, InheritanceState>(
        orderedClasses.size()
    );
    for ( XClass clazz : orderedClasses ) {
      InheritanceState superclassState = InheritanceState.getSuperclassInheritanceState(
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.