Package org.jboss.weld.context.beanstore
Class ForwardingNamingScheme
- java.lang.Object
-
- org.jboss.weld.context.beanstore.ForwardingNamingScheme
-
- All Implemented Interfaces:
NamingScheme
public abstract class ForwardingNamingScheme extends Object implements NamingScheme
-
-
Constructor Summary
Constructors Constructor Description ForwardingNamingScheme()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanaccept(String id)Determine if this identifier has been prefixedprotected abstract NamingSchemedelegate()org.jboss.weld.serialization.spi.BeanIdentifierdeprefix(String id)Remove the prefix from the idCollection<org.jboss.weld.serialization.spi.BeanIdentifier>deprefix(Collection<String> ids)booleanequals(Object obj)Collection<String>filterIds(Iterator<String> ids)Filter ids and retain only those correctly prefixed.inthashCode()Collection<String>prefix(Collection<org.jboss.weld.serialization.spi.BeanIdentifier> ids)Stringprefix(org.jboss.weld.serialization.spi.BeanIdentifier id)Add the prefix to the idStringtoString()
-
-
-
Method Detail
-
delegate
protected abstract NamingScheme delegate()
-
accept
public boolean accept(String id)
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
public org.jboss.weld.serialization.spi.BeanIdentifier deprefix(String id)
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
public String prefix(org.jboss.weld.serialization.spi.BeanIdentifier id)
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
public Collection<String> filterIds(Iterator<String> ids)
Description copied from interface:NamingSchemeFilter ids and retain only those correctly prefixed.- Specified by:
filterIdsin interfaceNamingScheme- Parameters:
ids- the identifiers to filter
-
deprefix
public Collection<org.jboss.weld.serialization.spi.BeanIdentifier> deprefix(Collection<String> ids)
- Specified by:
deprefixin interfaceNamingScheme
-
prefix
public Collection<String> prefix(Collection<org.jboss.weld.serialization.spi.BeanIdentifier> ids)
- Specified by:
prefixin interfaceNamingScheme
-
-