package com.commsen.em.demo.configurator;

import org.osgi.service.metatype.annotations.AttributeDefinition;
import org.osgi.service.metatype.annotations.ObjectClassDefinition;

@ObjectClassDefinition
public @interface WriterConfiguration {

	@AttributeDefinition (name = "Server's host name")
	String host() default "Demo with metatypes";

	@AttributeDefinition (name = "Server's port", min="1000", max="65535")
	int port() default 8888;

	@AttributeDefinition (name = "Retry on error", required=false)
	boolean retry() default false;

}

@@ -193,16 +193,46 @@
 finition
+ (name=%22Writer Configuration%22)
 %0Apublic 

add configuration name