public final class ReflectionConditionFactory extends Object implements ConditionFactory
Constructor and Description |
---|
ReflectionConditionFactory() |
Modifier and Type | Method and Description |
---|---|
Condition<ExperimentState> |
create(String name)
Creates a new
Condition instance that is associated with the given name. |
ReflectionConditionFactory |
register(String name,
Class<? extends Condition<ExperimentState>> clazz) |
Set<String> |
supportedNames()
Returns the set of names that have been associated with subclasses of the
Condition
interface in this instance. |
public ReflectionConditionFactory register(String name, Class<? extends Condition<ExperimentState>> clazz)
public Set<String> supportedNames()
ConditionFactory
Condition
interface in this instance.supportedNames
in interface ConditionFactory
ConditionFactory.create(java.lang.String)
methodpublic Condition<ExperimentState> create(String name)
ConditionFactory
Condition
instance that is associated with the given name.create
in interface ConditionFactory
name
- a short name used to describe the Condition
instance to createCondition
instance, or null if the name is unknownCopyright © 2013. All rights reserved.