Package org.jboss.weld.environment.util
Class BeanArchives
java.lang.Object
org.jboss.weld.environment.util.BeanArchives
- Author:
- Martin Kouba
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractBeanArchiveId(String beanArchiveRef, String base, String separator) Takes the#getBeanArchiveRef()value and extracts the bean archive id.static <B extends org.jboss.weld.bootstrap.spi.BeanDeploymentArchive>
Multimap<String,org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> findBeanClassesDeployedInMultipleBeanArchives(Set<B> beanArchives)
-
Field Details
-
BEAN_ARCHIVE_ID_BASE_DELIMITER
- See Also:
-
-
Method Details
-
findBeanClassesDeployedInMultipleBeanArchives
public static <B extends org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> Multimap<String,org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> findBeanClassesDeployedInMultipleBeanArchives(Set<B> beanArchives) - Parameters:
beanArchives-- Returns:
- a
Multimapthat maps problematic bean class to the set of bean archives where it is deployed
-
extractBeanArchiveId
Takes the#getBeanArchiveRef()value and extracts the bean archive id.- First, the windows file separators found in beanArchiveRef are converted to slashes
basevalue is appendedBEAN_ARCHIVE_ID_BASE_DELIMITERis appended- If the
beanArchiveRefcontains the separator, the substring (beginning at the separator index) is appended - Otherwise, the whole
beanArchiveRefvalue is appended
- Parameters:
beanArchiveRef-base-separator-- Returns:
- the extracted bean archive id
-