net.dpml.metro.builder
Class ComponentTypeDecoder

java.lang.Object
  extended bynet.dpml.metro.builder.ComponentTypeDecoder

public final class ComponentTypeDecoder
extends Object

Component type decoder.

Version:
1.0.1
Author:
Digital Product Meta Library

Constructor Summary
ComponentTypeDecoder()
           
 
Method Summary
 Type loadType(Class subject, Resolver resolver)
          Load a type.
 Type loadType(URI uri, Resolver resolver)
          Load a type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentTypeDecoder

public ComponentTypeDecoder()
Method Detail

loadType

public Type loadType(Class subject,
                     Resolver resolver)
              throws IOException,
                     IntrospectionException
Load a type.

Parameters:
subject - the component implementation class
resolver - 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 uri
resolver - build-time uri resolver
Returns:
the component type descriptor
Throws:
IOException - if an error occurs reading the type definition