Class NamedFeatureStoreFactory

Object
NamedFeatureStoreFactory

public class NamedFeatureStoreFactory extends Object
Author:
Owen Feehan
  • Method Details

    • parametersOnly

      public static NamedFeatureStoreFactory parametersOnly()
      The custom-names of the features are derived only from their parameters, but not their name.
      Returns:
      a newly-created factory, that creates features as above.
    • bothNameAndParameters

      public static NamedFeatureStoreFactory bothNameAndParameters()
      The custom-names of the features are derived from both their name and their parameters.
      Returns:
      a newly-created factory, that creates features as above.
    • createNamedFeatureList

      public <T extends FeatureInput> NamedFeatureStore<T> createNamedFeatureList(List<NamedBean<FeatureListProvider<T>>> namedFeatures) throws ProvisionFailedException
      Create a NamedFeatureStore from a list of beans.
      Type Parameters:
      T - feature input-type.
      Parameters:
      namedFeatures - the beans that provide lists of features.
      Returns:
      a newly created store, with the name of features derived from the beans and the parameterization of this factory instance.
      Throws:
      ProvisionFailedException - if any feature-list cannot be created from the bean.