org.jboss.weld.context.beanstore
Class ForwardingNamingScheme

java.lang.Object
  extended by org.jboss.weld.context.beanstore.ForwardingNamingScheme
All Implemented Interfaces:
NamingScheme

public abstract class ForwardingNamingScheme
extends Object
implements NamingScheme


Constructor Summary
ForwardingNamingScheme()
           
 
Method Summary
 boolean accept(String id)
          Determine if this identifier has been prefixed
protected abstract  NamingScheme delegate()
           
 Collection<String> deprefix(Collection<String> ids)
           
 String deprefix(String id)
          Remove the prefix from the id
 boolean equals(Object obj)
           
 Collection<String> filterIds(Collection<String> ids)
          Filter a collection of ids, retaining only those correctly prefixed.
 int hashCode()
           
 Collection<String> prefix(Collection<String> ids)
           
 String prefix(String id)
          Add the prefix to the id
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForwardingNamingScheme

public ForwardingNamingScheme()
Method Detail

delegate

protected abstract NamingScheme delegate()

accept

public boolean accept(String id)
Description copied from interface: NamingScheme
Determine if this identifier has been prefixed

Specified by:
accept in interface NamingScheme
Parameters:
id - the id to check
Returns:
true if it has been prefixed, false otherwise

deprefix

public String deprefix(String id)
Description copied from interface: NamingScheme
Remove the prefix from the id

Specified by:
deprefix in interface NamingScheme
Parameters:
id - the prefixed id
Returns:
the id without the prefix

prefix

public String prefix(String id)
Description copied from interface: NamingScheme
Add the prefix to the id

Specified by:
prefix in interface NamingScheme
Parameters:
id - the id to prefix
Returns:
the prefixed id

filterIds

public Collection<String> filterIds(Collection<String> ids)
Description copied from interface: NamingScheme
Filter a collection of ids, retaining only those correctly prefixed.

Specified by:
filterIds in interface NamingScheme
Parameters:
ids - the collection of ides to filter

deprefix

public Collection<String> deprefix(Collection<String> ids)
Specified by:
deprefix in interface NamingScheme

prefix

public Collection<String> prefix(Collection<String> ids)
Specified by:
prefix in interface NamingScheme

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Seam Framework. All Rights Reserved.