Class JerseyClientBundle<C extends io.dropwizard.Configuration>

  • All Implemented Interfaces:
    io.dropwizard.ConfiguredBundle<C>

    public class JerseyClientBundle<C extends io.dropwizard.Configuration>
    extends java.lang.Object
    implements io.dropwizard.ConfiguredBundle<C>
    A bundle that provides Jersey clients with appropriate configuration for the SDA Platform.
    • Method Detail

      • initialize

        public void initialize​(io.dropwizard.setup.Bootstrap<?> bootstrap)
        Specified by:
        initialize in interface io.dropwizard.ConfiguredBundle<C extends io.dropwizard.Configuration>
      • run

        public void run​(C configuration,
                        io.dropwizard.setup.Environment environment)
        Specified by:
        run in interface io.dropwizard.ConfiguredBundle<C extends io.dropwizard.Configuration>
      • getClientFactory

        public ClientFactory getClientFactory()
        Returns:
        a factory to build clients that can be either used to call within the SDA platform or to call external services
        Throws:
        java.lang.IllegalStateException - if called before Application.run(Configuration, Environment) because the factory has to be initialized within ConfiguredBundle.run(Object, Environment)