Class FileSystemBeanArchiveHandler
- java.lang.Object
-
- org.jboss.weld.environment.deployment.discovery.FileSystemBeanArchiveHandler
-
- All Implemented Interfaces:
BeanArchiveHandler
- Direct Known Subclasses:
JandexFileSystemBeanArchiveHandler
public class FileSystemBeanArchiveHandler extends Object implements BeanArchiveHandler
Handles JAR files and directories.- Author:
- Pete Muir, Marko Luksa, Martin Kouba
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceFileSystemBeanArchiveHandler.EntryAn abstraction of a bean archive entry.
-
Field Summary
Fields Modifier and Type Field Description static StringCLASS_FILE_EXTENSION
-
Constructor Summary
Constructors Constructor Description FileSystemBeanArchiveHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadd(FileSystemBeanArchiveHandler.Entry entry, BeanArchiveBuilder builder)BeanArchiveBuilderhandle(String path)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 Detail
-
CLASS_FILE_EXTENSION
public static final String CLASS_FILE_EXTENSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
handle
public BeanArchiveBuilder handle(String path)
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
protected void handleFile(File file, BeanArchiveBuilder builder) throws IOException
- 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
-
-