Interface ProfileInjector

All Known Implementing Classes:
DefaultProfileInjector

@Deprecated(since="4.0.0") public interface ProfileInjector
Deprecated.
use ModelBuilder instead
Handles profile injection into the model.
  • Method Details

    • injectProfile

      void injectProfile(Model model, Profile profile, ModelBuildingRequest request, ModelProblemCollector problems)
      Deprecated.
      Merges values from the specified profile into the given model. Implementations are expected to keep the profile and model completely decoupled by injecting deep copies rather than the original objects from the profile.
      Parameters:
      model - The model into which to merge the values defined by the profile, must not be null.
      profile - The (read-only) profile whose values should be injected, may be null.
      request - The model building request that holds further settings, must not be null.
      problems - The container used to collect problems that were encountered, must not be null.
    • injectProfile

      default Model injectProfile(Model model, Profile profile, ModelBuildingRequest request, ModelProblemCollector problems)
      Deprecated.
      Merges values from the specified profile into the given model. Implementations are expected to keep the profile and model completely decoupled by injecting deep copies rather than the original objects from the profile.
      Parameters:
      model - The model into which to merge the values defined by the profile, must not be null.
      profile - The (read-only) profile whose values should be injected, may be null.
      request - The model building request that holds further settings, must not be null.
      problems - The container used to collect problems that were encountered, must not be null.
    • injectProfiles

      default Model injectProfiles(Model model, List<Profile> profiles, ModelBuildingRequest request, ModelProblemCollector problems)
      Deprecated.
      Merges values from the specified profile into the given model. Implementations are expected to keep the profile and model completely decoupled by injecting deep copies rather than the original objects from the profile.
      Parameters:
      model - The model into which to merge the values defined by the profile, must not be null.
      profiles - The (read-only) list of profiles whose values should be injected, must not be null.
      request - The model building request that holds further settings, must not be null.
      problems - The container used to collect problems that were encountered, must not be null.