JBoss MetaData Repository 2.2.0.SP1

org.jboss.metadata.spi.retrieval
Class RetrievalUtils

java.lang.Object
  extended by org.jboss.metadata.spi.retrieval.RetrievalUtils

public class RetrievalUtils
extends Object

Utilities for MDR metadata

Version:
$Revision: 1.1 $
Author:
Kabir Khan

Constructor Summary
RetrievalUtils()
           
 
Method Summary
static MetaData createCachedMetaData(MetaData metaData)
          Takes a MetaData and reworks the internal MetaDataContext to be caching.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetrievalUtils

public RetrievalUtils()
Method Detail

createCachedMetaData

public static MetaData createCachedMetaData(MetaData metaData)
Takes a MetaData and reworks the internal MetaDataContext to be caching. If the metadata structure cannot be determined, a warning is logged, but no error is thrown.

Parameters:
metaData - The meta data we want to cache
Returns:
a cached meta data, or the original parameter if adding caching was not possible
Throws:
IllegalArgumentException - if the metaData parameter is null

JBoss MetaData Repository 2.2.0.SP1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.