You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MongoClientDefinition definition is a good start but additional requirements for configuration will arise. We need to be able to allow a user to do the following
class DatabaseAccessProducer {
@MongoClientDefinition(name="retail") @Produces
@ApplicationScope //TODO can the scope be inferred?
public MongoClient buildMongoClient() {
return new MongoClient(...);
}
//TODO can this whole code be inferred?
public MongoClient disposeMongoClient(
@MongoClientDefinition(name="retail") @Disposes MongoClient mongoClient) {
mongoClient.close();
}
}
The text was updated successfully, but these errors were encountered:
The
MongoClientDefinition
definition is a good start but additional requirements for configuration will arise. We need to be able to allow a user to do the followingThe text was updated successfully, but these errors were encountered: