Java Reference
In-Depth Information
In the next step in the wizard, we need to enter a name and a package for
our qualifier.
After these two simple steps, NetBeans generates the code for our qualifier:
package com.ensode.cdiintro.qualifier;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import javax.inject.Qualifier;
public @interface Premium {
Search WWH ::

Custom Search