Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public interface Backend.Handlers
Where the handlers are built, once the things they need exist.
A handler that talks to a database cannot be constructed before the pool is open, and the pool is opened from configuration this builder resolves – so a builder that took ready-made handlers could not inject anything into them. This is the hook the generated entry point uses to construct a controller with the dao it asked for.
Methods
public abstract HttpServer.Handler[] create(DataSource dataSource, EntityManager entities)
throws Exception |
Method details
create
public abstract HttpServer.Handler[] create(DataSource dataSource, EntityManager entities)
throws Exception