org.apache.jetspeed.security.spi.impl.ldap
Class LdapContextProxy

java.lang.Object
  extended by org.apache.jetspeed.security.spi.impl.ldap.LdapContextProxy
All Implemented Interfaces:
InvocationHandler

public class LdapContextProxy
extends Object
implements InvocationHandler

Proxy providing recoverable LdapContext connections.

Version:
$Id: LdapContextProxy.java 516448 2007-03-09 16:25:47Z ate $
Author:
Ate Douma

Field Summary
private  LdapContext ctx
           
private  Properties env
           
 
Constructor Summary
private LdapContextProxy(LdapBindingConfig ldapBindingConfig)
           
 
Method Summary
private  void closeCtx()
           
static LdapContext createProxy(LdapBindingConfig config)
           
private  LdapContext getCtx()
           
 Object invoke(Object proxy, Method m, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

env

private Properties env

ctx

private LdapContext ctx
Constructor Detail

LdapContextProxy

private LdapContextProxy(LdapBindingConfig ldapBindingConfig)
Method Detail

createProxy

public static LdapContext createProxy(LdapBindingConfig config)

getCtx

private LdapContext getCtx()
                    throws NamingException
Throws:
NamingException

closeCtx

private void closeCtx()

invoke

public Object invoke(Object proxy,
                     Method m,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.