org.norther.tammi.core.scripter.lang
Class ScriptObjectRegistry

java.lang.Object
  extended by org.apache.bsf.util.ObjectRegistry
      extended by org.norther.tammi.core.scripter.lang.ScriptObjectRegistry
All Implemented Interfaces:
Serializable

public class ScriptObjectRegistry
extends org.apache.bsf.util.ObjectRegistry
implements Serializable

A script object registry.

Version:
$Id: ScriptObjectRegistry.java,v 1.11 2009/09/28 15:08:46 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Constructor Summary
ScriptObjectRegistry(MBeanReference<Scripter> scripter)
          Constructs a new object registry.
ScriptObjectRegistry(MBeanReference<Scripter> scripter, org.apache.bsf.util.ObjectRegistry registry)
          Constructs a new object registry with a parent registry.
 
Method Summary
 Object lookup(String name)
           
 void register(String name, Object object)
           
 boolean registerMBean(String name, Object object)
          Registers an MBean.
 void unregister(String name)
           
 boolean unregisterMBean(String name)
          Unregisters an MBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptObjectRegistry

public ScriptObjectRegistry(MBeanReference<Scripter> scripter)
Constructs a new object registry.

Parameters:
scripter - the scripter.

ScriptObjectRegistry

public ScriptObjectRegistry(MBeanReference<Scripter> scripter,
                            org.apache.bsf.util.ObjectRegistry registry)
Constructs a new object registry with a parent registry.

Parameters:
scripter - the scripter.
registry - the parent registry.
Method Detail

registerMBean

public boolean registerMBean(String name,
                             Object object)
Registers an MBean.

Parameters:
name - the object name of the MBean.
object - the MBean implementation.
Returns:
true, if registration succeeded.

unregisterMBean

public boolean unregisterMBean(String name)
Unregisters an MBean.

Parameters:
name - the object name of the MBean.
Returns:
true, if unregistration succeeded.

register

public void register(String name,
                     Object object)
Overrides:
register in class org.apache.bsf.util.ObjectRegistry

unregister

public void unregister(String name)
Overrides:
unregister in class org.apache.bsf.util.ObjectRegistry

lookup

public Object lookup(String name)
Overrides:
lookup in class org.apache.bsf.util.ObjectRegistry


Copyright © 2004 The Norther Organization. All rights reserved.