Class CompositeBinder

java.lang.Object
org.glassfish.jersey.internal.inject.AbstractBinder
org.glassfish.jersey.internal.inject.CompositeBinder
All Implemented Interfaces:
Binder

public class CompositeBinder extends AbstractBinder
Utility class which is able to install several binders and register them as a whole.

Binder is able to recursively register all injection binding descriptions in all installed binders.

Author:
Petr Bouda
  • Method Details

    • wrap

      public static AbstractBinder wrap(Collection<Binder> binders)
      Creates CompositeBinder with provided binders.
      Parameters:
      binders - provided binder to install as a collection.
      Returns:
      composite binder.
    • wrap

      public static AbstractBinder wrap(Binder... binders)
      Creates CompositeBinder with provided binders.
      Parameters:
      binders - provided binder to install as an array.
      Returns:
      composite binder.
    • configure

      public void configure()
      Automatically installed all provided binders.
      Specified by:
      configure in class AbstractBinder