Class ScopedFieldStore

java.lang.Object
org.concordion.internal.scopedObjects.ScopedFieldStore

public class ScopedFieldStore extends Object
  • Constructor Details

    • ScopedFieldStore

      public ScopedFieldStore(Fixture fixture)
      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 class
      fieldName - name of field in fixture class
      fieldScope - 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 class
      fieldName - name of field in fixture class
      fieldScope - scope to be applied to the field
      Returns:
      scoped object
    • saveValueFromFields

      public void saveValueFromFields(Object fixtureObject, Scope scope)
    • loadValuesIntoFields

      public void loadValuesIntoFields(Object fixtureObject, Scope scope)
    • destroyFields

      public void destroyFields(Object fixtureObject, Scope scope)