org.lsc.jndi
Class EmptyJndiDstService

java.lang.Object
  extended by org.lsc.jndi.AbstractSimpleJndiService
      extended by org.lsc.jndi.EmptyJndiDstService
All Implemented Interfaces:
IJndiDstService

public class EmptyJndiDstService
extends AbstractSimpleJndiService
implements IJndiDstService

This class is a generic implementation to simulate an empty destination directory.

Author:
Jonathan Clarke <jonathan@lsc-project.org>

Constructor Summary
EmptyJndiDstService(Properties props, String beanClassName)
          Constructor adapted to the context properties and the bean class name to instantiate.
 
Method Summary
 IBean getBean(Map.Entry<String,LscAttributes> id)
          The simple object getter according to its identifier.
 JndiServices getJndiServices()
          Destination LDAP Services getter.
 Map<String,LscAttributes> getListPivots()
          Get the identifiers list.
 
Methods inherited from class org.lsc.jndi.AbstractSimpleJndiService
get, getAttrs, getAttrsId, getBaseDn, getBeanFromSR, getFilterAll, getFilterId, getObjectFromSR
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyJndiDstService

public EmptyJndiDstService(Properties props,
                           String beanClassName)
Constructor adapted to the context properties and the bean class name to instantiate.

Parameters:
props - the properties used to identify the directory parameters and context
beanClassName - the bean class name that will be instantiated and feed up
Method Detail

getBean

public IBean getBean(Map.Entry<String,LscAttributes> id)
              throws NamingException
The simple object getter according to its identifier.

Specified by:
getBean in interface IJndiDstService
Parameters:
id - the data identifier in the directory - must return a unique directory entry
Returns:
Always returns null since this simulates an empty directory
Throws:
NamingException - thrown if an directory exception is encountered while getting the identified bean

getJndiServices

public final JndiServices getJndiServices()
Destination LDAP Services getter.

Specified by:
getJndiServices in class AbstractSimpleJndiService
Returns:
the Destination JndiServices object used to apply directory operations

getListPivots

public Map<String,LscAttributes> getListPivots()
                                        throws NamingException
Get the identifiers list.

Specified by:
getListPivots in interface IJndiDstService
Returns:
the string iterator
Throws:
NamingException - thrown if an directory exception is encountered while getting the identifiers list


Copyright © 2005-2010 LSC project. All Rights Reserved.