Class PropertyDrivenIdPModule

All Implemented Interfaces:
IdPModule, Module, Component, IdentifiedComponent
Direct Known Subclasses:
CoreIdPModule, PluginIdPModule

public class PropertyDrivenIdPModule extends PropertyDrivenModule implements IdPModule
Implementation of IdPModule relying on Java Properties. TODO: Make abstract in V6 and make all constructors protected.
Since:
4.1.0
  • Constructor Details

    • PropertyDrivenIdPModule

      public PropertyDrivenIdPModule(@Nonnull Class<? extends IdPModule> claz) throws IOException, ModuleException
      Constructor.
      Parameters:
      claz - type of object used to locate default module.properties resource
      Throws:
      IOException - if unable to read file
      ModuleException - if the module is not in a valid state
    • PropertyDrivenIdPModule

      public PropertyDrivenIdPModule(@Nonnull InputStream inputStream) throws IOException, ModuleException
      Constructor.
      Parameters:
      inputStream - property stream
      Throws:
      IOException - if unable to read file
      ModuleException - if the module is not in a valid state
    • PropertyDrivenIdPModule

      public PropertyDrivenIdPModule(@Nonnull Properties properties) throws ModuleException
      Constructor.
      Parameters:
      properties - property set
      Throws:
      ModuleException - if the module is not in a valid state
    • PropertyDrivenIdPModule

      protected PropertyDrivenIdPModule(@Nullable String version, @Nonnull Class<? extends IdPModule> claz) throws IOException, ModuleException
      Constructor for version-overriding subclasses.
      Parameters:
      version - overridden version
      claz - type of object used to locate default module.properties resource
      Throws:
      IOException - if unable to read file
      ModuleException - if the module is not in a valid state
      Since:
      5.1.0
    • PropertyDrivenIdPModule

      protected PropertyDrivenIdPModule(@Nullable String version, @Nonnull InputStream inputStream) throws IOException, ModuleException
      Constructor for version-overriding subclasses.
      Parameters:
      version - overridden version
      inputStream - property stream
      Throws:
      IOException - if unable to read file
      ModuleException - if the module is not in a valid state
      Since:
      5.1.0
    • PropertyDrivenIdPModule

      protected PropertyDrivenIdPModule(@Nullable String version, @Nonnull Properties properties) throws ModuleException
      Constructor for version-overriding subclasses.
      Parameters:
      version - overridden version
      properties - property set
      Throws:
      ModuleException - if the module is not in a valid state
      Since:
      5.1.0
  • Method Details