/** * Retrieves the value of a named attribute from the attribute cache. * * @param key Attribute name * @return Attribute value. * @throws IllegalStateException if AppFramework is not initialized */ public static Object getAttribute(final String key) { assertInitialized(); return getAppFramework().getAttribute(key); }
/** * Stores an arbitrary named attribute in the attribute cache. * * @param key Attribute name. * @param value Attribute value. If null, value is removed from cache. * @throws IllegalStateException if AppFramework is not initialized */ public static void setAttribute(final String key, final Object value) { assertInitialized(); getAppFramework().setAttribute(key, value); }
/** * Stores an arbitrary named attribute in the attribute cache. * * @param key Attribute name. * @param value Attribute value. If null, value is removed from cache. * @throws IllegalStateException if AppFramework is not initialized */ public static void setAttribute(String key, Object value) { assertInitialized(); getAppFramework().setAttribute(key, value); }
/** * Retrieves the value of a named attribute from the attribute cache. * * @param key Attribute name * @return Attribute value. * @throws IllegalStateException if AppFramework is not initialized */ public static Object getAttribute(String key) { assertInitialized(); return getAppFramework().getAttribute(key); }