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 ObjectcreateProcessBean(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 DescribeProcessgetProcessDescription(Name name)Finds the DescribeProcess description for the specified nameMethodmethod(String name)-
Methods inherited from class AnnotationDrivenProcessFactory
create, getDescription, getImplementationHints, getParameterInfo, getResultInfo, getTitle, getTitle, getVersion, isAvailable, lookupClipOnRenderingArea, lookupCustomizeReadParams, lookupInvertGridGeometry, lookupInvertQuery, supportsProgress
-
-
-
-
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:
getProcessDescriptionin classAnnotationDrivenProcessFactory
-
method
public Method method(String name)
- Specified by:
methodin classAnnotationDrivenProcessFactory
-
getNames
public Set<Name> getNames()
Description copied from interface:ProcessFactoryThe 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:AnnotationDrivenProcessFactoryCreates the bean upon which the process execution method will be invoked.Can be null in case the method is a static one
- Specified by:
createProcessBeanin classAnnotationDrivenProcessFactory- Parameters:
name- Name of the process bean- Returns:
- intance of process bean; or null if the method is a static method
-
-