Class CdiArchive
- java.lang.Object
-
- org.apache.webbeans.corespi.scanner.xbean.CdiArchive
-
- All Implemented Interfaces:
Iterable<org.apache.xbean.finder.archive.Archive.Entry>,org.apache.xbean.finder.archive.Archive
public class CdiArchive extends Object implements org.apache.xbean.finder.archive.Archive
this delegate pattern is interesting because we will be able to add some exclusion config through it using Filter + FilterArchive
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCdiArchive.FoundClasses
-
Constructor Summary
Constructors Constructor Description CdiArchive(org.apache.webbeans.spi.BeanArchiveService beanArchiveService, ClassLoader loader, Map<String,URL> urls, org.apache.xbean.finder.filter.Filter userFilter, org.apache.xbean.finder.archive.Archive customArchive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,CdiArchive.FoundClasses>classesByUrl()InputStreamgetBytecode(String className)Iterator<org.apache.xbean.finder.archive.Archive.Entry>iterator()Class<?>loadClass(String className)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
CdiArchive
public CdiArchive(org.apache.webbeans.spi.BeanArchiveService beanArchiveService, ClassLoader loader, Map<String,URL> urls, org.apache.xbean.finder.filter.Filter userFilter, org.apache.xbean.finder.archive.Archive customArchive)
-
-
Method Detail
-
classesByUrl
public Map<String,CdiArchive.FoundClasses> classesByUrl()
-
getBytecode
public InputStream getBytecode(String className) throws IOException, ClassNotFoundException
- Specified by:
getBytecodein interfaceorg.apache.xbean.finder.archive.Archive- Throws:
IOExceptionClassNotFoundException
-
loadClass
public Class<?> loadClass(String className) throws ClassNotFoundException
- Specified by:
loadClassin interfaceorg.apache.xbean.finder.archive.Archive- Throws:
ClassNotFoundException
-
-