Package ca.derekcormier.recipe
Class Cake
- java.lang.Object
-
- ca.derekcormier.recipe.Cake
-
public class Cake extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tget(Class<T> clazz, String... key)<T> Tget(String... key)<T> TgetContext()<T> TgetContext(Class<T> clazz)protected Map<String,Object>getEntries()StringgetNamespace()<T> TgetOrGetContext(Class<T> clazz, String... key)<T> TgetOrGetContext(String... key)StringgetPublishedKeyForValue(Object value, boolean fullyQualified)booleanhasContext()voidinNamespace(String key, Runnable runnable)static Stringkey(String... subKeys)voidpublish(String key, Object value)
-
-
-
Field Detail
-
SEPARATOR
public static final String SEPARATOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Cake
public Cake()
-
Cake
public Cake(Cake other)
-
-
Method Detail
-
get
public <T> T get(String... key)
-
getPublishedKeyForValue
public String getPublishedKeyForValue(Object value, boolean fullyQualified)
-
getNamespace
public String getNamespace()
-
hasContext
public boolean hasContext()
-
getContext
public <T> T getContext()
-
getContext
public <T> T getContext(Class<T> clazz)
-
getOrGetContext
public <T> T getOrGetContext(String... key)
-
-