Class FlowHandlerFactoryWrapper
- java.lang.Object
-
- jakarta.faces.flow.FlowHandlerFactory
-
- jakarta.faces.flow.FlowHandlerFactoryWrapper
-
- All Implemented Interfaces:
FacesWrapper<FlowHandlerFactory>
public abstract class FlowHandlerFactoryWrapper extends FlowHandlerFactory implements FacesWrapper<FlowHandlerFactory>
FlowHandlerFactoryWrapper provides a simple implementation of
FlowHandlerFactorythat can be subclassed by developers wishing to provide specialized behavior to an existingFlowHandlerFactoryinstance. The default implementation of all methods is to call through to the wrappedFlowHandlerFactoryinstance.Usage: extend this class and push the implementation being wrapped to the constructor and use
getWrapped()to access the instance being wrapped.- Since:
- 2.2
-
-
Constructor Summary
Constructors Constructor Description FlowHandlerFactoryWrapper()Deprecated.Use the other constructor taking the implementation being wrapped.FlowHandlerFactoryWrapper(FlowHandlerFactory wrapped)If this flow handler factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowHandlercreateFlowHandler(FacesContext context)Create the singleton instance ofFlowHandler.FlowHandlerFactorygetWrapped()A class that implements this interface uses this method to return an instance of the class being wrapped.
-
-
-
Constructor Detail
-
FlowHandlerFactoryWrapper
@Deprecated public FlowHandlerFactoryWrapper()
Deprecated.Use the other constructor taking the implementation being wrapped.
-
FlowHandlerFactoryWrapper
public FlowHandlerFactoryWrapper(FlowHandlerFactory wrapped)
If this flow handler factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The
getWrapped()will then return the implementation being wrapped.- Parameters:
wrapped- The implementation being wrapped.- Since:
- 2.3
-
-
Method Detail
-
getWrapped
public FlowHandlerFactory getWrapped()
Description copied from interface:FacesWrapperA class that implements this interface uses this method to return an instance of the class being wrapped.
- Specified by:
getWrappedin interfaceFacesWrapper<FlowHandlerFactory>- Returns:
- the wrapped instance.
-
createFlowHandler
public FlowHandler createFlowHandler(FacesContext context)
Description copied from class:FlowHandlerFactoryCreate the singleton instance of
FlowHandler.- Specified by:
createFlowHandlerin classFlowHandlerFactory- Parameters:
context- theFacesContextfor the current request- Returns:
- the newly created
FlowHandler
-
-