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