Class ScopedFieldStore
java.lang.Object
org.concordion.internal.scopedObjects.ScopedFieldStore
-
Constructor Summary
ConstructorDescriptionScopedFieldStore
(Fixture fixture) This method is called during object construction to configure all the scoped fields. -
Method Summary
Modifier and TypeMethodDescriptionprotected ScopedObject
createScopedObject
(Class<?> fixtureClass, String fieldName, Scope fieldScope) Creates the scoped object for use in setting and getting the data from the fields.protected ScopedObject
createScopedObject
(FixtureType fixtureType, String fieldName, Scope fieldScope) Creates the scoped object for use in setting and getting the data from the fields.void
destroyFields
(Object fixtureObject, Scope scope) void
loadValuesIntoFields
(Object fixtureObject, Scope scope) void
saveValueFromFields
(Object fixtureObject, Scope scope)
-
Constructor Details
-
ScopedFieldStore
This method is called during object construction to configure all the scoped fields. The default behaviour is to scan the fixture class for any scoping annotations. Protection is "protected" so subclasses can overwrite as necessary.- Parameters:
fixture
- the fixture that the fields are being stored for
-
-
Method Details
-
createScopedObject
protected ScopedObject createScopedObject(Class<?> fixtureClass, String fieldName, Scope fieldScope) Creates the scoped object for use in setting and getting the data from the fields. Protected so that a subclass can override if necessary.- Parameters:
fixtureClass
- fixture classfieldName
- name of field in fixture classfieldScope
- scope to be applied to the field- Returns:
- scoped object
-
createScopedObject
protected ScopedObject createScopedObject(FixtureType fixtureType, String fieldName, Scope fieldScope) Creates the scoped object for use in setting and getting the data from the fields. Protected so that a subclass can override if necessary.- Parameters:
fixtureType
- fixture classfieldName
- name of field in fixture classfieldScope
- scope to be applied to the field- Returns:
- scoped object
-
saveValueFromFields
-
loadValuesIntoFields
-
destroyFields
-