|
||||||||||
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 String |
clusterUid(Container container)
|
|
static String |
clusterUid(String oid,
String partitionName)
|
|
static Container |
findContainer(String oid)
Find a potential container. |
|
static Container |
getClusterContainer(String clusterUid)
Returns the container specified by the given canocical object name. |
|
static Container |
getContainer(String guid)
Returns the container specified by the given GUID. |
|
static
|
getContainer(String oid,
Class<T> type)
Returns the container specified by the given canonical object name which is expected to be of the given type. |
|
static Collection<Container> |
getContainers()
Returns an unmodifiable collection of the registered containers. |
|
static VMID |
getVMID()
|
|
static String |
guid(Container container)
|
|
static String |
guid(Container container,
VMID vmid)
|
|
static boolean |
hasClusterContainer(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(String oid)
oid
- the canonical object name of the container
public static VMID getVMID()
public static boolean hasContainer(Container container)
container
- the container to check
public static boolean hasClusterContainer(String oid)
public static final String guid(Container container, VMID vmid)
public static final String guid(Container container)
public static final String clusterUid(Container container)
public static final String clusterUid(String oid, String partitionName)
public static void register(Container container)
container
- the container to register
IllegalStateException
- if the container is already registeredpublic static void unregister(Container container)
container
- the container to unregister
IllegalStateException
- if the container is not registeredpublic static Container getContainer(String guid)
guid
- the GUID
IllegalStateException
- if the container is not registeredpublic static Container getClusterContainer(String clusterUid)
oid
- the canonical object name of the container
IllegalStateException
- if the container is not registeredpublic static <T extends Container> T getContainer(String oid, Class<T> type)
oid
- the canonical object name of the containertype
- the container type
IllegalStateException
- if the container is not registeredpublic static Collection<Container> getContainers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |