Skip to content

Instantly share code, notes, and snippets.

@Viji1304
Created April 12, 2020 22:31
@ObjectClassDefinition(name="OCD for Factory Config Demo", description="OCD for Factory config demo")
public @interface OSGIFactoryConfigOCD {
@AttributeDefinition(name="Endpoint URL", description="Sample Endpoint URL for connecting to third party", type=AttributeType.STRING)
String apiEndpoint() default "http://xyz.com";
@AttributeDefinition(name="API Key", description="Sample API key for connecting to third party", type=AttributeType.STRING)
String apiKey() default "XYZ";
@AttributeDefinition(name="SiteName", description="Sample Site name used as an identifier for respective factory config", type=AttributeType.STRING)
String siteNameIdentifier() default "demosite";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment