@Generated(value="org.jomc.tools.SourceFileProcessor 1.9", comments="See http://www.jomc.org/jomc/1.9/jomc-tools-1.9") public interface Scope
getObject(Scope[].class)
,
getObject(Scope.class, "implementation name")
,
org.jomc.ObjectManagerFactory
Modifier and Type | Method and Description |
---|---|
Object |
getObject(String identifier)
Gets an object from the scope.
|
Map<String,Object> |
getObjects()
Gets the objects of the scope.
|
Object |
putObject(String identifier,
Object object)
Puts an object into the scope.
|
Object |
removeObject(String identifier)
Removes an object from the scope.
|
Map<String,Object> getObjects()
null
.Object getObject(String identifier) throws NullPointerException
identifier
- The identifier of the object to get from the scope.identifier
or null
, if no such object exists in the scope.NullPointerException
- if identifier
is null
.Object putObject(String identifier, Object object) throws NullPointerException
identifier
- The identifier of the object to put into the scope.object
- The object to put into the scope.null
, if there was no object in the scope.NullPointerException
- if identifier
or object
is null
.Object removeObject(String identifier) throws NullPointerException
identifier
- The identifier of the object to remove from the scope.null
, if there was no object in the scope.NullPointerException
- if identifier
is null
.Copyright © 2005–2015 The JOMC Project. All rights reserved.