|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.configuration.State
public final class State
State object that can temporarily be added to a context container during component creation.
ComponentFactory
Constructor Summary | |
---|---|
protected |
State(Class<?> key,
Object value)
Creates a state with the specified key class and value. |
Method Summary | |
---|---|
void |
addTo(org.picocontainer.MutablePicoContainer container)
Adds this state from the container specified. |
boolean |
containedIn(org.picocontainer.MutablePicoContainer container)
Check if a state with an equivalent key is already present at the specified container. |
void |
removeFrom(org.picocontainer.MutablePicoContainer container)
Removes this state from the container specified. |
static State |
state(Class<?> key,
Object value)
Creates a state with the specified key class and value. |
static State |
state(Object value)
Creates a state object that uses the class of the value specified as key. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected State(Class<?> key, Object value)
The value must be assignable to the key class.
key
- the key class of the state object, must not be null
.value
- the value of the state object, must not be null
.Method Detail |
---|
public static final State state(Class<?> key, Object value)
The value must be assignable to the key class.
Convenience method for static imports.
key
- the key class of the state object, must not be null
.value
- the value of the state object, must not be null
.public static final State state(Object value)
Convenience method for static imports.
value
- the value for which to create a state object.public boolean containedIn(org.picocontainer.MutablePicoContainer container)
container
- the container to search for a similar state.
true
if a similar state is already contained.public void addTo(org.picocontainer.MutablePicoContainer container)
container
- the container to add this state to.public void removeFrom(org.picocontainer.MutablePicoContainer container)
container
- the container to remove this state from.public String toString()
toString
in class Object
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG