01: /*******************************************************************************
02: * Copyright (c) 2005, 2007 BEA Systems, Inc.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *******************************************************************************/package org.eclipse.jdt.apt.tests.annotations.generic;
08:
09: import java.util.Set;
10:
11: import org.eclipse.jdt.apt.tests.annotations.BaseFactory;
12:
13: import com.sun.mirror.apt.AnnotationProcessor;
14: import com.sun.mirror.apt.AnnotationProcessorEnvironment;
15: import com.sun.mirror.declaration.AnnotationTypeDeclaration;
16:
17: public class GenericFactory extends BaseFactory {
18: public static AbstractGenericProcessor PROCESSOR;
19: public static AnnotationProcessor fact;
20:
21: public static void setProcessor(AbstractGenericProcessor p) {
22: PROCESSOR = p;
23: }
24:
25: public GenericFactory() {
26: super (GenericAnnotation.class.getName());
27: }
28:
29: public AnnotationProcessor getProcessorFor(
30: Set<AnnotationTypeDeclaration> arg0,
31: AnnotationProcessorEnvironment env) {
32: PROCESSOR.setEnv(env);
33: return PROCESSOR;
34: }
35:
36: }
|