Class LocatableConstantFactory<T>

java.lang.Object
org.apache.struts2.util.location.Located
org.apache.struts2.config.impl.LocatableConstantFactory<T>
All Implemented Interfaces:
Factory, Locatable

public class LocatableConstantFactory<T> extends Located implements Factory
Factory that remembers where a constant came from
  • Constructor Details

    • LocatableConstantFactory

      public LocatableConstantFactory(T constant, Object location)
  • Method Details

    • create

      public T create(Context ignored)
      Description copied from interface: Factory
      Creates an object to be injected.
      Specified by:
      create in interface Factory<T>
      Parameters:
      ignored - of this injection
      Returns:
      instance to be injected
    • type

      public Class type()
      Description copied from interface: Factory
      Returns a class of
      Specified by:
      type in interface Factory<T>
      Returns:
      class of the object
    • toString

      public String toString()
      Overrides:
      toString in class Object