org.kuali.rice.ken.util
Class CompoundEntityResolver

java.lang.Object
  extended by org.kuali.rice.ken.util.CompoundEntityResolver
All Implemented Interfaces:
EntityResolver

public class CompoundEntityResolver
extends Object
implements EntityResolver

EntityResolver implementation that delegates in sequence to a list of EntityResolvers, returning the first match.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
private static org.apache.log4j.Logger LOG
           
private  List<EntityResolver> resolvers
           
 
Constructor Summary
CompoundEntityResolver(EntityResolver first, EntityResolver second)
          Constructs a CompoundEntityResolver.java.
CompoundEntityResolver(List<EntityResolver> resolvers)
          Constructs a CompoundEntityResolver.java.
 
Method Summary
 InputSource resolveEntity(String publicId, String systemId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG

resolvers

private final List<EntityResolver> resolvers
Constructor Detail

CompoundEntityResolver

public CompoundEntityResolver(EntityResolver first,
                              EntityResolver second)
Constructs a CompoundEntityResolver.java.

Parameters:
first -
second -

CompoundEntityResolver

public CompoundEntityResolver(List<EntityResolver> resolvers)
Constructs a CompoundEntityResolver.java.

Parameters:
resolvers -
Method Detail

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException,
                                 IOException
Specified by:
resolveEntity in interface EntityResolver
Throws:
SAXException
IOException
See Also:
EntityResolver.resolveEntity(java.lang.String, java.lang.String)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.