org.objectweb.easybeans.deployment.annotations.helper.bean
Class BusinessMethodResolver

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.helper.bean.BusinessMethodResolver

public final class BusinessMethodResolver
extends java.lang.Object

This class resolves the business method for bean class by looking at the interfaces.

Author:
Florent Benoit

Field Summary
private static java.lang.String CLASS_INIT
          Name of the method used in constructor.
private static java.lang.String CONST_INIT
          Ignore constructor "method" of interfaces.
private static JLog logger
          Logger.
 
Constructor Summary
private BusinessMethodResolver()
          Helper class, no public constructor.
 
Method Summary
private static void loop(ClassAnnotationMetadata beanclassAnnotationMetadata, ClassAnnotationMetadata visitingclassAnnotationMetadata)
          While there are super interfaces, loop on them.
static void resolve(ClassAnnotationMetadata classAnnotationMetadata)
          Found all business methods of a bean.
A business method is a method from one of the local or remote interfaces.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_INIT

private static final java.lang.String CLASS_INIT
Name of the method used in constructor. This has to be ignored as this is never a business interface

See Also:
Constant Field Values

CONST_INIT

private static final java.lang.String CONST_INIT
Ignore constructor "method" of interfaces. Not a business interface.

See Also:
Constant Field Values

logger

private static JLog logger
Logger.

Constructor Detail

BusinessMethodResolver

private BusinessMethodResolver()
Helper class, no public constructor.

Method Detail

resolve

public static void resolve(ClassAnnotationMetadata classAnnotationMetadata)
Found all business methods of a bean.
A business method is a method from one of the local or remote interfaces.

Parameters:
classAnnotationMetadata - class to analyze

loop

private static void loop(ClassAnnotationMetadata beanclassAnnotationMetadata,
                         ClassAnnotationMetadata visitingclassAnnotationMetadata)
While there are super interfaces, loop on them.

Parameters:
beanclassAnnotationMetadata - the class that is analyzed
visitingclassAnnotationMetadata - classes from where we get interfaces