Class AbstractNamingScheme
java.lang.Object
org.jboss.weld.contexts.beanstore.AbstractNamingScheme
- All Implemented Interfaces:
NamingScheme
- Direct Known Subclasses:
BeanIdentifierIndexNamingScheme,SimpleNamingScheme
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine if this identifier has been prefixedorg.jboss.weld.serialization.spi.BeanIdentifierRemove the prefix from the idCollection<org.jboss.weld.serialization.spi.BeanIdentifier>deprefix(Collection<String> ids) Filter ids and retain only those correctly prefixed.protected Stringprotected abstract Stringprefix(Collection<org.jboss.weld.serialization.spi.BeanIdentifier> ids) prefix(org.jboss.weld.serialization.spi.BeanIdentifier id) Add the prefix to the id
-
Constructor Details
-
AbstractNamingScheme
- Parameters:
delimiter- The delimiter to use between the prefix and the identifier.
-
-
Method Details
-
accept
Description copied from interface:NamingSchemeDetermine if this identifier has been prefixed- Specified by:
acceptin interfaceNamingScheme- Parameters:
id- the id to check- Returns:
- true if it has been prefixed, false otherwise
-
deprefix
Description copied from interface:NamingSchemeRemove the prefix from the id- Specified by:
deprefixin interfaceNamingScheme- Parameters:
id- the prefixed id- Returns:
- the id without the prefix
-
prefix
Description copied from interface:NamingSchemeAdd the prefix to the id- Specified by:
prefixin interfaceNamingScheme- Parameters:
id- the id to prefix- Returns:
- the prefixed id
-
filterIds
Description copied from interface:NamingSchemeFilter ids and retain only those correctly prefixed.- Specified by:
filterIdsin interfaceNamingScheme- Parameters:
iterator- the identifiers to filter
-
deprefix
- Specified by:
deprefixin interfaceNamingScheme
-
prefix
- Specified by:
prefixin interfaceNamingScheme
-
getPrefix
-
getDelimiter
-