org.apache.commons.betwixt.registry
Interface PolymorphicReferenceResolver

All Known Implementing Classes:
DefaultXMLBeanInfoRegistry

public interface PolymorphicReferenceResolver

Resolves polymorphic references.

A polymorphic reference is an element whose name and type resolution are postponed till bind-time. When the xml is read, the type can then resolved from by calling resolveType(org.apache.commons.betwixt.io.read.ElementMapping, org.apache.commons.betwixt.io.read.ReadContext).

Since:
0.7
Author:
Apache Commons Team

Method Summary
 java.lang.Class resolveType(ElementMapping mapping, ReadContext context)
          Resolves the bind-time type of a polymorphic element.
 

Method Detail

resolveType

java.lang.Class resolveType(ElementMapping mapping,
                            ReadContext context)
Resolves the bind-time type of a polymorphic element.

Parameters:
mapping - ElementMapping describing the (polymorphic) element being mapped, not null
context - ReadContext, not null
Returns:
the Class describing the type to which this element should be bound, or null if the reference cannot be resolved


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.