public class DefaultBeanArchiveService extends Object implements BeanArchiveService
BeanArchiveService.BeanArchiveInformation, BeanArchiveService.BeanDiscoveryMode| Constructor and Description |
|---|
DefaultBeanArchiveService() |
| Modifier and Type | Method and Description |
|---|---|
protected DefaultBeanArchiveInformation |
createBeanArchiveInformation(String bdaUrl)
This method exists for extensibility reasons.
|
BeanArchiveService.BeanArchiveInformation |
getBeanArchiveInformation(URL beanArchiveUrl) |
protected Element |
getBeansRootElement(InputStream xmlStream)
Gets the root element of the parsed document.
|
Set<URL> |
getRegisteredBeanArchives() |
protected String |
getTrimmedAttribute(Element element,
String attributeName) |
protected BeanArchiveService.BeanArchiveInformation |
readBeansXml(InputStream xmlStreamIn,
String beansXmlLocation)
Read the information from the given beans.xml and fill it into a
BeanArchiveInformation instance.
|
void |
release() |
protected String |
stripProtocol(String urlPath)
Get rid of any protocol header from the url externalForm
|
public BeanArchiveService.BeanArchiveInformation getBeanArchiveInformation(URL beanArchiveUrl)
getBeanArchiveInformation in interface BeanArchiveServicepublic Set<URL> getRegisteredBeanArchives()
getRegisteredBeanArchives in interface BeanArchiveServiceprotected DefaultBeanArchiveInformation createBeanArchiveInformation(String bdaUrl)
protected String stripProtocol(String urlPath)
urlPath - protected BeanArchiveService.BeanArchiveInformation readBeansXml(InputStream xmlStreamIn, String beansXmlLocation) throws IOException
IOExceptionpublic void release()
release in interface BeanArchiveServiceprotected Element getBeansRootElement(InputStream xmlStream) throws WebBeansException
xmlStream - parsed documentWebBeansException - if any runtime exception occursCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.