Skip to content

Managed installer

CoreInstallersBundle / ManagedInstaller

Installs dropwizard managed objects.

Recognition

Detects classes implementing dropwizard Managed and register their instances in environment.

public class MyService implements Managed {

    @Override
    public void start() throws Exception {
        ...
    }

    @Override
    public void stop() throws Exception {
        ...
    }
}

It is perfect for implementing guice service lifecycle.

Tip

Use guicey @Order annotation to order managed objects.

@Order(10)
public class MyService implements Managed