public class FormProcessorRegistry extends Object
Given an item the registry selects the relevant form processor, the match is performed via pattern matching on the supplied string.
Modifier and Type | Field and Description |
---|---|
protected List<FormProcessor> |
processors |
Constructor and Description |
---|
FormProcessorRegistry()
Constructs the registry
|
Modifier and Type | Method and Description |
---|---|
void |
addProcessor(FormProcessor processor)
Registers a form processor
|
FormProcessor |
getApplicableFormProcessor(Item item)
Returns a FormProcessor for the provided item.
|
protected List<FormProcessor> processors
public void addProcessor(FormProcessor processor)
processor
- The FormProcessor to regsiterpublic FormProcessor getApplicableFormProcessor(Item item)
Each registered processors is asked if it is applicable for the given item, the first processor to positively respond that is also active is selected and returned.
item
- The item to find a form processor forCopyright © 2005–2017 Alfresco Software. All rights reserved.