| java.lang.Object org.xins.common.manageable.Manageable com.mycompany.allinone.api.SharedInstance
SharedInstance | public class SharedInstance extends Manageable (Code) | | Common object used by the API to shared properties.
version: $Revision: 1.8 $ $Date: 2007/09/18 11:27:13 $ author: Anthony Goubard |
Constructor Summary | |
public | SharedInstance(APIImpl api) Constructs a new SharedInstance instance. |
SharedInstance | public SharedInstance(APIImpl api)(Code) | | Constructs a new SharedInstance instance.
Parameters: api - the API to which this function belongs, guaranteed to be notnull . |
get | final public String get(String key)(Code) | | Gets a property from the API.
returns the value of the property or null if the value wasnot stored. |
put | final public void put(String key, String value)(Code) | | Stores a property for the API.
Parameters: key - the key of the property, cannot be null . Parameters: value - the value of the property, cannot be null . throws: IllegalArgumentException - if (key == null || value == null ). |
Methods inherited from org.xins.common.manageable.Manageable | final protected void assertUsable() throws IllegalStateException(Code)(Java Doc) final public void bootstrap(PropertyReader properties) throws IllegalStateException, MissingRequiredPropertyException, InvalidPropertyValueException, BootstrapException(Code)(Java Doc) protected void bootstrapImpl(PropertyReader properties) throws MissingRequiredPropertyException, InvalidPropertyValueException, BootstrapException(Code)(Java Doc) final public void deinit() throws IllegalStateException, DeinitializationException(Code)(Java Doc) protected void deinitImpl() throws Throwable(Code)(Java Doc) final public State getState()(Code)(Java Doc) final public void init(PropertyReader properties) throws IllegalStateException, MissingRequiredPropertyException, InvalidPropertyValueException, InitializationException(Code)(Java Doc) protected void initImpl(PropertyReader properties) throws MissingRequiredPropertyException, InvalidPropertyValueException, InitializationException(Code)(Java Doc) final public boolean isBootstrapped()(Code)(Java Doc) final public boolean isUsable()(Code)(Java Doc)
|
|
|