public class ServletContextBeanArchiveHandler extends Object implements BeanArchiveHandler
For WEB-INF/classes, ServletContext#getResourcePaths(String) is used. For libraries, only war protocol is supported.
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DOT |
protected ServletContext |
servletContext |
protected static String |
SLASH |
| Constructor and Description |
|---|
ServletContextBeanArchiveHandler(ServletContext servletContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(String rootPath,
String subpath,
BeanArchiveBuilder builder) |
BeanArchiveBuilder |
handle(String path)
The returned builder must only contain a complete set of found classes, other properties do not have to be set.
|
protected static final String SLASH
protected static final String DOT
protected final ServletContext servletContext
public ServletContextBeanArchiveHandler(ServletContext servletContext)
servletContext - public BeanArchiveBuilder handle(String path)
BeanArchiveHandlerhandle in interface BeanArchiveHandlerpath - A reference to a bean archive (e.g. file path)null if the reference cannot be handledprotected void add(String rootPath, String subpath, BeanArchiveBuilder builder)
Copyright © 2016. All Rights Reserved.