|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.forms.DefaultFormManager
Component implementing the FormManager role.
| Nested Class Summary | |
class |
DefaultFormManager.FormServiceManager
|
| Field Summary | |
protected CacheManager |
cacheManager
|
protected Configuration |
configuration
|
protected LibraryManagerImpl |
libraryManager
|
protected ServiceManager |
manager
|
protected static String |
PREFIX
|
protected SimpleServiceSelector |
widgetDefinitionBuilderSelector
|
| Fields inherited from interface org.apache.cocoon.forms.FormManager |
ROLE |
| Constructor Summary | |
DefaultFormManager()
|
|
| Method Summary | |
void |
configure(Configuration configuration)
Configurable |
void |
contextualize(Context context)
|
Form |
createForm(Element formElement)
Creates a form instance based on the XML form definition that is supplied as a DOM tree. |
Form |
createForm(Source source)
Creates a form instance based on the XML form definition that can be read from the specified source. |
Form |
createForm(String uri)
Creates a form instance based on the XML form definition that can be retrieved from the specified URI. |
FormDefinition |
createFormDefinition(Element formElement)
Creates a form definition based on the XML form definition that is supplied as a DOM tree. |
FormDefinition |
createFormDefinition(String uri)
Creates a form definition based on the XML form definition that can be retrieved from the specified URI. |
void |
dispose()
Disposable |
Context |
getAvalonContext()
Temporary internal method, don't rely on it's existence! |
FormDefinition |
getFormDefinition(Element formElement)
|
FormDefinition |
getFormDefinition(Source source)
|
ServiceSelector |
getWidgetDefinitionBuilderSelector()
|
void |
initialize()
|
void |
service(ServiceManager manager)
|
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final String PREFIX
protected ServiceManager manager
protected Configuration configuration
protected SimpleServiceSelector widgetDefinitionBuilderSelector
protected CacheManager cacheManager
protected LibraryManagerImpl libraryManager
| Constructor Detail |
public DefaultFormManager()
| Method Detail |
public void contextualize(Context context)
throws ContextException
contextualize in interface ContextualizableContextExceptionpublic Context getAvalonContext()
public void service(ServiceManager manager)
throws ServiceException
service in interface ServiceableServiceException
public void configure(Configuration configuration)
throws ConfigurationException
configure in interface ConfigurableConfigurationException
public void initialize()
throws Exception
initialize in interface InitializableExceptionpublic ServiceSelector getWidgetDefinitionBuilderSelector()
public Form createForm(Source source)
throws Exception
FormManagerTo avoid having to resolve the Source object yourself,
use the FormManager.createForm(java.lang.String) method.
The form definition will be cached, so that future form instances can be creted quickly.
createForm in interface FormManagerException
public Form createForm(String uri)
throws Exception
FormManagerThe form definition will be cached, so that future form instances can be creted quickly.
createForm in interface FormManagerException
public Form createForm(Element formElement)
throws Exception
FormManagerThe specified element must be a fd:form element.
The Form Definition will not be cached.
createForm in interface FormManagerException
public FormDefinition createFormDefinition(Element formElement)
throws Exception
FormManagerThe specified element must be a fd:form element.
The Form Definition will not be cached.
createFormDefinition in interface FormManagerException
public FormDefinition getFormDefinition(Source source)
throws Exception
Exception
public FormDefinition getFormDefinition(Element formElement)
throws Exception
Exception
public FormDefinition createFormDefinition(String uri)
throws Exception
FormManagerThe specified element must be a fd:form element.
The Form Definition will not be cached.
createFormDefinition in interface FormManagerExceptionpublic void dispose()
dispose in interface Disposable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||