Package org.mapfish.print.processor
Class ProcessorDependency
java.lang.Object
org.mapfish.print.processor.ProcessorDependency
Models a dependency between two processors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addCommonInput
(String inputName) Add a common input to this dependency.The inputs that both processors must have in common.Returns the processor which requires the other to be executed first.Returns the processor which is required to be executed before the other.final String
toString()
-
Constructor Details
-
ProcessorDependency
public ProcessorDependency(Class<? extends Processor<?, ?>> required, Class<? extends Processor<?, ?>> dependent, Set<String> commonInputs) Constructor. The processordependent
requires the processorrequired
.- Parameters:
required
- The processor which is required to be executed before the other.dependent
- The processor which requires the other to be executed first.commonInputs
- The dependency is only enforced if the two processors have these inputs in common.
-
ProcessorDependency
public ProcessorDependency(Class<? extends Processor<?, ?>> required, Class<? extends Processor<?, ?>> dependent) Constructor. The processordependent
requires the processorrequired
.- Parameters:
required
- The processor which is required to be executed before the other.dependent
- The processor which requires the other to be executed first.
-
-
Method Details
-
getRequired
Returns the processor which is required to be executed before the other. -
getDependent
Returns the processor which requires the other to be executed first. -
getCommonInputs
The inputs that both processors must have in common. -
addCommonInput
Add a common input to this dependency.- Parameters:
inputName
- the name of the input to add
-
toString
-