public final class Resource extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClose(Class<?> clazz,
String method)
Call a certain
void method after calling the close method. |
static void |
afterClose(String className,
String method)
Call a certain
void method before calling the close method. |
static void |
beforeClose(Class<?> clazz,
String method)
Call a certain
void method before calling the close method. |
static void |
beforeClose(String className,
String method)
Call a certain
void method before calling the close method. |
static void |
close(Object... objects)
Closes objects in the order they are given.
|
static void |
insteadOfClose(Class<?> clazz,
String method)
Call a certain
void method instead of calling the close method. |
static void |
insteadOfClose(String className,
String method)
Call a certain
void method instead of calling the close method. |
public static void beforeClose(Class<?> clazz, String method)
void method before calling the close method.clazz - the class, can be an interface, too, may not be nullmethod - the method name, may not be nullpublic static void beforeClose(String className, String method)
void method before calling the close method.className - the class name, may not be nullmethod - the method name, may not be nullpublic static void afterClose(Class<?> clazz, String method)
void method after calling the close method.clazz - the class, can be an interface, too, may not be nullmethod - the method name, may not be nullpublic static void afterClose(String className, String method)
void method before calling the close method.className - the class name, may not be nullmethod - the method name, may not be nullpublic static void insteadOfClose(Class<?> clazz, String method)
void method instead of calling the close method.clazz - the class name, may not be nullmethod - the method name, may not be nullpublic static void insteadOfClose(String className, String method)
void method instead of calling the close method.className - the class name, may not be nullmethod - the method name, may not be nullpublic static void close(Object... objects)
objects - any number of objects, may be null or individual objects may be nullCopyright © 2011-2013 Johann Burkard. All Rights Reserved.