Package org.geotools.process.factory
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
-
-
Field Summary
-
Fields inherited from class AnnotationDrivenProcessFactory
namespace
-
-
Constructor Summary
Constructors Constructor Description StaticMethodsProcessFactory(InternationalString title, String namespace, Class<T> targetClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
createProcessBean(Name name)
Creates the bean upon which the process execution method will be invoked.Set<Name>
getNames()
The names (non human readable) that can be used to refer to the processes generated by this factory.protected DescribeProcess
getProcessDescription(Name name)
Finds the DescribeProcess description for the specified nameMethod
method(String name)
-
-
-
Constructor Detail
-
StaticMethodsProcessFactory
public StaticMethodsProcessFactory(InternationalString title, String namespace, Class<T> targetClass)
-
-
Method Detail
-
getProcessDescription
protected DescribeProcess getProcessDescription(Name name)
Finds the DescribeProcess description for the specified name- Specified by:
getProcessDescription
in classAnnotationDrivenProcessFactory
-
method
public Method method(String name)
- Specified by:
method
in classAnnotationDrivenProcessFactory
-
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 classAnnotationDrivenProcessFactory
- Parameters:
name
- Name of the process bean- Returns:
- intance of process bean; or null if the method is a static method
-
-