net.dpml.metro.builder
Class ComponentTypeDecoder
java.lang.Object
net.dpml.metro.builder.ComponentTypeDecoder
- public final class ComponentTypeDecoder
- extends Object
Component type decoder.
- Version:
- 1.0.1
- Author:
- Digital Product Meta Library
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentTypeDecoder
public ComponentTypeDecoder()
loadType
public Type loadType(Class subject,
Resolver resolver)
throws IOException,
IntrospectionException
- Load a type.
- Parameters:
subject
- the component implementation classresolver
- build-time value resolver
- Returns:
- the component type descriptor
- Throws:
IOException
- if an error occurs reading the type definition
IntrospectionException
- if an introspection error occurs
loadType
public Type loadType(URI uri,
Resolver resolver)
throws IOException
- Load a type.
- Parameters:
uri
- the component type source uriresolver
- build-time uri resolver
- Returns:
- the component type descriptor
- Throws:
IOException
- if an error occurs reading the type definition