Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   * JBoss, Home of Professional Open Source
   * Copyright 2010, Red Hat Inc., and individual contributors as indicated
   * by the @authors tag. See the copyright.txt in the distribution for a
   * full listing of individual contributors.
   * This is free software; you can redistribute it and/or modify it
   * under the terms of the GNU Lesser General Public License as
   * published by the Free Software Foundation; either version 2.1 of
  * the License, or (at your option) any later version.
  * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * Lesser General Public License for more details.
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the Free
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site:
Class that stores the org.jboss.jandex.DotNames of CDI annotations.
 public enum CdiAnnotations {
javax.decorator.Decorator CDI annotation.
javax.decorator.Delegate CDI annotation.
javax.enterprise.context.ApplicationScoped CDI annotation.
javax.enterprise.context.ConversationScoped CDI annotation.
javax.enterprise.context.RequestScoped CDI annotation.
javax.enterprise.context.SessionScoped CDI annotation.
javax.enterprise.context.NormalScope CDI annotation.
javax.enterprise.context.Dependent CDI annotation.
javax.enterprise.event.Observes CDI annotation.
javax.enterprise.inject.Alternative CDI annotation.
javax.enterprise.inject.Any CDI annotation.
javax.enterprise.inject.Default CDI annotation.
javax.enterprise.inject.Disposes CDI annotation.
javax.enterprise.inject.Model CDI annotation.
javax.enterprise.inject.New CDI annotation.
javax.enterprise.inject.Produces CDI annotation.
javax.enterprise.inject.Specializes CDI annotation.
javax.enterprise.inject.Stereotype CDI annotation.
javax.enterprise.inject.Typed CDI annotation.

CDI annotation name.
    private final String simpleName;

CDI annotation fully qualified name.
    private final DotName dotName;


prefix qualified name part
simpleName simple class name
    private CdiAnnotations(final DotName prefixfinal String simpleName) {
        this. = simpleName;
        this. = DotName.createComponentized(prefixsimpleName);

this can't go on the enum itself.
    private static class Constants {
javax.decorator package.
        public static final DotName JAVAX_DECORATOR = DotName.createSimple("javax.decorator");
javax.enterprise.context package.
        public static final DotName JAVAX_ENT_CONTEXT = DotName.createSimple("javax.enterprise.context");

javax.enterprise.event package.
        public static final DotName JAVAX_ENT_EVT = DotName.createSimple("javax.enterprise.event");

javax.enterprise.inject package.
        public static final DotName JAVAX_ENT_INJ = DotName.createSimple("javax.enterprise.inject");


fully qualified name
    public DotName getDotName() {
        return ;


simple name
    public String getSimpleName() {
        return ;
New to GrepCode? Check out our FAQ X