# Uses of Class
org.apache.struts2.inject.ContainerBuilder

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

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

  Methods in org.apache.struts2.config with parameters of type ContainerBuilder
  Modifier and Type
  Method
  Description
  `protected void`
  AbstractBeanSelectionProvider.`alias(Class type, String key, ContainerBuilder builder, Properties props)`
  `protected void`
  AbstractBeanSelectionProvider.`alias(Class type, String key, ContainerBuilder builder, Properties props, Scope scope)`
  `void`
  ContainerProvider.`register(ContainerBuilder builder, LocatableProperties props)`
  Registers beans and properties for the Container
  `void`
  DefaultPropertiesProvider.`register(ContainerBuilder builder, LocatableProperties props)`
  `void`
  FileManagerFactoryProvider.`register(ContainerBuilder builder, LocatableProperties props)`
  `void`
  FileManagerProvider.`register(ContainerBuilder builder, LocatableProperties props)`
  `void`
  PropertiesConfigurationProvider.`register(ContainerBuilder builder, LocatableProperties props)`
  `void`
  StrutsBeanSelectionProvider.`register(ContainerBuilder builder, LocatableProperties props)`
  `void`
  StrutsJavaConfigurationProvider.`register(ContainerBuilder builder, LocatableProperties props)`
  `void`
  StrutsXmlConfigurationProvider.`register(ContainerBuilder containerBuilder, LocatableProperties props)`

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

  Methods in org.apache.struts2.config.impl that return ContainerBuilder
  Modifier and Type
  Method
  Description
  `static ContainerBuilder`
  DefaultConfiguration.`bootstrapFactories(ContainerBuilder builder)`
  `static ContainerBuilder`
  DefaultConfiguration.`bootstrapTypeConverters(ContainerBuilder builder)`
  Methods in org.apache.struts2.config.impl with parameters of type ContainerBuilder
  Modifier and Type
  Method
  Description
  `static ContainerBuilder`
  DefaultConfiguration.`bootstrapFactories(ContainerBuilder builder)`
  `static ContainerBuilder`
  DefaultConfiguration.`bootstrapTypeConverters(ContainerBuilder builder)`

- ## Uses of ContainerBuilder in org.apache.struts2.config.providers

  Methods in org.apache.struts2.config.providers with parameters of type ContainerBuilder
  Modifier and Type
  Method
  Description
  `void`
  StrutsDefaultConfigurationProvider.`register(ContainerBuilder builder, LocatableProperties props)`
  `void`
  XmlConfigurationProvider.`register(ContainerBuilder containerBuilder, LocatableProperties props)`
  `void`
  XmlDocConfigurationProvider.`register(ContainerBuilder containerBuilder, LocatableProperties props)`
  `protected void`
  XmlDocConfigurationProvider.`registerBean(Element child, Map<String,Node> loadedBeans, ContainerBuilder containerBuilder)`
  `protected void`
  XmlDocConfigurationProvider.`registerBeanSelection(Element child, ContainerBuilder containerBuilder, LocatableProperties props)`

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

  Methods in org.apache.struts2.inject that return ContainerBuilder
  Modifier and Type
  Method
  Description
  `<T> ContainerBuilder`
  ContainerBuilder.`alias(Class<T> type, String alias)`
  Convenience method. Equivalent to `alias(type, Container.DEFAULT_NAME, type)`.
  `<T> ContainerBuilder`
  ContainerBuilder.`alias(Class<T> type, String name, String alias)`
  Maps an existing factory to a new name.
  `ContainerBuilder`
  ContainerBuilder.`constant(String name, boolean value)`
  Maps a constant value to the given name.
  `ContainerBuilder`
  ContainerBuilder.`constant(String name, char value)`
  Maps a constant value to the given name.
  `ContainerBuilder`
  ContainerBuilder.`constant(String name, double value)`
  Maps a constant value to the given name.
  `ContainerBuilder`
  ContainerBuilder.`constant(String name, float value)`
  Maps a constant value to the given name.
  `ContainerBuilder`
  ContainerBuilder.`constant(String name, int value)`
  Maps a constant value to the given name.
  `ContainerBuilder`
  ContainerBuilder.`constant(String name, long value)`
  Maps a constant value to the given name.
  `ContainerBuilder`
  ContainerBuilder.`constant(String name, short value)`
  Maps a constant value to the given name.
  `<E extends Enum<E>>
  ContainerBuilder`
  ContainerBuilder.`constant(String name, E value)`
  Maps an enum to the given name.
  `ContainerBuilder`
  ContainerBuilder.`constant(String name, Class value)`
  Maps a class to the given name.
  `ContainerBuilder`
  ContainerBuilder.`constant(String name, String value)`
  Maps a constant value to the given name.
  `<T> ContainerBuilder`
  ContainerBuilder.`factory(Class<T> type)`
  Convenience method. Equivalent to `factory(type, Container.DEFAULT_NAME, type)`.
  `<T> ContainerBuilder`
  ContainerBuilder.`factory(Class<T> type, Class<? extends T> implementation)`
  Convenience method. Equivalent to `factory(type, Container.DEFAULT_NAME, implementation)`.
  `<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)`
  Convenience method. Equivalent to `factory(type, name, type)`.
  `<T> ContainerBuilder`
  ContainerBuilder.`factory(Class<T> type, String name, Class<? extends T> implementation)`
  Maps an implementation class to a given dependency type and name.
  `<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)`
  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, String name, Scope scope)`
  Convenience method. Equivalent to `factory(type, name, type, scope)`.
  `<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)`.
  `<T> ContainerBuilder`
  ContainerBuilder.`factory(Class<T> type, Scope scope)`
  Convenience method. Equivalent to `factory(type, Container.DEFAULT_NAME, type, scope)`.
  `ContainerBuilder`
  ContainerBuilder.`injectStatics(Class<?>... types)`
  Upon creation, the `Container` will inject static fields and methods into the given classes.
  Methods in org.apache.struts2.inject with parameters of type ContainerBuilder
  Modifier and Type
  Method
  Description
  `void`
  ContainerBuilder.Command.`build(ContainerBuilder builder)`
  Contributes factories to the given builder.

- ## Uses of ContainerBuilder in org.apache.struts2.test

  Methods in org.apache.struts2.test with parameters of type ContainerBuilder
  Modifier and Type
  Method
  Description
  `void`
  StubConfigurationProvider.`register(ContainerBuilder builder, LocatableProperties props)`