org.jomc.spi
Interface Scope

Package class diagram package Scope

@Generated(value="org.jomc.tools.SourceFileProcessor 1.2",
           comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2")
public interface Scope

Scope a specification applies to.

Identifier:
org.jomc.spi.Scope
Multiplicity:
Many
Scope:
None

Version:
1.0
Author:
Christian Schulte 1.0
See Also:
getObject(Scope[].class), getObject(Scope.class, "implementation name"), org.jomc.ObjectManagerFactory

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

getObjects

Map<String,Object> getObjects()
Gets the objects of the scope.

Returns:
The objects of the scope or null.

getObject

Object getObject(String identifier)
                 throws NullPointerException
Gets an object from the scope.

Parameters:
identifier - The identifier of the object to get from the scope.
Returns:
The object identified by identifier or null, if no such object exists in the scope.
Throws:
NullPointerException - if identifier is null.

putObject

Object putObject(String identifier,
                 Object object)
                 throws NullPointerException
Puts an object into the scope.

Parameters:
identifier - The identifier of the object to put into the scope.
object - The object to put into the scope.
Returns:
The previous object from the scope or null, if there was no object in the scope.
Throws:
NullPointerException - if identifier or object is null.

removeObject

Object removeObject(String identifier)
                    throws NullPointerException
Removes an object from the scope.

Parameters:
identifier - The identifier of the object to remove from the scope.
Returns:
The removed object or null, if there was no object in the scope.
Throws:
NullPointerException - if identifier is null.


Copyright © 2005-2012 The JOMC Project. All Rights Reserved.Get JOMC at SourceForge.net. Fast, secure and Free Open Source software downloads
Please note that this documentation is maintained by non-native english speaking authors. As such, you may encounter phrases or wordings which seem imprecise or may even have a totally different meaning to native english speaking readers than what the individual author was trying to express. If you are a native english speaking reader and find any such phrases or wordings we kindly ask you to send an email to the corresponding author and help us improve this documentation in order to avoid misunderstandings. You will find the authors' email addresses at the top of each class. Please accept our apologies for any inconvenience caused.