Annotation Type PreDestroy


  • @Target(METHOD)
    @Retention(RUNTIME)
    @Documented
    public @interface PreDestroy
    The PreDestroy annotation is used on methods as a callback notification to signal that the instance is in the process of being removed by the container. The method annotated with PreDestroy is typically used to release resources that it has been holding.

    This annotation is Sisu specific annotation, that has same semantics as PreDestroy annotation has, and may be used interchangeably.

    To use annotation LifecycleModule needs to be installed.

    Since:
    TBD