# Destruction

## Annotations

```java
public class Bean {

   @PreDestroy
   public void destroy() {
      // Code
   }

}
```

## Interface

```java
public class Bean implements DisposableBean {

   @Override
   public void destroy() throws Exception {
      // Code
   }

}
```
