|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

@Generated(value="org.jomc.tools.JavaSources",
comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-3/jomc-tools")
public interface ScopeScope a specification applies to.
This specification declares a multiplicity of Many.
An application assembler may provide multiple implementations of this specification (including none).
Use of class ObjectManager is supported for getting these implementations or for
selecting a single implementation.
Scope[] objects = (Scope[]) ObjectManagerFactory.getObjectManager().getObject( Scope.class ); Scope object = ObjectManagerFactory.getObjectManager().getObject( Scope.class, "implementation name" );
This specification does not apply to any scope. A new object is returned whenever requested.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||