/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.ocelotds.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.enterprise.util.Nonbinding;
import javax.inject.Qualifier;

/**
 * Annotation for inject Event object for broatcast message to topic programmaticly
 * @author hhfrancois
 */
@Qualifier
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.PARAMETER})
public @interface JsTopicEvent {
	/**
	 * Topic name
	 * @return 
	 */
	@Nonbinding String value();
}

@@ -805,11 +805,135 @@
 lue();%0D%0A
+%09%0D%0A%09/**%0D%0A%09 * REceive directly json formated payload%0D%0A%09 * @return %0D%0A%09 */%0D%0A%09@Nonbinding boolean jsonPayload() default false;%0D%0A
 %7D%0D%0A

allow jsonPayload for JsTopicEvent Observer