public class ApplicationComposers
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
ApplicationComposers.ExtensionAwareOptimizedLoaderService |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPENEJB_APPLICATION_COMPOSER_CONTEXT |
Constructor and Description |
---|
ApplicationComposers(java.lang.Class<?> klass,
java.lang.Object... additionalModules) |
ApplicationComposers(java.lang.Object... modules) |
Modifier and Type | Method and Description |
---|---|
void |
after() |
void |
before(java.lang.Object inputTestInstance) |
void |
deployApp(java.lang.Object inputTestInstance) |
void |
enrich(java.lang.Object inputTestInstance) |
<T> T |
evaluate(java.lang.Object testInstance,
java.util.concurrent.Callable<T> next) |
void |
evaluate(java.lang.Object testInstance,
java.lang.Runnable next) |
static java.util.Collection<java.io.File> |
findFiles(Jars jarsAnnotation) |
void |
handleLifecycle(java.lang.Class<?> type,
java.lang.Object appInstance) |
protected boolean |
isApplication() |
protected boolean |
isContainer() |
static void |
main(java.lang.String[] args) |
protected boolean |
mockCdiContexts() |
static void |
run(java.lang.Class<?> type,
java.lang.String... args) |
void |
startContainer(java.lang.Object instance) |
void |
stopApplication() |
public static final java.lang.String OPENEJB_APPLICATION_COMPOSER_CONTEXT
public ApplicationComposers(java.lang.Object... modules)
public ApplicationComposers(java.lang.Class<?> klass, java.lang.Object... additionalModules)
protected boolean isContainer()
protected boolean isApplication()
public void before(java.lang.Object inputTestInstance) throws java.lang.Exception
java.lang.Exception
public void deployApp(java.lang.Object inputTestInstance) throws java.lang.Exception
java.lang.Exception
protected boolean mockCdiContexts()
public void enrich(java.lang.Object inputTestInstance) throws OpenEJBException
OpenEJBException
public static java.util.Collection<java.io.File> findFiles(Jars jarsAnnotation)
public <T> T evaluate(java.lang.Object testInstance, java.util.concurrent.Callable<T> next) throws java.lang.Exception
java.lang.Exception
public void evaluate(java.lang.Object testInstance, java.lang.Runnable next) throws java.lang.Exception
java.lang.Exception
public void after() throws java.lang.Exception
java.lang.Exception
public void stopApplication() throws javax.naming.NamingException
javax.naming.NamingException
public void startContainer(java.lang.Object instance) throws java.lang.Exception
java.lang.Exception
public static void run(java.lang.Class<?> type, java.lang.String... args)
public void handleLifecycle(java.lang.Class<?> type, java.lang.Object appInstance) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception