org.jboss.webbeans.context.beanstore
Interface BeanStoreNamingScheme

All Known Implementing Classes:
PrefixBeanStoreNamingScheme

public interface BeanStoreNamingScheme

Interface against a BeanStore to handle different naming schemes

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
 

Method Detail

acceptKey

boolean acceptKey(java.lang.String key)
Checks if a key is handled by the bean store

Parameters:
key - The key to match
Returns:
True if match, false otherwise

getContextualKey

java.lang.String getContextualKey(Contextual<?> contextual)
Gets a bean store key for a contextual

Parameters:
contextual - The contextual to make the key for
Returns:
A map key

getBeanIndexFromKey

int getBeanIndexFromKey(java.lang.String key)
Gets a bean index key from a key

Parameters:
key - The key to parse
Returns:
The bean index


Copyright © 2011. All Rights Reserved.