public abstract class MorphiaBundle<T extends io.dropwizard.Configuration> extends Object implements io.dropwizard.ConfiguredBundle<T>
| Modifier | Constructor and Description |
|---|---|
protected |
MorphiaBundle(Class<?> entity,
Class<?>... entities) |
| Modifier and Type | Method and Description |
|---|---|
org.mongodb.morphia.Datastore |
getDatastore() |
protected abstract MongoConfiguration |
getMongo(T configuration) |
protected String |
getName() |
void |
initialize(io.dropwizard.setup.Bootstrap<?> bootstrap) |
void |
run(T configuration,
io.dropwizard.setup.Environment environment) |
public void initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
initialize in interface io.dropwizard.ConfiguredBundle<T extends io.dropwizard.Configuration>public org.mongodb.morphia.Datastore getDatastore()
protected String getName()
protected abstract MongoConfiguration getMongo(T configuration)
Copyright © 2017. All rights reserved.