org.glassfish.virtualization.spi
Class KeyValueType

java.lang.Object
  extended by org.glassfish.virtualization.spi.TemplateCondition
      extended by org.glassfish.virtualization.spi.KeyValueType

public class KeyValueType
extends TemplateCondition

Simple key-value template condition

Author:
Jerome Dochez

Constructor Summary
KeyValueType()
           
KeyValueType(String key, String value)
           
 
Method Summary
 void load(TemplateIndex persistence)
          loads its state from a persisted state.
 TemplateIndex persist(Template parent)
          Persists its state to a template persistence state.
 boolean satisfies(TemplateCondition otherCondition)
          Returns true if this condition satisfies another condition
 
Methods inherited from class org.glassfish.virtualization.spi.TemplateCondition
from
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyValueType

public KeyValueType()

KeyValueType

public KeyValueType(String key,
                    String value)
Method Detail

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.