KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > metadata > generator > CodeGenerator


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

12 package com.versant.core.metadata.generator;
13
14 /**
15  * Manages generation of code for all layers. Components register code
16  * for classes during startup and the code generator uses
17  * these to generate the final State and OID (and in future other)
18  * classes.
19  */

20 public interface CodeGenerator {
21
22     /**
23      * Add a code provider to the cls. Typically one or more interfaces
24      * will be supplied and the codeProvider supplies the implementations
25      * of the methods and declarations for fields.
26      */

27     public void addCodeSpecification(Class JavaDoc cls, Class JavaDoc[] interfacesToAdd,
28             String JavaDoc javaCode);
29
30 }
31
32
Popular Tags