public class DefaultEbeanServerHandler extends Object implements EbeanServerHandler
Constructor and Description |
---|
DefaultEbeanServerHandler(EbeanServerFactory ebeanServerFactory,
EbeanServerStorage ebeanServerStorage) |
Modifier and Type | Method and Description |
---|---|
void |
closeEbean() |
void |
closeEbean(String ebeanServerName) |
<R> R |
withEbean(EbeanServerCallback<R> callback) |
<R> R |
withEbean(String ebeanServerName,
EbeanServerCallback<R> callback) |
@Inject public DefaultEbeanServerHandler(@Nonnull EbeanServerFactory ebeanServerFactory, @Nonnull EbeanServerStorage ebeanServerStorage)
@Nullable public <R> R withEbean(@Nonnull EbeanServerCallback<R> callback) throws RuntimeEbeanServerException
withEbean
in interface EbeanServerHandler
RuntimeEbeanServerException
@Nullable public <R> R withEbean(@Nonnull String ebeanServerName, @Nonnull EbeanServerCallback<R> callback) throws RuntimeEbeanServerException
withEbean
in interface EbeanServerHandler
RuntimeEbeanServerException
public void closeEbean()
closeEbean
in interface EbeanServerHandler
public void closeEbean(@Nonnull String ebeanServerName)
closeEbean
in interface EbeanServerHandler