org.hibernate.search.engine.metadata.impl
Class AnnotationMetadataProvider

java.lang.Object
  extended by org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider
All Implemented Interfaces:
MetadataProvider

public class AnnotationMetadataProvider
extends Object
implements MetadataProvider

A metadata provider which extracts the required information from annotations.

Author:
Hardy Ferentschik

Nested Class Summary
static class AnnotationMetadataProvider.ParseContext
           
 
Constructor Summary
AnnotationMetadataProvider(org.hibernate.annotations.common.reflection.ReflectionManager reflectionManager, ConfigContext configContext)
           
 
Method Summary
protected  void checkDocumentId(org.hibernate.annotations.common.reflection.XProperty member, TypeMetadata.Builder typeMetadataBuilder, boolean isRoot, String prefix, ConfigContext configContext, org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.PathsContext pathsContext, AnnotationMetadataProvider.ParseContext parseContext)
           
 TypeMetadata getTypeMetadataFor(Class<?> clazz)
          Returns the Search related metadata for the specified type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationMetadataProvider

public AnnotationMetadataProvider(org.hibernate.annotations.common.reflection.ReflectionManager reflectionManager,
                                  ConfigContext configContext)
Method Detail

getTypeMetadataFor

public TypeMetadata getTypeMetadataFor(Class<?> clazz)
Description copied from interface: MetadataProvider
Returns the Search related metadata for the specified type.

Specified by:
getTypeMetadataFor in interface MetadataProvider
Parameters:
clazz - The type of interest.
Returns:
the TypeMetadata for the specified type

checkDocumentId

protected void checkDocumentId(org.hibernate.annotations.common.reflection.XProperty member,
                               TypeMetadata.Builder typeMetadataBuilder,
                               boolean isRoot,
                               String prefix,
                               ConfigContext configContext,
                               org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.PathsContext pathsContext,
                               AnnotationMetadataProvider.ParseContext parseContext)


Copyright © 2006-2013 Red Hat Middleware, LLC. All Rights Reserved