com.ca.commons.jndi.beans
Class MappingDummyDirContextFactory

java.lang.Object
  extended by com.ca.commons.jndi.beans.ResilientDirContextFactory
      extended by com.ca.commons.jndi.beans.MappingDummyDirContextFactory
All Implemented Interfaces:
DirContextFactory, InvocationHandler

public class MappingDummyDirContextFactory
extends ResilientDirContextFactory

Created by IntelliJ IDEA. User: yaoxi01 Date: Dec 9, 2009 Time: 2:03:11 PM


Field Summary
static Logger logger
           
 
Fields inherited from class com.ca.commons.jndi.beans.ResilientDirContextFactory
defaultPort, delay, jndiEnv, LOGGER, realCtx
 
Constructor Summary
MappingDummyDirContextFactory()
           
MappingDummyDirContextFactory(int defaultPort)
           
 
Method Summary
 Attributes getAttrs()
           
 DirContextFactory getOrgContextFactory()
           
 boolean isNice2Nasty()
           
 void setAttributes(Attributes attrs)
           
 void setNice2Nasty(boolean nice2Nasty)
           
 void setOrgContextFactory(DirContextFactory orgContextFactory)
           
 void setTargetObjectDn(String dn)
           
protected  void testContexts()
          Step through all hosts from most preferred to least, setting realCtx to first host that can be contacted.
 
Methods inherited from class com.ca.commons.jndi.beans.ResilientDirContextFactory
close, doInvoke, getContext, getFailoverList, getJNDIEnv, getRetries, getRetryDelay, invoke, returnContext, setFailoverList, setJNDIEnv, setRetries, setRetryDelay, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

public static final Logger logger
Constructor Detail

MappingDummyDirContextFactory

public MappingDummyDirContextFactory(int defaultPort)

MappingDummyDirContextFactory

public MappingDummyDirContextFactory()
Method Detail

setTargetObjectDn

public void setTargetObjectDn(String dn)

isNice2Nasty

public boolean isNice2Nasty()

setNice2Nasty

public void setNice2Nasty(boolean nice2Nasty)

getAttrs

public Attributes getAttrs()

setAttributes

public void setAttributes(Attributes attrs)

testContexts

protected void testContexts()
                     throws NamingException
Description copied from class: ResilientDirContextFactory
Step through all hosts from most preferred to least, setting realCtx to first host that can be contacted.

Overrides:
testContexts in class ResilientDirContextFactory
Throws:
NamingException

setOrgContextFactory

public void setOrgContextFactory(DirContextFactory orgContextFactory)

getOrgContextFactory

public DirContextFactory getOrgContextFactory()


Created 2011-07-14 13:27 EST