Module uk.autores

Class GenerateInputStreamsFromFiles

java.lang.Object
uk.autores.handling.GenerateInputStreamsFromFiles
All Implemented Interfaces:
Handler

public final class GenerateInputStreamsFromFiles extends Object implements Handler

Handler that, for each resource, generates a static method with a name derived from the resource name using Namer.simplifyResourceName(String) and Namer.nameMember(String).

  • Constructor Details

    • GenerateInputStreamsFromFiles

      public GenerateInputStreamsFromFiles()
      Ctor
  • Method Details

    • config

      public Set<ConfigDef> config()

      All configuration is optional.

      Use "name" to set the generated class name. If absent the last segment of the package name will be used.

      Use "visibility" to make the generated class public.

      Specified by:
      config in interface Handler
      Returns:
      visibility, name
      See Also:
    • handle

      public void handle(Context context) throws Exception
      Description copied from interface: Handler
      Handles the context resources.
      Specified by:
      handle in interface Handler
      Parameters:
      context - processing context
      Throws:
      Exception - any exception
      See Also: