Class CompositeBinder

java.lang.Object
org.glassfish.jersey.inject.hk2.CompositeBinder

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

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

Author:
Petr Bouda
  • Constructor Details

    • CompositeBinder

      public CompositeBinder()
  • Method Details

    • wrap

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

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