| Modifier and Type | Method and Description |
|---|---|
static void |
close(Object key,
Object objectToBeClosed,
Closer closer,
CloseErrors errors)
Closes the given object with the Closer if the object is not null
|
public static void close(Object key, Object objectToBeClosed, Closer closer, CloseErrors errors)
key - the Key or String name of the object to be closedobjectToBeClosed - the object that is going to be closedcloser - the strategy used to close the objecterrors - the handler of exceptions if they occurApache Camel