All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bidib.wizard.api.context.ApplicationContext Maven / Gradle / Ivy

There is a newer version: 2.0.29
Show 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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy