org.geotools.process.factory
Class StaticMethodsProcessFactory<T>

Object
  extended by AnnotationDrivenProcessFactory
      extended by StaticMethodsProcessFactory<T>
All Implemented Interfaces:
Factory, OptionalFactory, ProcessFactory

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
StaticMethodsProcessFactory(InternationalString title, String namespace, Class<T> targetClass)
           
 
Method Summary
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 name
 Method method(String name)
           
 
Methods inherited from class AnnotationDrivenProcessFactory
create, getDescription, getImplementationHints, getParameterInfo, getResultInfo, getTitle, getTitle, getVersion, isAvailable, lookupInvertGridGeometry, lookupInvertQuery, supportsProgress
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 class AnnotationDrivenProcessFactory
Parameters:
name -
Returns:

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


Copyright © 1996-2014 Geotools. All Rights Reserved.