org.jboss.webbeans.context.beanstore
Class PrefixBeanStoreNamingScheme
java.lang.Object
org.jboss.webbeans.context.beanstore.PrefixBeanStoreNamingScheme
- All Implemented Interfaces:
- BeanStoreNamingScheme
public class PrefixBeanStoreNamingScheme
- extends java.lang.Object
- implements BeanStoreNamingScheme
Simple prefix-based implementation of a bean store naming scheme
- Author:
- Nicklas Karlsson
Method Summary |
boolean |
acceptKey(java.lang.String key)
Checks if a key is handled by the bean store |
int |
getBeanIndexFromKey(java.lang.String key)
Gets a bean index key from a key |
java.lang.String |
getContextualKey(Contextual<?> contextual)
Gets a bean store key for a contextual |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prefix
public java.lang.String prefix
delimeter
public java.lang.String delimeter
PrefixBeanStoreNamingScheme
public PrefixBeanStoreNamingScheme(java.lang.String prefix,
java.lang.String delimeter)
acceptKey
public boolean acceptKey(java.lang.String key)
- Description copied from interface:
BeanStoreNamingScheme
- Checks if a key is handled by the bean store
- Specified by:
acceptKey
in interface BeanStoreNamingScheme
- Parameters:
key
- The key to match
- Returns:
- True if match, false otherwise
getBeanIndexFromKey
public int getBeanIndexFromKey(java.lang.String key)
- Description copied from interface:
BeanStoreNamingScheme
- Gets a bean index key from a key
- Specified by:
getBeanIndexFromKey
in interface BeanStoreNamingScheme
- Parameters:
key
- The key to parse
- Returns:
- The bean index
getContextualKey
public java.lang.String getContextualKey(Contextual<?> contextual)
- Description copied from interface:
BeanStoreNamingScheme
- Gets a bean store key for a contextual
- Specified by:
getContextualKey
in interface BeanStoreNamingScheme
- Parameters:
contextual
- The contextual to make the key for
- Returns:
- A map key
Copyright © 2011. All Rights Reserved.