com.github.smokestack.ejb
Class MockEJBContainer
java.lang.Object
com.github.smokestack.ejb.MockEJBContainer
public class MockEJBContainer
- extends Object
beans
protected Map<Class<?>,Object> beans
MockEJBContainer
public MockEJBContainer()
toString
public String toString()
- Overrides:
toString
in class Object
getInstance
public <T> T getInstance(Class<T> clazz)
throws MockEJBContainerException
- Setup and return an EJB instance
- Type Parameters:
T
- - Parameters:
clazz
-
- Returns:
-
- Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException
IllegalArgumentException
MockEJBContainerException
injectMembers
protected <T> void injectMembers(Class<T> clazz,
T instance)
throws IllegalArgumentException,
IllegalAccessException,
InstantiationException,
ClassNotFoundException
- Inject values for member variables
- Throws:
IllegalAccessException
IllegalArgumentException
InstantiationException
ClassNotFoundException
getAllFields
protected <T> Field[] getAllFields(Class<T> clazz)
- Recursively get all fields
cleanInstances
public void cleanInstances()
getAllMethods
protected <T> Method[] getAllMethods(Class<T> clazz)
- Recursively get all fields
Copyright © 2009-2010 Smokestack. All Rights Reserved.