com.bm.ejb3metadata.annotations.helper.bean
Class InheritanceInterfacesHelper

java.lang.Object
  extended by com.bm.ejb3metadata.annotations.helper.bean.InheritanceInterfacesHelper

public final class InheritanceInterfacesHelper
extends java.lang.Object

Analyze classes and if there are super classes, set all super interfaces to the current class.

Author:
Florent Benoit

Field Summary
static java.lang.String JAVA_LANG_OBJECT
          Defines java.lang.Object class.
 
Method Summary
static void loop(ClassAnnotationMetadata beanClassAnnotationMetadata, ClassAnnotationMetadata visitingClassAnnotationMetadata)
          Found all method meta data of the super class and adds them to the bean's class.
static void resolve(ClassAnnotationMetadata classAnnotationMetadata)
          Found all method meta data of the super class and adds them to the bean's class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVA_LANG_OBJECT

public static final java.lang.String JAVA_LANG_OBJECT
Defines java.lang.Object class.

See Also:
Constant Field Values
Method Detail

resolve

public static void resolve(ClassAnnotationMetadata classAnnotationMetadata)
                    throws ResolverException
Found all method meta data of the super class and adds them to the bean's class. Delegates to loop method.

Parameters:
classAnnotationMetadata - bean' class to analyze.
Throws:
ResolverException - if the super class in not in the given ejb-jar

loop

public static void loop(ClassAnnotationMetadata beanClassAnnotationMetadata,
                        ClassAnnotationMetadata visitingClassAnnotationMetadata)
                 throws ResolverException
Found all method meta data of the super class and adds them to the bean's class.

Parameters:
beanClassAnnotationMetadata - class where to report interfaces
visitingClassAnnotationMetadata - class to analyze
Throws:
ResolverException - if the super class in not in the given ejb-jar


Copyright © 2008. All Rights Reserved.