Class StaticMethodsProcessFactory<T>

Object
AnnotationDrivenProcessFactory
StaticMethodsProcessFactory<T>
All Implemented Interfaces:
ProcessFactory, Factory, OptionalFactory
Direct Known Subclasses:
CenterLineProcess, GeometryProcessFactory, PolygonLabelProcess, SkeletonizeProcess

public class StaticMethodsProcessFactory<T> extends AnnotationDrivenProcessFactory
Grabbed from Geotools and generalized a bit, should go back into GeoTools once improved enough. ProcessFactory for classes exposing simple processes as static methods
Since:
2.7
  • Constructor Details

  • Method Details

    • getProcessDescription

      protected DescribeProcess getProcessDescription(Name name)
      Finds the DescribeProcess description for the specified name
      Specified by:
      getProcessDescription in class AnnotationDrivenProcessFactory
    • method

      public Method method(String name)
      Specified by:
      method in class AnnotationDrivenProcessFactory
    • getNames

      public Set<Name> getNames()
      Description copied from interface: ProcessFactory
      The names (non human readable) that can be used to refer to the processes generated by this factory.

      This name is used to advertise the availability of a Process in a WPS; while the Title and Description will change depending on the users locale; this name will be consistent. It is up to the implementor to ensure this name is unique

      Returns:
      a set of names handled by this process factory
    • createProcessBean

      protected Object createProcessBean(Name name)
      Description copied from class: AnnotationDrivenProcessFactory
      Creates the bean upon which the process execution method will be invoked.

      Can be null in case the method is a static one

      Specified by:
      createProcessBean in class AnnotationDrivenProcessFactory
      Parameters:
      name - Name of the process bean
      Returns:
      intance of process bean; or null if the method is a static method