Class FixedSkinActionFactory

All Implemented Interfaces:
DynamicActionAttributes, ActionFactory<SkinAction>

public class FixedSkinActionFactory extends AbstractJspActionFactory<SkinAction>
A simple action factory implementation that always include the given skin on all pages. It supports dynamic attributes, favicon and image re-mapping. To use image remapping, set the <image-remap-dir> parameter in the configuration file to a path in the /resources dir in the JAR file but without the /resources prefix. For example, if the images to remap are in the /resources/images/remap directory set the parameter to /images/remap.
Since:
3.4
Author:
nicklas
  • Field Details

    • id

      private String id
    • favicon

      private String favicon
    • remapDir

      private String remapDir
  • Constructor Details

    • FixedSkinActionFactory

      public FixedSkinActionFactory()
      Create a new factory instance.
  • Method Details

    • getActions

      public SkinAction[] getActions(InvokationContext<? super SkinAction> context)
      Description copied from interface: ActionFactory
      This method may be called one or several times for each request. This is decided by the extension point. If, for example, the extension point is a pure single-item extension point then this method is probably only called once. If the extension point is a per-item extension point in a list context, then this method may be called once for every item in the list. The context parameter contains all information about the context of the extension point, including the current item, if any.
      Parameters:
      context - The current invokation context
      Returns:
      Always an array with a single element
    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getFavicon

      public String getFavicon()
    • setFavicon

      @PathSetter @VariableSetter public void setFavicon(String favicon)
    • setImageRemapDir

      public void setImageRemapDir(String remapDir)
    • getImageRemapDir

      public String getImageRemapDir()