Interface RequestScopeBuilder


public interface RequestScopeBuilder
Builder for RequestScope.

When building a request scope we can provide additional instances that can then we wired as dependencies to request scoped beans.

  • Method Details

    • withBean

      <D> RequestScopeBuilder withBean​(Class<D> type, D bean)
      Provide a bean that can be dependency of a request scoped bean.
      Parameters:
      type - The type of provided bean
      bean - The instance being provided
      Returns:
      The builder
    • withBean

      <D> RequestScopeBuilder withBean​(String name, Class<D> type, D bean)
      Provide a bean that can be dependency of a request scoped bean.
      Parameters:
      name - The qualifier name of the provided bean
      type - The type of provided bean
      bean - The instance being provided
      Returns:
      The builder
    • build

      Build and return the request scope.