# Uses of Interface
org.apache.struts2.inject.Factory

Packages that use Factory
Package
Description
org.apache.struts2.config.impl
Configuration implementation classes.
org.apache.struts2.inject
Guice (pronounced "juice").

- ## Uses of Factory in org.apache.struts2.config.impl

  Classes in org.apache.struts2.config.impl that implement Factory
  Modifier and Type
  Class
  Description
  `class`
  `LocatableConstantFactory<T>`
  Factory that remembers where a constant came from
  `class`
  `LocatableFactory<T>`
  Attaches location information to the factory.

- ## Uses of Factory in org.apache.struts2.inject

  Methods in org.apache.struts2.inject with parameters of type Factory
  Modifier and Type
  Method
  Description
  `<T> ContainerBuilder`
  ContainerBuilder.`factory(Class<T> type, String name, Factory<? extends T> factory)`
  Convenience method. Equivalent to `factory(type, name, factory, Scope.PROTOTYPE)`.
  `<T> ContainerBuilder`
  ContainerBuilder.`factory(Class<T> type, String name, Factory<? extends T> factory, Scope scope)`
  Maps a factory to a given dependency type and name.
  `<T> ContainerBuilder`
  ContainerBuilder.`factory(Class<T> type, Factory<? extends T> factory)`
  Convenience method. Equivalent to `factory(type, Container.DEFAULT_NAME, factory, Scope.PROTOTYPE)`.
  `<T> ContainerBuilder`
  ContainerBuilder.`factory(Class<T> type, Factory<? extends T> factory, Scope scope)`
  Convenience method. Equivalent to `factory(type, Container.DEFAULT_NAME, factory, scope)`.