Interface EJBLiteClientIF
public interface EJBLiteClientIF
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ejb.embeddable.EJBContainerSubclass client can override this method to customize the container creation.voidvoidsetAdditionalModules(File[] additionalModules) voidsetContainer(jakarta.ejb.embeddable.EJBContainer container) voidsetContext(Context context) voidThis method is called by test client to set context ClassLoader to include additional classes and ejb modules.voidsetInjectionSupported(Boolean injectionSupported) voidsetModuleName(String mn) voidsetTestName(String testName)
-
Field Details
-
TEST_PASSED
- See Also:
-
TEST_FAILED
- See Also:
-
JAVA_GLOBAL_PREFIX
- See Also:
-
JAVA_COMP_ENV_PREFIX
- See Also:
-
ADDITIONAL_MODULES_KEY
- See Also:
-
EJBEMBED_JAR_NAME_BASE
- See Also:
-
-
Method Details
-
setInjectionSupported
-
getInjectionSupported
Boolean getInjectionSupported() -
runTestInVehicle
void runTestInVehicle() -
getTestName
String getTestName() -
setTestName
-
getStatus
String getStatus() -
getReason
String getReason() -
getModuleName
String getModuleName() -
setModuleName
-
getJndiMapping
-
getContainer
jakarta.ejb.embeddable.EJBContainer getContainer() -
setContainer
void setContainer(jakarta.ejb.embeddable.EJBContainer container) -
getContext
Context getContext() -
setAdditionalModules
-
setContext
-
getContainerInitProperties
Subclass client can override this method to customize the container creation. The default implementation returns null in EJBLiteClientBase. Since the method must be invoked prior to container creation, way ahead of actual test method, this customization is only possible at test client level, not at test method level. -
setContextClassLoader
void setContextClassLoader()This method is called by test client to set context ClassLoader to include additional classes and ejb modules. This method is called prior to creating EJBContainer. The default implementation does nothing and makes no change to the context ClassLoader in the current thread. Subclass client may choose to override this method to provide for additional ejb modules and classes.
-