public abstract class AbstractNamingScheme extends Object implements NamingScheme
| Constructor and Description |
|---|
AbstractNamingScheme(String delimiter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(String id)
Determine if this identifier has been prefixed
|
Collection<org.jboss.weld.serialization.spi.BeanIdentifier> |
deprefix(Collection<String> ids) |
org.jboss.weld.serialization.spi.BeanIdentifier |
deprefix(String id)
Remove the prefix from the id
|
Collection<String> |
filterIds(Iterator<String> iterator)
Filter ids and retain only those correctly prefixed.
|
protected String |
getDelimiter() |
protected abstract String |
getPrefix() |
String |
prefix(org.jboss.weld.serialization.spi.BeanIdentifier id)
Add the prefix to the id
|
Collection<String> |
prefix(Collection<org.jboss.weld.serialization.spi.BeanIdentifier> ids) |
public AbstractNamingScheme(String delimiter)
delimiter - The delimiter to use between the prefix and the identifier.public boolean accept(String id)
NamingSchemeaccept in interface NamingSchemeid - the id to checkpublic org.jboss.weld.serialization.spi.BeanIdentifier deprefix(String id)
NamingSchemedeprefix in interface NamingSchemeid - the prefixed idpublic String prefix(org.jboss.weld.serialization.spi.BeanIdentifier id)
NamingSchemeprefix in interface NamingSchemeid - the id to prefixpublic Collection<String> filterIds(Iterator<String> iterator)
NamingSchemefilterIds in interface NamingSchemeiterator - the identifiers to filterpublic Collection<org.jboss.weld.serialization.spi.BeanIdentifier> deprefix(Collection<String> ids)
deprefix in interface NamingSchemepublic Collection<String> prefix(Collection<org.jboss.weld.serialization.spi.BeanIdentifier> ids)
prefix in interface NamingSchemeprotected abstract String getPrefix()
protected String getDelimiter()
Copyright © 2017. All rights reserved.