FileDocCategorySizeDatePackage
Registrar.javaAPI DocApache Axis 1.46272Sat Apr 22 18:57:28 BST 2006org.apache.axis.management

Registrar

public class Registrar extends Object
class to act as a dynamic loading registrar to commons-modeler, so as to autoregister stuff
link
http://www.webweavertech.com/costin/archives/000168.html#000168

Fields Summary
protected static Log
log
our log
private static ModelerBinding
modelerBinding
the inner class that does the binding
Constructors Summary
Methods Summary
private static voidcreateModelerBinding()
create the modeler binding if it is needed At the end of this call, modelerBinding != null

        if (modelerBinding == null) {
            modelerBinding = new ModelerBinding();
        }
    
public static booleanisBound()
Check for being bound to a modeler -this will force a binding if none existed.

return

        createModelerBinding();
        return modelerBinding.canBind();
    
public static booleanregister(java.lang.Object objectToRegister, java.lang.String name, java.lang.String context)
register using reflection. The perf hit is moot as jmx is all reflection anyway

param
objectToRegister
param
name
param
context


                             
        
                                       
        if (isBound()) {
            if (log.isDebugEnabled()) {
                log.debug("Registering " + objectToRegister + " as "
                        + name);
            }
            return modelerBinding.register(objectToRegister, name, context);
        } else {
            return false;
        }