01: /*
02: * Copyright (c) 1998 - 2005 Versant Corporation
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: *
08: * Contributors:
09: * Versant Corporation - initial API and implementation
10: */
11: package com.versant.core.metadata.generator;
12:
13: /**
14: * Manages generation of code for all layers. Components register code
15: * for classes during startup and the code generator uses
16: * these to generate the final State and OID (and in future other)
17: * classes.
18: */
19: public interface CodeGenerator {
20:
21: /**
22: * Add a code provider to the cls. Typically one or more interfaces
23: * will be supplied and the codeProvider supplies the implementations
24: * of the methods and declarations for fields.
25: */
26: public void addCodeSpecification(Class cls,
27: Class[] interfacesToAdd, String javaCode);
28:
29: }
|