public interface UserFactory
EphemeralUserFactory
Modifier and Type | Method and Description |
---|---|
void |
provideUser(Contextor contextor,
Connection connection,
JSONObject param,
ArgRunnable handler)
Produce a user object.
|
void provideUser(Contextor contextor, Connection connection, JSONObject param, ArgRunnable handler)
contextor
- The contextor of the server in which the requested
user will be presentconnection
- The connection over which the new user presented
themself.param
- Arbitary JSON object parameterizing the construction.
this is analogous to the user record read from the ODB, but may be
anything that makes sense for the particular factory implementation.
Of course, the sender of this parameter must be coordinated with the
factory implementation.handler
- Handler to be called with the result. The result will
be the user object that was produced, or null if none could be.Copyright © 2017. All rights reserved.