com.ca.jcs.cfg
Class CustomServerContextFactory

java.lang.Object
  extended by org.apache.directory.server.core.jndi.AbstractContextFactory
      extended by org.apache.directory.server.core.jndi.CoreContextFactory
          extended by org.apache.directory.server.jndi.ServerContextFactory
              extended by com.ca.jcs.cfg.CustomServerContextFactory
All Implemented Interfaces:
InitialContextFactory, DirectoryServiceListener, org.springframework.context.ApplicationContextAware

public class CustomServerContextFactory
extends org.apache.directory.server.jndi.ServerContextFactory
implements org.springframework.context.ApplicationContextAware

Server context factory that overrides the ApacheDS factory to provide Spring shutdown handling.

Author:
fittr01

Field Summary
 
Fields inherited from class org.apache.directory.server.jndi.ServerContextFactory
tcpAcceptor, threadGroup, threadModel, threadPoolExecutor, udpAcceptor
 
Constructor Summary
CustomServerContextFactory()
           
 
Method Summary
 void afterShutdown(DirectoryService service)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class org.apache.directory.server.jndi.ServerContextFactory
afterStartup, beforeStartup
 
Methods inherited from class org.apache.directory.server.core.jndi.CoreContextFactory
afterSync, beforeShutdown, beforeSync
 
Methods inherited from class org.apache.directory.server.core.jndi.AbstractContextFactory
getAuthentication, getCredential, getInitialContext, getPrincipal, getProviderUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.naming.spi.InitialContextFactory
getInitialContext
 

Constructor Detail

CustomServerContextFactory

public CustomServerContextFactory()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

afterShutdown

public void afterShutdown(DirectoryService service)
Specified by:
afterShutdown in interface DirectoryServiceListener
Overrides:
afterShutdown in class org.apache.directory.server.jndi.ServerContextFactory


Created 2011-07-14 13:27 EST