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
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
ConstructorsConstructorDescriptionStaticMethodsProcessFactory
(InternationalString title, String namespace, Class<T> targetClass) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
createProcessBean
(Name name) Creates the bean upon which the process execution method will be invoked.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 nameMethods inherited from class AnnotationDrivenProcessFactory
create, getDescription, getImplementationHints, getParameterInfo, getResultInfo, getTitle, getTitle, getVersion, isAvailable, lookupClipOnRenderingArea, lookupCustomizeReadParams, lookupInvertGridGeometry, lookupInvertQuery, supportsProgress
-
Constructor Details
-
StaticMethodsProcessFactory
public StaticMethodsProcessFactory(InternationalString title, String namespace, Class<T> targetClass)
-
-
Method Details
-
getProcessDescription
Finds the DescribeProcess description for the specified name- Specified by:
getProcessDescription
in classAnnotationDrivenProcessFactory
-
method
- Specified by:
method
in classAnnotationDrivenProcessFactory
-
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
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
-