org.jomc.ri
Class DefaultScope

Package class diagram package DefaultScope
java.lang.Object
  extended by org.jomc.ri.DefaultScope
All Implemented Interfaces:
org.jomc.spi.Scope

@Generated(value="org.jomc.tools.JavaSources",
           comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools")
public class DefaultScope
extends Object
implements org.jomc.spi.Scope

Default Scope implementation.

Version:
$Id: DefaultScope.java 1102 2009-12-07 03:01:58Z schulte2005 $
Author:
Christian Schulte 1.0

Constructor Summary
DefaultScope()
          Creates a new DefaultScope instance.
DefaultScope(Map<String,Object> map)
          Creates a new DefaultScope instance taking a map backing the scope.
 
Method Summary
 Object getObject(String instance)
           
 Map<String,Object> getObjects()
           
 Object putObject(String instance, Object object)
           
 Object removeObject(String instance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultScope

public DefaultScope(Map<String,Object> map)
Creates a new DefaultScope instance taking a map backing the scope.

Parameters:
map - The map backing the scope or null.

DefaultScope

@Generated(value="org.jomc.tools.JavaSources",
           comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools")
public DefaultScope()
Creates a new DefaultScope instance.

Method Detail

getObjects

public Map<String,Object> getObjects()
Specified by:
getObjects in interface org.jomc.spi.Scope

getObject

public Object getObject(String instance)
Specified by:
getObject in interface org.jomc.spi.Scope

putObject

public Object putObject(String instance,
                        Object object)
Specified by:
putObject in interface org.jomc.spi.Scope

removeObject

public Object removeObject(String instance)
Specified by:
removeObject in interface org.jomc.spi.Scope


Copyright © 2005-2009 The JOMC Project. All Rights Reserved.