Class LocatableFactory<T>

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

public class LocatableFactory<T> extends Located implements Factory<T>
Attaches location information to the factory.
  • Constructor Details

  • Method Details

    • create

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

      public Class<? extends T> 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