Interface IPluginCustomGUI
- All Superinterfaces:
IFCPlugin,INamedUiElement,INameProviding,IPluginGenericCustomGUI<IPluginCustomGUIBean>,IPluginProcessing,ITransferable,Serializable
- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields inherited from interface de.xima.fc.plugin.interfaces.IFCPlugin
CONFIG_FILENAMEFields inherited from interface de.xima.fc.interfaces.INamedUiElement
ATTR_DISPLAY_NAMEFields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.UsegetXhtmlView()Class<? extends IPluginCustomGUIBean>Deprecated.UsegetUnmanagedBeans(), the bean will not be managed, ie. annotations such asPostConstructandManagedPropertywill not work.default Iterable<Class<? extends IPluginCustomGUIBean>>Deprecated.This must return a list of backing bean classes that control the user interface and are required by theXHTML Facelet view.default URLDeprecated.This method must return the path to the XHTML page for the custom user interface.default voidDeprecated.If you need to do initialization, do so in the managed bean viaIPluginGenericCustomGUIBean.initialize(de.xima.fc.interfaces.plugin.lifecycle.IPluginInitializeBeanData).Methods inherited from interface de.xima.fc.plugin.interfaces.IFCPlugin
getDescription, getDescription, getDisplayName, getName, initialize, initPlugin, install, shutdown, shutdown, uninstall, validateConfigurationDataMethods inherited from interface de.xima.fc.plugin.interfaces.workflow.IPluginProcessing
execute, isReplacePlaceholders
-
Method Details
-
getXhtmlView
Deprecated.Description copied from interface:IPluginGenericCustomGUIThis method must return the path to the XHTML page for the custom user interface. Usually the XHTML file is part of the classpath resources of the plugin. In this case, simply return an URL to resource (jar:file:/...) like so:@Override public URL getXhtmlView() { return getClass().getResource("/path/to/view.xhtml"); }- Specified by:
getXhtmlViewin interfaceIPluginGenericCustomGUI<IPluginCustomGUIBean>- Returns:
- Path to the Facelet view. Must not return
null. May returnnullto indicate that no custom view is available. Whether a custom view is required depends on the type of the plugin.
-
getUnmanagedBeans
Deprecated.Description copied from interface:IPluginGenericCustomGUIThis must return a list of backing bean classes that control the user interface and are required by theXHTML Facelet view. A new instance of the bean will be created automatically when the view is opened. Make sure each bean has got a no-argument constructor or instantiation will fail.Each bean should be annotated with
Named. If this annotation is not present or no name is specified, the name defaults to the simple name of the bean class, with the first character changed to lower case.Also, each bean needs to be annotated one of the following scopes:
@RequestScoped,@ViewScoped,@SessionScoped, or@ApplicationScoped. Note that it depends on the type of plugin which scopes are actually supported (most plugins expect@ViewScopedbeans). In case you do not specify a scope, an appropriate scope will be determined automatically.Please note that the beans are fundamentally unmanaged - functionality specific to managed CDI beans may not be supported, depending on the type of plugin. Certain features of CDI managed beans may be supported partially, depending on the type of plugin, but may work slightly differently. This includes, but is not limited to:
- The exact timing at which
PostConstructandPreDestroyare called may differ. - A field marked with
Injectmay not work with all values allowed by the CDI specification, and may not perform certain validation passes such as the check for circular dependencies. Also, no new bean instances will be created when those beans have not yet been created as part of the current page.
- Specified by:
getUnmanagedBeansin interfaceIPluginGenericCustomGUI<IPluginCustomGUIBean>- Returns:
- A list of unmanaged bean classes required by the Facelet page.
- The exact timing at which
-
getManagedBean
Deprecated.UsegetUnmanagedBeans(), the bean will not be managed, ie. annotations such asPostConstructandManagedPropertywill not work. -
initCustomGUI
Deprecated.If you need to do initialization, do so in the managed bean viaIPluginGenericCustomGUIBean.initialize(de.xima.fc.interfaces.plugin.lifecycle.IPluginInitializeBeanData).- Throws:
FCPluginException
-
getConfigPage
Deprecated.UsegetXhtmlView()
-
IPluginWorkflowNode.