public abstract class EJBContainer
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APP_NAME |
private static java.util.List<EJBContainerProvider> |
factories |
static java.lang.String |
MODULES |
private static java.util.regex.Pattern |
nonCommentPattern |
static java.lang.String |
PROVIDER |
Constructor and Description |
---|
EJBContainer() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Shutdown an embeddable EJBContainer instance.
|
static EJBContainer |
createEJBContainer()
Create and initialize an embeddable EJB container.
|
static EJBContainer |
createEJBContainer(java.util.Map<?,?> properties)
Create and initialize an embeddable EJB container with an
set of configuration properties and names of modules to be initialized.
|
private static java.util.List<java.lang.String> |
factoryNamesFromReader(java.io.BufferedReader reader) |
private static void |
findAllFactories() |
abstract javax.naming.Context |
getContext()
Retrieve a naming context for looking up references to session beans executing in
the embeddable container.
|
public static final java.lang.String APP_NAME
public static final java.lang.String MODULES
public static final java.lang.String PROVIDER
private static final java.util.regex.Pattern nonCommentPattern
private static java.util.List<EJBContainerProvider> factories
public abstract void close()
close
in interface java.lang.AutoCloseable
public static EJBContainer createEJBContainer() throws EJBException
EJBException
- Thrown if the container or application could not
be successfully initialized.public static EJBContainer createEJBContainer(java.util.Map<?,?> properties) throws EJBException
properties
- One or more spec-defined or vendor-specific properties.
The spec reserves the prefix "javax.ejb." for spec-defined properties.EJBException
- Thrown if the container or application could not
be successfully initialized.private static java.util.List<java.lang.String> factoryNamesFromReader(java.io.BufferedReader reader) throws java.io.IOException
java.io.IOException
private static void findAllFactories()
public abstract javax.naming.Context getContext()