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
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceAn abstraction of a bean archive entry. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadd(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 voidhandleDirectory(org.jboss.weld.environment.deployment.discovery.FileSystemBeanArchiveHandler.DirectoryEntry entry, BeanArchiveBuilder builder) protected voidhandleFile(File file, BeanArchiveBuilder builder) protected voidhandleNestedFile(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:BeanArchiveHandlerThe returned builder must only contain a complete set of found classes, other properties do not have to be set.- Specified by:
handlein interfaceBeanArchiveHandler- Parameters:
path- A reference to a bean archive (e.g. file path)- Returns:
- the BeanArchiveBuilder or
nullif 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
-