public static interface LCCore.Environment
| Modifier and Type | Method and Description |
|---|---|
void |
add(Application app)
Add an application.
|
void |
closed(AsyncCloseable<?> closed)
Signal a resource has been closed and do not need to be closed anymore.
|
void |
closed(Closeable closed)
Signal a resource has been closed and do not need to be closed anymore.
|
Application |
getApplication()
Get the application associated with the calling thread.
|
default Logger |
getMemoryLogger()
Return the system logger with name "Memory".
|
LibrariesManager |
getSystemLibraries()
Return the libraries manager.
|
Logger |
getSystemLogger(String name)
Return a system logger, that may be used during initialization of the environment.
|
default Logger |
getThreadingLogger()
Return the system logger with name "Threading".
|
boolean |
isStopping()
Return true if the environment is stopping.
|
void |
start()
Initialization.
|
void |
stop()
Stop the environment and close all applications.
|
void |
toClose(AsyncCloseable<?> toClose)
Add a resource to close when closing the environment, the resource must be application independent.
|
void |
toClose(Closeable toClose)
Add a resource to close when closing the environment, the resource must be application independent.
|
void start()
void add(Application app)
Application getApplication()
void toClose(Closeable toClose)
void toClose(AsyncCloseable<?> toClose)
void closed(Closeable closed)
void closed(AsyncCloseable<?> closed)
LibrariesManager getSystemLibraries()
Logger getSystemLogger(String name)
default Logger getThreadingLogger()
default Logger getMemoryLogger()
void stop()
boolean isStopping()
Copyright © 2019. All rights reserved.