com.bm.ejb3metadata.annotations.metadata
Class MetaDataCache

java.lang.Object
  extended by com.bm.ejb3metadata.annotations.metadata.MetaDataCache

public final class MetaDataCache
extends java.lang.Object


Method Summary
static void addClasses(java.lang.String... classes)
          Adds explicit matadate form annotated classes to the ejb3unit framework
static java.lang.String getBeanImplementationForInterface(java.lang.Class<?> toInspect)
          Returns the implementation for the class
static ClassAnnotationMetadata getClassAnnotationMetaData(java.lang.String className)
          Returns the ClassAnnotationMetadata for the given class name
static DynamicDIModuleCreator getDynamicModuleCreator(Ejb3UnitCfg conf, javax.persistence.EntityManager manager, java.lang.Class toCheck)
          Returns the Module Module for guice dependency injection with valid ejb3mapping definition.
static ClassAnnotationMetadata getMetaData(java.lang.Class toCheck)
          Returns the metadate mapping for the jar where the class file is in.
static MockedDIModuleCreator getMockModuleCreator(java.lang.Class toCheck)
          Returns the Module Module for guice dependency injection with valid ejb3mapping definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addClasses

public static void addClasses(java.lang.String... classes)
Adds explicit matadate form annotated classes to the ejb3unit framework

Parameters:
classes - the list of classes

getBeanImplementationForInterface

public static java.lang.String getBeanImplementationForInterface(java.lang.Class<?> toInspect)
Returns the implementation for the class

Parameters:
toInspect - the interface.
Returns:
the implementation
Since:
Jul 19, 2007

getClassAnnotationMetaData

public static ClassAnnotationMetadata getClassAnnotationMetaData(java.lang.String className)
Returns the ClassAnnotationMetadata for the given class name

Parameters:
className - The name of the class in the form com.bla.class
Returns:
Metadata if present otherwise NULL

getDynamicModuleCreator

public static DynamicDIModuleCreator getDynamicModuleCreator(Ejb3UnitCfg conf,
                                                             javax.persistence.EntityManager manager,
                                                             java.lang.Class toCheck)
Returns the Module Module for guice dependency injection with valid ejb3mapping definition.

Parameters:
conf - the configuration
manager - the entity manager instance which should be used for the binding
toCheck - the class wich identifyes the module
Returns:
the module creator.

getMetaData

public static ClassAnnotationMetadata getMetaData(java.lang.Class toCheck)
Returns the metadate mapping for the jar where the class file is in.

Parameters:
toCheck - the class wich identifyes the module
Returns:
metat data
Since:
Jul 19, 2007

getMockModuleCreator

public static MockedDIModuleCreator getMockModuleCreator(java.lang.Class toCheck)
Returns the Module Module for guice dependency injection with valid ejb3mapping definition. Will inject mock controlls.

Parameters:
toCheck - the class to check
Returns:
the module creator.


Copyright © 2008. All Rights Reserved.