jodd.lagarto.adapter.htmlstapler
Enum HtmlStaplerBundlesManager.Strategy

java.lang.Object
  extended by java.lang.Enum<HtmlStaplerBundlesManager.Strategy>
      extended by jodd.lagarto.adapter.htmlstapler.HtmlStaplerBundlesManager.Strategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HtmlStaplerBundlesManager.Strategy>
Enclosing class:
HtmlStaplerBundlesManager

public static enum HtmlStaplerBundlesManager.Strategy
extends java.lang.Enum<HtmlStaplerBundlesManager.Strategy>


Enum Constant Summary
ACTION_MANAGED
          For each action manager stores the bundle id.
RESOURCES_ONLY
          Pragmatic strategy that collects all links and builds bundle id (digest) every time when page is processed.
 
Method Summary
static HtmlStaplerBundlesManager.Strategy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HtmlStaplerBundlesManager.Strategy[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ACTION_MANAGED

public static final HtmlStaplerBundlesManager.Strategy ACTION_MANAGED
For each action manager stores the bundle id. This gives top performances, as the links are collected only once per page and bundle id (digest) is calculated only once as well, only first time page is accessed. However, if there are dynamic REST-alike links, there might be a large or infinite number of action links in the application. This can be handled in the code by overriding method resolveRealActionPath().


RESOURCES_ONLY

public static final HtmlStaplerBundlesManager.Strategy RESOURCES_ONLY
Pragmatic strategy that collects all links and builds bundle id (digest) every time when page is processed. This gives slightly slower performances, but there is no additional memory consumption.

Method Detail

values

public static final HtmlStaplerBundlesManager.Strategy[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(HtmlStaplerBundlesManager.Strategy c : HtmlStaplerBundlesManager.Strategy.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static HtmlStaplerBundlesManager.Strategy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2003-2011 Jodd Team