Class FileSystemBeanArchiveHandler
java.lang.Object
org.jboss.weld.environment.deployment.discovery.FileSystemBeanArchiveHandler
- All Implemented Interfaces:
BeanArchiveHandler
- Direct Known Subclasses:
JandexFileSystemBeanArchiveHandler
Handles JAR files and directories.
- Author:
- Pete Muir, Marko Luksa, Martin Kouba
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
An abstraction of a bean archive entry. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
add
(FileSystemBeanArchiveHandler.Entry entry, BeanArchiveBuilder builder) The returned builder must only contain a complete set of found classes, other properties do not have to be set.protected void
handleDirectory
(org.jboss.weld.environment.deployment.discovery.FileSystemBeanArchiveHandler.DirectoryEntry entry, BeanArchiveBuilder builder) protected void
handleFile
(File file, BeanArchiveBuilder builder) protected void
handleNestedFile
(String path, File file, BeanArchiveBuilder builder)
-
Field Details
-
CLASS_FILE_EXTENSION
- See Also:
-
-
Constructor Details
-
FileSystemBeanArchiveHandler
public FileSystemBeanArchiveHandler()
-
-
Method Details
-
handle
Description copied from interface:BeanArchiveHandler
The returned builder must only contain a complete set of found classes, other properties do not have to be set.- Specified by:
handle
in interfaceBeanArchiveHandler
- Parameters:
path
- A reference to a bean archive (e.g. file path)- Returns:
- the BeanArchiveBuilder or
null
if the reference cannot be handled
-
handleFile
- Throws:
IOException
-
handleDirectory
protected void handleDirectory(org.jboss.weld.environment.deployment.discovery.FileSystemBeanArchiveHandler.DirectoryEntry entry, BeanArchiveBuilder builder) throws IOException - Throws:
IOException
-
handleNestedFile
protected void handleNestedFile(String path, File file, BeanArchiveBuilder builder) throws IOException - Throws:
IOException
-
add
protected void add(FileSystemBeanArchiveHandler.Entry entry, BeanArchiveBuilder builder) throws MalformedURLException - Throws:
MalformedURLException
-