|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.ejb3.Ejb3Registry
public class Ejb3Registry
Maintains an administration of all EJB3 container available.
| Constructor Summary | |
|---|---|
Ejb3Registry()
|
|
| Method Summary | ||
|---|---|---|
static java.lang.String |
clusterUid(Container container)
|
|
static java.lang.String |
clusterUid(java.lang.String oid,
java.lang.String partitionName)
|
|
static Container |
findContainer(java.lang.String oid)
Find a potential container. |
|
static Container |
getClusterContainer(java.lang.String clusterUid)
Returns the container specified by the given canocical object name. |
|
static Container |
getContainer(java.lang.String guid)
Returns the container specified by the given GUID. |
|
static
|
getContainer(java.lang.String oid,
java.lang.Class<T> type)
Returns the container specified by the given canonical object name which is expected to be of the given type. |
|
static java.util.Collection<Container> |
getContainers()
Returns an unmodifiable collection of the registered containers. |
|
static java.rmi.dgc.VMID |
getVMID()
|
|
static java.lang.String |
guid(Container container)
|
|
static java.lang.String |
guid(Container container,
java.rmi.dgc.VMID vmid)
|
|
static boolean |
hasClusterContainer(java.lang.String oid)
|
|
static boolean |
hasContainer(Container container)
Reports the existance of a container. |
|
static void |
register(Container container)
Registers a container. |
|
static void |
unregister(Container container)
Unregisters a container. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Ejb3Registry()
| Method Detail |
|---|
public static Container findContainer(java.lang.String oid)
oid - the canonical object name of the container
public static java.rmi.dgc.VMID getVMID()
public static boolean hasContainer(Container container)
container - the container to check
public static boolean hasClusterContainer(java.lang.String oid)
public static final java.lang.String guid(Container container,
java.rmi.dgc.VMID vmid)
public static final java.lang.String guid(Container container)
public static final java.lang.String clusterUid(Container container)
public static final java.lang.String clusterUid(java.lang.String oid,
java.lang.String partitionName)
public static void register(Container container)
container - the container to register
java.lang.IllegalStateException - if the container is already registeredpublic static void unregister(Container container)
container - the container to unregister
java.lang.IllegalStateException - if the container is not registeredpublic static Container getContainer(java.lang.String guid)
guid - the GUID
java.lang.IllegalStateException - if the container is not registeredpublic static Container getClusterContainer(java.lang.String clusterUid)
oid - the canonical object name of the container
java.lang.IllegalStateException - if the container is not registered
public static <T extends Container> T getContainer(java.lang.String oid,
java.lang.Class<T> type)
oid - the canonical object name of the containertype - the container type
java.lang.IllegalStateException - if the container is not registeredpublic static java.util.Collection<Container> getContainers()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||