Class Backend.Environment
java.lang.Object
com.codename1.backend.Backend.Environment
- Enclosing class:
Backend
What an
Backend.Application is built from.-
Method Summary
Modifier and TypeMethodDescriptionThe pool, or null when this server has no database.The entity manager, or null when the build generated no entities.voidregisterGauge(String name, String description, String unit, Gauge.Source source) Publishes a managed attribute as a gauge of this server's: added when the server starts and removed when it stops.voidregisterManaged(ManagedBean bean) Registers a managed bean with this server.voidregisterTool(McpTool tool) Publishes an@McpToolon this server's MCP endpoint.
-
Method Details
-
registerTool
Publishes an@McpToolon this server's MCP endpoint. Generated code calls this while it builds the beans; the tool belongs to this server only, so a server started later in the same process does not serve a tool bound to a bean that has been destroyed. -
registerGauge
Publishes a managed attribute as a gauge of this server's: added when the server starts and removed when it stops. Generated code calls this. -
registerManaged
Registers a managed bean with this server. Generated code calls this. -
getConfig
-
getDataSource
The pool, or null when this server has no database. -
getEntityManager
The entity manager, or null when the build generated no entities.
-