org.bidib.wizard.api.context.ApplicationContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-api Show documentation
Show all versions of bidibwizard-api Show documentation
jBiDiB BiDiB Wizard API POM
The newest version!
package org.bidib.wizard.api.context;
public interface ApplicationContext {
public static final String KEY_BIDIB_PI_CONTROLLER = "bidibPiController";
/**
* Register a value under the specified key.
*
* @param key
* the key
* @param content
* the value
* @return the previous assigned value or null if no value was stored under this key
*/
Object register(String key, Object content);
/**
* Unregister the value that is stored under the specified key.
*
* @param key
* the key
* @return the stored value or null if no value was stored under this key
*/
Object unregister(String key);
/**
* Returns the stored value.
*
* @param key
* the key
* @return the value stored under the specified key or null if no value is available
*/
Object get(String key);
/**
* Returns the stored value and specified type.
*
* @param key
* the key
* @param type
* the type of the vale
* @return the value stored under the specified key or null if no value is available or the value is not of
* the specified type
*/
T get(String key, Class type);
}