|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.ejb.manager.EjbContainer
public class EjbContainer
Environment-based container.
| Method Summary | |
|---|---|
void |
addRoot(Path root)
Adds a root URL |
void |
addServer(AbstractServer server)
Adds a server. |
void |
classMatchEvent(EnvironmentClassLoader loader,
Path root,
java.lang.String className)
Callback to note the class matches |
static EjbContainer |
create()
Returns the local container. |
static EjbContainer |
create(java.lang.ClassLoader loader)
Returns the local container. |
AmberPersistenceUnit |
createEjbPersistenceUnit()
Returns the amber persistence unit for ejb. |
void |
destroy()
Closes the container. |
void |
environmentStart(EnvironmentClassLoader loader)
Handles the case where the environment is starting (after init). |
void |
environmentStop(EnvironmentClassLoader loader)
Handles the case where the environment is stopping |
EnvironmentClassLoader |
getClassLoader()
Returns the parent loader |
java.lang.String |
getClientRemoteConfig()
Returns the information for a client remote configuration, e.g. |
EjbConfigManager |
getConfigManager()
Returns the configuration manager. |
static EjbContainer |
getCurrent()
Returns the local container. |
static EjbContainer |
getCurrent(java.lang.ClassLoader loader)
Returns the current environment container. |
EntityCache |
getEntityCache()
Returns the entity cache. |
java.lang.ClassLoader |
getIntrospectionClassLoader()
Returns the introspection class loader |
ConnectionFactory |
getJmsConnectionFactory()
Sets the JMS connection factory for the container. |
int |
getMessageConsumerMax()
The consumer maximum for the container. |
EjbProtocolManager |
getProtocolManager()
Returns the protocol manager. |
AbstractServer |
getServer(Path path,
java.lang.String ejbName)
Returns the server specified by the path and ejbName, or null if not found. |
AbstractServer |
getServer(java.lang.String ejbName)
Returns the server specified by the ejbName, or null if not found. |
EjbTransactionManager |
getTransactionManager()
Returns the transaction manager. |
Path |
getWorkDir()
The work directory for EJB-generated files |
void |
init()
|
boolean |
isAutoCompile()
true if beans should be auto-compiled |
boolean |
isRootScannable(Path root)
Returns true if the root is a valid scannable root. |
boolean |
isScanMatch(CharBuffer annotationName)
Returns true if the string matches an annotation class. |
void |
setAutoCompile(boolean isAutoCompile)
true if beans should be auto-compiled |
void |
setJmsConnectionFactory(ConnectionFactory factory)
The JMS connection factory for the container. |
void |
setMessageConsumerMax(int consumerMax)
Sets the consumer maximum for the container. |
void |
setWorkDir(Path workDir)
The work directory for EJB-generated files |
void |
start()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static EjbContainer create()
public static EjbContainer create(java.lang.ClassLoader loader)
public static EjbContainer getCurrent()
public static EjbContainer getCurrent(java.lang.ClassLoader loader)
public EnvironmentClassLoader getClassLoader()
public java.lang.ClassLoader getIntrospectionClassLoader()
public EjbConfigManager getConfigManager()
public EjbProtocolManager getProtocolManager()
public EjbTransactionManager getTransactionManager()
public EntityCache getEntityCache()
public AmberPersistenceUnit createEjbPersistenceUnit()
public void setAutoCompile(boolean isAutoCompile)
public boolean isAutoCompile()
public void setWorkDir(Path workDir)
public Path getWorkDir()
public void setJmsConnectionFactory(ConnectionFactory factory)
public ConnectionFactory getJmsConnectionFactory()
public void setMessageConsumerMax(int consumerMax)
public int getMessageConsumerMax()
public void addServer(AbstractServer server)
public AbstractServer getServer(java.lang.String ejbName)
public AbstractServer getServer(Path path,
java.lang.String ejbName)
public java.lang.String getClientRemoteConfig()
public void addRoot(Path root)
public boolean isRootScannable(Path root)
isRootScannable in interface ScanListenerpublic boolean isScanMatch(CharBuffer annotationName)
ScanListener
isScanMatch in interface ScanListener
public void classMatchEvent(EnvironmentClassLoader loader,
Path root,
java.lang.String className)
classMatchEvent in interface ScanListenerpublic void init()
public void start()
throws ConfigException
ConfigExceptionpublic void destroy()
public void environmentStart(EnvironmentClassLoader loader)
environmentStart in interface EnvironmentListenerpublic void environmentStop(EnvironmentClassLoader loader)
environmentStop in interface EnvironmentListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||