# Uses of Enum Class
org.apache.struts2.inject.Scope

Packages that use Scope
Package
Description
org.apache.struts2.config
Classes for Struts configuration and property handling.
org.apache.struts2.config.entities
Configuration entity classes.
org.apache.struts2.config.impl
Configuration implementation classes.
org.apache.struts2.inject
Guice (pronounced "juice").

- ## Uses of Scope in org.apache.struts2.config

  Methods in org.apache.struts2.config with parameters of type Scope
  Modifier and Type
  Method
  Description
  `protected void`
  AbstractBeanSelectionProvider.`alias(Class type, String key, ContainerBuilder builder, Properties props, Scope scope)`

- ## Uses of Scope in org.apache.struts2.config.entities

  Methods in org.apache.struts2.config.entities that return Scope
  Modifier and Type
  Method
  Description
  `Scope`
  BeanConfig.`getScope()`
  Constructors in org.apache.struts2.config.entities with parameters of type Scope
  Modifier
  Constructor
  Description
  ``
  `BeanConfig(Class<?> clazz, String name, Class<?> type, Scope scope, boolean onlyStatic, boolean optional)`

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

  Constructors in org.apache.struts2.config.impl with parameters of type Scope
  Modifier
  Constructor
  Description
  ``
  `LocatableFactory(String name, Class type, Class implementation, Scope scope, Object location)`

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

  Methods in org.apache.struts2.inject that return Scope
  Modifier and Type
  Method
  Description
  `static Scope`
  Scope.`fromString(String scopeStr)`
  `static Scope`
  Scope.`valueOf(String name)`
  Returns the enum constant of this class with the specified name.
  `static Scope[]`
  Scope.`values()`
  Returns an array containing the constants of this enum class, in the order they are declared.
  Methods in org.apache.struts2.inject with parameters of type Scope
  Modifier and Type
  Method
  Description
  `<T> ContainerBuilder`
  ContainerBuilder.`factory(Class<T> type, Class<? extends T> implementation, Scope scope)`
  Convenience method. Equivalent to `factory(type, Container.DEFAULT_NAME, implementation, scope)`.
  `<T> ContainerBuilder`
  ContainerBuilder.`factory(Class<T> type, String name, Class<? extends T> implementation, Scope scope)`
  Maps an implementation class to a given dependency type and name.
  `<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, String name, Scope scope)`
  Convenience method. Equivalent to `factory(type, name, type, scope)`.
  `<T> ContainerBuilder`
  ContainerBuilder.`factory(Class<T> type, Factory<? extends T> factory, Scope scope)`
  Convenience method. Equivalent to `factory(type, Container.DEFAULT_NAME, factory, scope)`.
  `<T> ContainerBuilder`
  ContainerBuilder.`factory(Class<T> type, Scope scope)`
  Convenience method. Equivalent to `factory(type, Container.DEFAULT_NAME, type, scope)`.