org.apache.camel.guice.jsr250
Class PreDestroyCloser
java.lang.Object
org.apache.camel.guice.jsr250.PreDestroyCloser
- All Implemented Interfaces:
- Closer
public class PreDestroyCloser
- extends Object
- implements Closer
Supports the PreDestroy
annotation lifecycle from
JSR250.
To install this closer you need to register the Jsr250Module
in your
injector.
- Version:
Method Summary |
void |
close(Object object)
Closes the given object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreDestroyCloser
public PreDestroyCloser()
close
public void close(Object object)
throws Throwable
- Description copied from interface:
Closer
- Closes the given object
- Specified by:
close
in interface Closer
- Parameters:
object
- the object to be closed
- Throws:
Exception
- if the close operation caused some exception to occur
Throwable
Apache Camel