Package org.apache.openjpa.lib.meta
Class ClasspathMetaDataIterator
- java.lang.Object
-
- org.apache.openjpa.lib.meta.MetaDataIteratorChain
-
- org.apache.openjpa.lib.meta.ClasspathMetaDataIterator
-
- All Implemented Interfaces:
MetaDataIterator
,Closeable
public class ClasspathMetaDataIterator extends MetaDataIteratorChain
Iterator over directories in the classpath.- Author:
- Abe White
-
-
Constructor Summary
Constructors Constructor Description ClasspathMetaDataIterator()
Default constructor; iterates over all classpath elements.ClasspathMetaDataIterator(java.lang.String[] dirs, MetaDataFilter filter)
Constructor; supply the classpath directories to scan and an optional resource filter.
-
Method Summary
-
Methods inherited from class org.apache.openjpa.lib.meta.MetaDataIteratorChain
addIterator, close, getFile, getInputStream, hasNext, next
-
-
-
-
Constructor Detail
-
ClasspathMetaDataIterator
public ClasspathMetaDataIterator() throws java.io.IOException
Default constructor; iterates over all classpath elements.- Throws:
java.io.IOException
-
ClasspathMetaDataIterator
public ClasspathMetaDataIterator(java.lang.String[] dirs, MetaDataFilter filter) throws java.io.IOException
Constructor; supply the classpath directories to scan and an optional resource filter. The given directories may be null to scan all classpath directories.- Throws:
java.io.IOException
-
-