Class GuiBeanCache.Builder<Key, Bean, Plugin extends IFCPlugin>
java.lang.Object
de.xima.fc.gui.common.plugingui.GuiBeanCache.Builder<Key,Bean,Plugin>
- Type Parameters:
Key- The key used to identify which bean to retrieve, e.g. a workflow node handler's type.Bean- The interface type of the beans that all beans must implement.Plugin- The interface type of the plugin that provides the beans, must implementIFCPlugin.
- Enclosing class:
GuiBeanCache<Key, Bean, Plugin extends IFCPlugin, PluginBean extends IPluginGenericCustomGUIBean>
A builder for creating instances of
GuiBeanCache.- Since:
- 8.5.0
-
Method Summary
Modifier and TypeMethodDescription<PluginBean extends IPluginGenericCustomGUIBean>
GuiBeanCache<Key, Bean, Plugin, PluginBean> build(IPluginBeanHelperInstantiator<Plugin, PluginBean> pluginBeanHelperInstantiator) Builds a new GUI bean cache instance with the given plugin bean helper instantiator.<PluginBean extends IPluginGenericCustomGUIBean>
GuiBeanCache<Key, Bean, Plugin, PluginBean> buildForCurrentApplicationScope(IPluginCustomGUIExtractor<PluginBean, Plugin> guiExtractor, PluginBeanOptions options) Builds a new GUI bean cache instance, assuming that all beans areApplicationScopedbeans.<PluginBean extends IPluginGenericCustomGUIBean>
GuiBeanCache<Key, Bean, Plugin, PluginBean> buildForCurrentRequestScope(IPluginCustomGUIExtractor<PluginBean, Plugin> guiExtractor, PluginBeanOptions options) Builds a new GUI bean cache instance, assuming that all beans areRequestScopedbeans.<PluginBean extends IPluginGenericCustomGUIBean>
GuiBeanCache<Key, Bean, Plugin, PluginBean> buildForCurrentSessionScope(IPluginCustomGUIExtractor<PluginBean, Plugin> guiExtractor, PluginBeanOptions options) Builds a new GUI bean cache instance, assuming that all beans areSessionScopedbeans.<PluginBean extends IPluginGenericCustomGUIBean>
GuiBeanCache<Key, Bean, Plugin, PluginBean> buildForCurrentViewScope(IPluginCustomGUIExtractor<PluginBean, Plugin> guiExtractor, PluginBeanOptions options) Builds a new GUI bean cache instance, assuming that all beans areViewScopedbeans.
-
Method Details
-
build
public <PluginBean extends IPluginGenericCustomGUIBean> GuiBeanCache<Key, Bean, Plugin, PluginBean> build(IPluginBeanHelperInstantiator<Plugin, PluginBean> pluginBeanHelperInstantiator) Builds a new GUI bean cache instance with the given plugin bean helper instantiator. Subsequent modifications to the builder will not affect the created instance.- Type Parameters:
PluginBean- The interface type of the plugin bean that all beans from plugins must implement, must implementIPluginGenericCustomGUIBean; and must be a subtype ofBean.- Parameters:
pluginBeanHelperInstantiator- The plugin bean helper instantiator that will be used to create the plugin bean helpers.- Returns:
- A new GUI bean cache instance.
-
buildForCurrentApplicationScope
public <PluginBean extends IPluginGenericCustomGUIBean> GuiBeanCache<Key, Bean, Plugin, PluginBean> buildForCurrentApplicationScope(IPluginCustomGUIExtractor<PluginBean, Plugin> guiExtractor, PluginBeanOptions options) Builds a new GUI bean cache instance, assuming that all beans areApplicationScopedbeans. Subsequent modifications to the builder will not affect the created instance.- Type Parameters:
PluginBean- The interface type of the plugin bean that all beans from plugins must implement, must implementIPluginGenericCustomGUIBean; and must be a subtype ofBean.- Parameters:
guiExtractor- Extractor for accessing the beans and XHTML page of a plugin.options- Options to be passed on when instantiating a newplugin bean helper.- Returns:
- A new GUI bean cache instance.
-
buildForCurrentRequestScope
public <PluginBean extends IPluginGenericCustomGUIBean> GuiBeanCache<Key, Bean, Plugin, PluginBean> buildForCurrentRequestScope(IPluginCustomGUIExtractor<PluginBean, Plugin> guiExtractor, PluginBeanOptions options) Builds a new GUI bean cache instance, assuming that all beans areRequestScopedbeans. Subsequent modifications to the builder will not affect the created instance.- Type Parameters:
PluginBean- The interface type of the plugin bean that all beans from plugins must implement, must implementIPluginGenericCustomGUIBean; and must be a subtype ofBean.- Parameters:
guiExtractor- Extractor for accessing the beans and XHTML page of a plugin.options- Options to be passed on when instantiating a newplugin bean helper.- Returns:
- A new GUI bean cache instance.
-
buildForCurrentSessionScope
public <PluginBean extends IPluginGenericCustomGUIBean> GuiBeanCache<Key, Bean, Plugin, PluginBean> buildForCurrentSessionScope(IPluginCustomGUIExtractor<PluginBean, Plugin> guiExtractor, PluginBeanOptions options) Builds a new GUI bean cache instance, assuming that all beans areSessionScopedbeans. Subsequent modifications to the builder will not affect the created instance.- Type Parameters:
PluginBean- The interface type of the plugin bean that all beans from plugins must implement, must implementIPluginGenericCustomGUIBean; and must be a subtype ofBean.- Parameters:
guiExtractor- Extractor for accessing the beans and XHTML page of a plugin.options- Options to be passed on when instantiating a newplugin bean helper.- Returns:
- A new GUI bean cache instance.
-
buildForCurrentViewScope
public <PluginBean extends IPluginGenericCustomGUIBean> GuiBeanCache<Key, Bean, Plugin, PluginBean> buildForCurrentViewScope(IPluginCustomGUIExtractor<PluginBean, Plugin> guiExtractor, PluginBeanOptions options) Builds a new GUI bean cache instance, assuming that all beans areViewScopedbeans. Subsequent modifications to the builder will not affect the created instance.- Type Parameters:
PluginBean- The interface type of the plugin bean that all beans from plugins must implement, must implementIPluginGenericCustomGUIBean; and must be a subtype ofBean.- Parameters:
guiExtractor- Extractor for accessing the beans and XHTML page of a plugin.options- Options to be passed on when instantiating a newplugin bean helper.- Returns:
- A new GUI bean cache instance.
-