Skip to content

Dropwizard-guicey Lifecycle
Type to start searching
    dropwizard-guicey
    • Home
    • User guide
    • Installers
    • Modules
    • Examples
    • About
    dropwizard-guicey
    • Home
    • Getting started
    • Concepts overview
    • Guice
    • Testing
    • Decomposition
      • Configuration
      • Extensions
      • Web
      • Extra integrations
      • Bundles
      • Yaml values
        • Injector
        • Bindings
        • Scopes
        • Module autowiring
        • Modules analysis
        • Override bindings
        • ServletModule
        • Tools
        • Configuration
        • Configuration model
        • Installers
        • Yaml values
        • Lifecycle
        • Guice
        • AOP
        • Web
        • Jersey
      • Test
      • Lifecycle
      • Classpath scan
      • Installers
      • Ordering
      • Options
      • Events
      • Disables
      • De-duplication
      • Commands
      • Hooks
      • Shared state
      • HK2
      • Resource
      • Task
      • Managed
      • Lifecycle
        • Recognition
      • Health check
      • Jersey extension
      • Jersey feature
      • Eager singleton
      • Plugin
      • Web servlet
      • Web filter
      • Web listener
      • BOM
      • Admin REST
      • Lifecycle annotations
      • Guava EventBus
      • JDBI
      • JDBI3
      • SPA
      • Server Pages
      • Authentication
      • Governator
      • Hibernate
      • EventBus
      • JDBI
      • JDBI3
      • Release notes
      • Compatibility
      • Version history
      • Support
      • License
    • Recognition
    

    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
    

    Previous Managed
    Next Health check
    Copyright © 2014-2019 Vyacheslav Rusakov
    powered by MkDocs and Material for MkDocs