-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update osgi annotations in datastorage #316
Update osgi annotations in datastorage #316
Conversation
+ "...[,hostN[:portN]]][/[database][?options]]", type = AttributeType.STRING) | ||
String MongoURI() default DEFAULT_MONGODB_URI; | ||
|
||
@AttributeDefinition(name = ALLOW_AUTO_CREATE, description = "Allows automatic creation of DB if set to true", type = AttributeType.BOOLEAN) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name
should be set to the label
value of old annotation
boolean DEFAULT_AUTOCREATE_VALUE = false; | ||
|
||
@AttributeDefinition(name = MONGO_URI_PROPERTY_NAME, description = MONGO_URI_PROPERTY_DESCRIPTION, type = AttributeType.STRING) | ||
String MongoURI() default DEFAULT_MONGODB_URI; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Java usually methods names start with lowercase. Please adjust methods names in this interface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a problem with that adjustment. @AttributeDefinition
is case sensitive to keys from *.cfg
https://github.com/Cognifide/aet/blob/master/osgi-dependencies/configs/src/main/resources/com.cognifide.aet.vs.mongodb.MongoDBClient.cfg#L19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Darn...
Let's leave it as is for now. Could you please raise a new ticket to fix that (make the properties to start with lowercase) in the future?
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
I updated osgi annotations in datastorage
Motivation and Context
Before, annotations was marked as deprecated
Screenshots (if appropriate):
Types of changes
Checklist:
I hereby agree to the terms of the AET Contributor License Agreement.