Package org.jboss.weld.environment.util
Class BeanArchives
- java.lang.Object
-
- org.jboss.weld.environment.util.BeanArchives
-
public final class BeanArchives extends Object
- Author:
- Martin Kouba
-
-
Field Summary
Fields Modifier and Type Field Description static StringBEAN_ARCHIVE_ID_BASE_DELIMITER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
BEAN_ARCHIVE_ID_BASE_DELIMITER
public static final String BEAN_ARCHIVE_ID_BASE_DELIMITER
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public static String extractBeanArchiveId(String beanArchiveRef, String base, String separator)
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
-
-