org.objectweb.easybeans.deployment.annotations.helper
Class ResolverHelper

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

public final class ResolverHelper
extends java.lang.Object

This class handle some steps that need to be done after the meta-data generation.

Author:
Florent Benoit

Constructor Summary
private ResolverHelper()
          Helper class, no public constructor.
 
Method Summary
static java.util.List<java.lang.String> getAllInterfacesFromClass(ClassAnnotationMetadata sessionBean)
          Gets all interfaces used by a class.
static MethodAnnotationMetadata getMethod(ClassAnnotationMetadata bean, JMethod jMethod, boolean inherited, java.lang.String interfaceName)
          Gets method metadata on the given class metadata for the given method.
static void resolve(EjbJarAnnotationMetadata ejbJarAnnotationMetadata)
          The helper will analyze datas of a given EjbJarAnnotationMetadata object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResolverHelper

private ResolverHelper()
Helper class, no public constructor.

Method Detail

resolve

public static void resolve(EjbJarAnnotationMetadata ejbJarAnnotationMetadata)
                    throws ResolverException
The helper will analyze datas of a given EjbJarAnnotationMetadata object.

Parameters:
ejbJarAnnotationMetadata - object to analyze
Throws:
ResolverException - if one of resolver fails

getMethod

public static MethodAnnotationMetadata getMethod(ClassAnnotationMetadata bean,
                                                 JMethod jMethod,
                                                 boolean inherited,
                                                 java.lang.String interfaceName)
Gets method metadata on the given class metadata for the given method.

Parameters:
bean - the class metadata on which retrieve the method
jMethod - the method to get
inherited - get the correct method in super class, not inherited
interfaceName - the name of the interface that the class should have
Returns:
the method metadata, else exception

getAllInterfacesFromClass

public static java.util.List<java.lang.String> getAllInterfacesFromClass(ClassAnnotationMetadata sessionBean)
Gets all interfaces used by a class.

Parameters:
sessionBean - the metadata to analyze.
Returns:
the list of interfaces from a given class.