Skip to content
Permalink
Browse files
ARIES-1881 - Fix OSGi config
  • Loading branch information
cschneider committed Jan 6, 2019
1 parent f5c2ba0 commit feb25a9412f6d04b93c373ac0a95d2f021981c3b
Showing 2 changed files with 5 additions and 10 deletions.
@@ -21,9 +21,8 @@
import org.osgi.service.metatype.annotations.AttributeDefinition;
import org.osgi.service.metatype.annotations.ObjectClassDefinition;

/** Mongo endpoint configuration. (not used yet) */
@ObjectClassDefinition(
name = "Adobe Granite Mongo Distribution - MongoDB endpoint",
name = "MongoDB configuration",
description = "Mongodb URI"
)
public @interface MongoEndpoint {
@@ -73,10 +73,10 @@ public Position positionFromString(String position) {
// Private
// *******************************************************

private CachingFactory<String, MessageSender> senderFactory = initializedInActivate();
private MongoEndpoint config = initializedInActivate();
private MongoClient client = initializedInActivate();
private MongoDatabase database = initializedInActivate();
private CachingFactory<String, MessageSender> senderFactory;
private MongoEndpoint config;
private MongoClient client;
private MongoDatabase database;

@Activate
protected void activate(MongoEndpoint config) {
@@ -96,8 +96,4 @@ protected void deactivate() {
client.close();
}

private static <T> T initializedInActivate() {
return null;
}

}

0 comments on commit feb25a9

Please sign in to comment.