Skip to content

Lifecycle installer

CoreInstallersBundle / LifeCycleInstaller

Installs jetty LifeCycle implementations.

Recognition

Detects classes implementing jetty LifeCycle interface and register their instances in environment.

public class MyCycle implements LifeCycle {
    ...
}

In most cases it's better to use managed object instead of implementing lifecycle.

Tip

Use guicey @Order annotation to order managed objects.

@Order(10)
public class MyCycle implements LifeCycle