Package javax.annotation.processing

Examples of javax.annotation.processing.ProcessingEnvironment


      }
    };

    @Override
    public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
      ProcessingEnvironment poisonedProcessingEnv = (ProcessingEnvironment) Proxy.newProxyInstance(
          getClass().getClassLoader(),
          new Class<?>[] {ProcessingEnvironment.class},
          new ErrorInvocationHandler(processingEnv));
      processingEnv = poisonedProcessingEnv;
      return super.process(annotations, roundEnv);
View Full Code Here


   
    /**
     * INTERNAL:
     */
    protected void initPersistenceUnits(MetadataMirrorFactory factory) {
        ProcessingEnvironment processingEnv = factory.getProcessingEnvironment();
        String filename = CanonicalModelProperties.getOption(ECLIPSELINK_PERSISTENCE_XML, ECLIPSELINK_PERSISTENCE_XML_DEFAULT, processingEnv.getOptions());       
        HashSet<String> persistenceUnitList = getPersistenceUnitList(processingEnv);
       
        try {
            FileObject fileObject = getFileObject(filename, processingEnv);       
            InputStream inStream = null;
View Full Code Here

    @Test
    public void testInvalidOptions() {
        I18NProcessorOptions options;
        String prefix = I18NProcessor.class.getName();
        final Map<String, String> args = new HashMap<String, String>();
        ProcessingEnvironment pe = new ProcessingEnvironmentMockup() {
                @Override
                public Map<String, String> getOptions() {
                    return args;
                }
View Full Code Here

        final Map<String, String> args = new HashMap<String, String>();
        args.put(prefix + ".catalogClass", "null");
        args.put(prefix + ".language", "en_US");
        args.put(prefix + ".verbosity", "ERROR");

        ProcessingEnvironment pe = new ProcessingEnvironmentMockup() {
                @Override
                public Map<String, String> getOptions() {
                    return args;
                }
View Full Code Here

    super();
  }
 
  public boolean process(Set<? extends TypeElement> annotations,
      RoundEnvironment roundEnv) {
    ProcessingEnvironment env = super.processingEnv;
    Filer filer = env.getFiler();
    Set<TypeElement> annotatedDecls = (Set<TypeElement>) roundEnv.getElementsAnnotatedWith(AsyncService.class);
    for(Iterator<TypeElement> i = annotatedDecls.iterator(); i.hasNext(); ) {
      writeAsyncType(filer,i.next());
    }
    return true;
View Full Code Here

TOP

Related Classes of javax.annotation.processing.ProcessingEnvironment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.