org.glassfish.virtualization.spi
Class KeyValueType
java.lang.Object
org.glassfish.virtualization.spi.TemplateCondition
org.glassfish.virtualization.spi.KeyValueType
public class KeyValueType
- extends TemplateCondition
Simple key-value template condition
- Author:
- Jerome Dochez
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyValueType
public KeyValueType()
KeyValueType
public KeyValueType(String key,
String value)
load
public void load(TemplateIndex persistence)
- Description copied from class:
TemplateCondition
- loads its state from a persisted state.
- Specified by:
load in class TemplateCondition
- Parameters:
persistence - the persisted state.
persist
public TemplateIndex persist(Template parent)
throws org.jvnet.hk2.config.TransactionFailure
- Description copied from class:
TemplateCondition
- Persists its state to a template persistence state.
- Specified by:
persist in class TemplateCondition
- Parameters:
parent - the parent template configuration
- Returns:
- the persisted state to be added to the parent's
Template.getIndexes()
- Throws:
org.jvnet.hk2.config.TransactionFailure - if the condition cannot be persisted successfully.
satisfies
public boolean satisfies(TemplateCondition otherCondition)
- Description copied from class:
TemplateCondition
- Returns true if this condition satisfies another condition
- Specified by:
satisfies in class TemplateCondition
- Parameters:
otherCondition - the other condition to test against.
- Returns:
- true of this condition satisfies the other condition.
Copyright © 2012. All Rights Reserved.