public class FormProcessorRegistry
extends java.lang.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 java.util.List |
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.
|
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 - 2010 Alfresco Software, Inc. All Rights Reserved.