KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > apt > core > internal > IServiceFactory


1 /*******************************************************************************
2  * Copyright (c) 2007 BEA Systems, Inc.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * wharley@bea.com - initial API and implementation
10  *
11  *******************************************************************************/

12
13 package org.eclipse.jdt.apt.core.internal;
14
15 import org.eclipse.core.runtime.CoreException;
16
17 /**
18  * An abstract factory for services such as annotation processors.
19  * This abstraction exists because the way a service is instantiated
20  * may depend on where it was loaded from as well as what kind of
21  * service it is (e.g., Java 6 annotation processors use their class
22  * object as a factory; Java 5 processors have an explicit factory
23  * object.)
24  * @since 3.3
25  * @see AnnotationProcessorFactoryLoader
26  */

27 public interface IServiceFactory {
28     
29     Object JavaDoc newInstance() throws CoreException;
30 }
31
Popular Tags