org.ow2.jonas.ejb.easybeans
Class PrefixedNamingStrategy

java.lang.Object
  extended by org.ow2.jonas.ejb.easybeans.PrefixedNamingStrategy
All Implemented Interfaces:
org.ow2.easybeans.api.naming.EZBNamingStrategy

public class PrefixedNamingStrategy
extends Object
implements org.ow2.easybeans.api.naming.EZBNamingStrategy

JNDI naming strategy with prefixes. In this strategy, the JNDI name is rewritten by adding a prefix in front of it.

Author:
S. Ali Tokmen

Constructor Summary
PrefixedNamingStrategy(String prefix, org.ow2.easybeans.api.naming.EZBNamingStrategy oldNamingStrategy)
          Saves the arguments.
 
Method Summary
 String getJNDIName(org.ow2.easybeans.api.bean.info.EZBBeanNamingInfo info)
          Returns the prefixed JNDI name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefixedNamingStrategy

public PrefixedNamingStrategy(String prefix,
                              org.ow2.easybeans.api.naming.EZBNamingStrategy oldNamingStrategy)
Saves the arguments.

Parameters:
prefix - JNDI prefix.
oldNamingStrategy - Old naming strategy.
Method Detail

getJNDIName

public String getJNDIName(org.ow2.easybeans.api.bean.info.EZBBeanNamingInfo info)
Returns the prefixed JNDI name.

Specified by:
getJNDIName in interface org.ow2.easybeans.api.naming.EZBNamingStrategy
Parameters:
info - Bean naming information.
Returns:
Prefixed JNDI name.


Copyright © 2010 OW2 Consortium. All Rights Reserved.