1 package org.codehaus.xfire.aegis.mapping;
2
3 import java.util.Collection;
4
5 import org.codehaus.xfire.aegis.type.Type;
6 import org.dom4j.QName;
7
8 /***
9 * Registers Aegis types with a QName. The namespace of the QName
10 * will be something like the default namespace of your service or the
11 * SOAP envelope namespace.
12 *
13 * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
14 */
15 public interface TypeRegistry
16 {
17 final public static String ROLE = TypeRegistry.class.getName();
18
19 public void register(QName typeQ, Class typeClass);
20
21 public Class getTypeClass(QName typeQ);
22
23 public Type createType(QName typeQ);
24
25 public Class unregisterType(QName typeQ);
26
27 public Collection getAllTypes();
28 }