org.jboss.ejb3.common.registrar.spi
Class Ejb3RegistrarLocator

java.lang.Object
  extended by org.jboss.ejb3.common.registrar.spi.Ejb3RegistrarLocator

public class Ejb3RegistrarLocator
extends Object

Ejb3RegistrarLocator Provides simple mechanism for locating and setting the Ejb3Registrar.

Version:
$Revision: $
Author:
ALR

Method Summary
static void bindRegistrar(Ejb3Registrar registrar)
          Binds the specified Ejb3Registrar implementation as the registrar of record for the life of this process, immutable once set
static boolean isRegistrarBound()
          Returns whether or not the Ejb3Registrar has been bound to this Process
static Ejb3Registrar locateRegistrar()
          Obtains the Ejb3Registrar associated with this process; in the case one has not yet been bound, a RuntimeException will be thrown
static void unbindRegistrar()
          Unbinds the current Ejb3Registrar implementation as the registrar of record
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

locateRegistrar

public static Ejb3Registrar locateRegistrar()
                                     throws NotBoundException
Obtains the Ejb3Registrar associated with this process; in the case one has not yet been bound, a RuntimeException will be thrown

Returns:
Throws:
NotBoundException

bindRegistrar

public static void bindRegistrar(Ejb3Registrar registrar)
                          throws DuplicateBindException
Binds the specified Ejb3Registrar implementation as the registrar of record for the life of this process, immutable once set

Parameters:
registrar -
Throws:
DuplicateBindException

unbindRegistrar

public static void unbindRegistrar()
                            throws NotBoundException
Unbinds the current Ejb3Registrar implementation as the registrar of record

Parameters:
registrar -
Throws:
NotBoundException

isRegistrarBound

public static boolean isRegistrarBound()
Returns whether or not the Ejb3Registrar has been bound to this Process

Returns:


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.