|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Container
A Container is what a JOnAS Server can see of a JOnAS EJB Container. It holds all beans coming from the same ejbjar file. There is no possibility to add or remove dynamically beans in a Container since it is build with all its beans. JMX can use this interface, but no specific JMX classes should be inside the Container. Its management is done outside jonas_ejb.
Method Summary | |
---|---|
BeanFactory |
getBeanFactory(String beanName)
Get the bean factory for the given bean. |
ClassLoader |
getClassLoader()
|
JComponentContextFactory |
getComponentContextFactory()
|
JNamingManager |
getContainerNaming()
|
String |
getContextId()
Gets the context ID of this container (for jacc). |
String |
getEarFileName()
get the name of the ear application containing this container. |
String |
getExternalFileName()
|
String |
getFileName()
|
String |
getJavaEEApplicationName()
Gets the Java EE Application Name of this container. |
JmsManager |
getJmsManager()
|
String |
getName()
|
PermissionManager |
getPermissionManager()
Gets the permission manager. |
PrincipalFactory |
getPrincipalFactory()
|
TransactionManager |
getTransactionManager()
|
String[] |
listBeanNames()
|
void |
remove()
Remove the JOnAS container and unregister all beans. |
void |
setComponentContextFactory(JComponentContextFactory factory)
Set the JComponentContextFactory instance. |
void |
setContainerNaming(JNamingManager naming)
Set the JNamingManager object. |
void |
setEarFileName(String fileName)
set the name of the ear application containing this container. |
void |
setJavaEEApplicationName(String javaEEApplicationName)
Sets the Java EE Application Name of this container. |
void |
setJmsManager(JmsManager jms)
set the JmsManager object. |
void |
setPermissionManager(PermissionManager permissionManager)
Set the permission manager object. |
void |
setPrincipalFactory(PrincipalFactory pf)
Set the PrincipalFactory. |
void |
setSecurity(boolean b)
Set the security flag to enable or disable security. |
void |
setTransactionManager(TransactionManager tm)
set the Transaction Manager. |
void |
syncAll(boolean alwaysStore,
boolean passivate)
Synchronize all entity beans. |
Method Detail |
---|
String[] listBeanNames()
String getName()
String getFileName()
String getExternalFileName()
ClassLoader getClassLoader()
void setPrincipalFactory(PrincipalFactory pf)
pf
- the PrincipalFactoryPrincipalFactory getPrincipalFactory()
void setContainerNaming(JNamingManager naming)
JNamingManager
object.
naming
- the JNamingManager
objectJNamingManager getContainerNaming()
JNamingManager
object.void setComponentContextFactory(JComponentContextFactory factory)
JComponentContextFactory
instance.
factory
- the JComponentContextFactory
instanceJComponentContextFactory getComponentContextFactory()
JComponentContextFactory
object.void syncAll(boolean alwaysStore, boolean passivate)
alwaysStore
- if true store even if passivationTimeout not reachedpassivate
- true if bean instances will be released after
having been written on storage.void setTransactionManager(TransactionManager tm)
tm
- the Transaction Manager.TransactionManager getTransactionManager()
void setJmsManager(JmsManager jms)
jms
- the JmsManagerJmsManager getJmsManager()
void setEarFileName(String fileName)
fileName
- the name of the ear application containing this
container.String getEarFileName()
void remove()
void setSecurity(boolean b)
b
- true or false to enable/disable securityvoid setPermissionManager(PermissionManager permissionManager)
permissionManager
- permission manager objectPermissionManager getPermissionManager()
String getContextId()
BeanFactory getBeanFactory(String beanName)
beanName
- the name of the bean
String getJavaEEApplicationName()
void setJavaEEApplicationName(String javaEEApplicationName)
javaEEApplicationName
- the Java EE Application name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |