@ApplicationScoped public class CurrentContextService extends Object
| Constructor and Description |
|---|
CurrentContextService()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String key)
Gets an attribute.
|
Object |
getAttribute(String key,
Object defaultValue)
Gets an attribute (defaultValue is returned if not found).
|
void |
removeAttribute(String key)
Removes an attribute.
|
void |
setAttribute(String key,
Object value)
Sets an attribute.
|
public Object getAttribute(String key, Object defaultValue)
key - defaultValue - public void setAttribute(String key, Object value)
key - value - public void removeAttribute(String key)
key - Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.