|
||||||||||
| 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
public class DefaultFormManager
Component implementing the FormManager role.
| Field Summary | |
|---|---|
protected CacheManager |
cacheManager
|
protected LibraryManager |
libraryManager
|
protected ServiceManager |
manager
|
protected SimpleServiceSelector |
widgetDefinitionBuilderSelector
|
| Fields inherited from interface org.apache.cocoon.forms.FormManager |
|---|
ROLE |
| Constructor Summary | |
|---|---|
DefaultFormManager()
|
|
| Method Summary | |
|---|---|
void |
configure(Configuration configuration)
|
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(Source source)
Creates a form definition based on the XML form definition that can be retrieved from the specified source. |
FormDefinition |
createFormDefinition(String uri)
Creates a form definition based on the XML form definition that can be retrieved from the specified URI. |
void |
dispose()
|
void |
enableLogging(Logger logger)
|
Context |
getAvalonContext()
Temporary internal method, don't rely on it's existence! |
void |
service(ServiceManager manager)
|
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
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 ServiceManager manager
protected SimpleServiceSelector widgetDefinitionBuilderSelector
protected CacheManager cacheManager
protected LibraryManager libraryManager
| Constructor Detail |
|---|
public DefaultFormManager()
| Method Detail |
|---|
public void enableLogging(Logger logger)
enableLogging in interface LogEnabledenableLogging in class AbstractLogEnabledAbstractLogEnabled.enableLogging(org.apache.avalon.framework.logger.Logger)
public void contextualize(Context context)
throws ContextException
contextualize in interface ContextualizableContextExceptionContextualizable.contextualize(org.apache.avalon.framework.context.Context)public Context getAvalonContext()
public void service(ServiceManager manager)
throws ServiceException
service in interface ServiceableServiceExceptionServiceable.service(org.apache.avalon.framework.service.ServiceManager)
public void configure(Configuration configuration)
throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionConfigurable.configure(org.apache.avalon.framework.configuration.Configuration)public void dispose()
dispose in interface DisposableDisposable.dispose()
public Form createForm(String uri)
throws Exception
FormManagerThe form definition will be cached, so that future form instances can be created quickly.
createForm in interface FormManagerException
public Form createForm(Source source)
throws Exception
FormManagerTo avoid having to resolve the Source object yourself,
use the FormManager.createForm(String) method.
The form definition will be cached, so that future form instances can be created 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(String uri)
throws Exception
FormManagerThe root element must be a <fd:form> element.
The form definition will be cached, so that future form instances can be created quickly.
createFormDefinition in interface FormManagerException
public FormDefinition createFormDefinition(Source source)
throws Exception
FormManagerTo avoid having to resolve the Source object yourself,
use the FormManager.createFormDefinition(String) method.
The root element must be a <fd:form> element.
The form definition will be cached, so that future form instances can be created quickly.
createFormDefinition 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||