public abstract class LibraryExport<T extends Library> extends Object
to implement / export library message.| Modifier | Constructor and Description |
|---|---|
protected |
LibraryExport(Class<? extends T> library,
Class<?> receiverClass,
boolean defaultExport)
Constructor for generated code.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
createCached(Object receiver)
Implemented generated by
ExportLibrary. |
protected abstract T |
createUncached(Object receiver)
Implemented generated by
ExportLibrary. |
static <T extends Library> |
register(Class<?> receiverClass,
LibraryExport<?>... libs)
Called only by code generated by
ExportLibrary. |
String |
toString() |
protected abstract T createUncached(Object receiver)
ExportLibrary. Do not implement manually.protected abstract T createCached(Object receiver)
ExportLibrary. Do not implement manually.public static <T extends Library> void register(Class<?> receiverClass, LibraryExport<?>... libs)
ExportLibrary. Do not call manually. Multiple calls
with the same receiver class will lead to an IllegalStateException.