public interface ClassLoadingReporter extends AutoCloseable, Toggleable
close()
method will be called when the application terminates.Modifier and Type | Method and Description |
---|---|
void |
close() |
static void |
finish()
Finish reporting classloading.
|
static boolean |
isReportingEnabled()
Whether report is enabled.
|
void |
onBeanPresent(Class<?> type)
Called when a bean is present.
|
void |
onMissing(String name)
Called when a class is missing.
|
void |
onPresent(Class<?> type)
Called when a class is present.
|
static void |
reportBeanPresent(Class<?> type)
Report a class that is present.
|
static void |
reportMissing(String type)
Report a class that is present.
|
static void |
reportPresent(Class<?> type)
Report a class that is present.
|
isEnabled
void onPresent(Class<?> type)
type
- The typevoid onBeanPresent(Class<?> type)
onPresent(Class)
but listeners may want to treat POJO beans differently.type
- The typevoid onMissing(String name)
name
- The name of the classvoid close()
close
in interface AutoCloseable
static boolean isReportingEnabled()
static void reportPresent(Class<?> type)
type
- The typestatic void reportBeanPresent(Class<?> type)
type
- The typestatic void reportMissing(String type)
type
- The typestatic void finish()