Oracle® Globalization Development Kit Java API Reference
10g Release 1(10.1)

B10971-01

oracle.i18n.servlet.listener
Class ContextListener

java.lang.Object
  |
  +--oracle.i18n.servlet.listener.ContextListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class ContextListener
extends Object
implements javax.servlet.ServletContextListener

ContextListener is the default context listener class that instantiates an ApplicationContext object.

This class is called at the start up of JSP/Java Servlet applications that only require any of the following LocaleSource to determine the locale:

If the application incorporates database user schema containing a locale preference, a custom ContextListener should be used.

Since:
10.1.1

Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
          Terminates ApplicationContext context object
 void contextInitialized(javax.servlet.ServletContextEvent event)
          Intializes ApplicationContext context object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)
Intializes ApplicationContext context object

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
Parameters:
event - a servlet event object
Throws:
IllegalArgumentException - if ApplicationContext is not instantiated.

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)
Terminates ApplicationContext context object

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
Parameters:
event - a servlet event object

Oracle® Globalization Development Kit Java API Reference
10g Release 1(10.1)

B10971-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.