Java Doc for NamingContextListener.java in  » Sevlet-Container » tomcat-catalina » org » apache » catalina » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Sevlet Container » tomcat catalina » org.apache.catalina.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.catalina.core.NamingContextListener

NamingContextListener
public class NamingContextListener implements LifecycleListener,ContainerListener,PropertyChangeListener(Code)
Helper class used to initialize and populate the JNDI context associated with each context and server.
author:
   Remy Maucherat
version:
   $Revision: 1.6 $ $Date: 2004/02/27 14:58:42 $


Field Summary
protected  javax.naming.ContextcompCtx
     Comp context.
protected  Objectcontainer
     Associated container.
protected  intdebug
     Debugging level.
protected  javax.naming.ContextenvCtx
     Env context.
protected  booleaninitialized
     Initialized flag.
protected  Stringname
     Name of the associated naming context.
protected  NamingContextnamingContext
     Associated JNDI context.
protected  NamingResourcesnamingResources
     Associated naming resources.
protected static  StringManagersm
     The string manager for this package.

Constructor Summary
public  NamingContextListener()
     Create a new naming context listener.

Method Summary
public  voidaddEjb(ContextEjb ejb)
     Set the specified EJBs in the naming context.
public  voidaddEnvironment(ContextEnvironment env)
     Set the specified environment entries in the naming context.
public  voidaddLocalEjb(ContextLocalEjb localEjb)
     Set the specified local EJBs in the naming context.
public  voidaddResource(ContextResource resource)
     Set the specified resources in the naming context.
public  voidaddResourceEnvRef(String name, String type)
     Set the specified resources in the naming context.
public  voidaddResourceLink(ContextResourceLink resourceLink)
     Set the specified resource link in the naming context.
public  voidcontainerEvent(ContainerEvent event)
     Acknowledge the occurrence of the specified event.
public  intgetDebug()
     Return the "debug" property.
public  StringgetName()
     Return the "name" property.
public  NamingContextgetNamingContext()
     Return the associated naming context.
public  voidlifecycleEvent(LifecycleEvent event)
     Acknowledge the occurrence of the specified event.
protected  voidlog(String message)
     Log the specified message to our current Logger (if any).
protected  voidlog(String message, Throwable throwable)
     Log the specified message and exception to our current Logger (if any).
protected  StringlogName()
    
public  voidpropertyChange(PropertyChangeEvent event)
     Process property change events.
public  voidremoveEjb(String name)
     Set the specified EJBs in the naming context.
public  voidremoveEnvironment(String name)
     Set the specified environment entries in the naming context.
public  voidremoveLocalEjb(String name)
     Set the specified local EJBs in the naming context.
public  voidremoveResource(String name)
     Set the specified resources in the naming context.
public  voidremoveResourceEnvRef(String name)
     Set the specified resources in the naming context.
public  voidremoveResourceLink(String name)
     Set the specified resources in the naming context.
public  voidsetDebug(int debug)
     Set the "debug" property.
public  voidsetName(String name)
     Set the "name" property.

Field Detail
compCtx
protected javax.naming.Context compCtx(Code)
Comp context.



container
protected Object container(Code)
Associated container.



debug
protected int debug(Code)
Debugging level.



envCtx
protected javax.naming.Context envCtx(Code)
Env context.



initialized
protected boolean initialized(Code)
Initialized flag.



name
protected String name(Code)
Name of the associated naming context.



namingContext
protected NamingContext namingContext(Code)
Associated JNDI context.



namingResources
protected NamingResources namingResources(Code)
Associated naming resources.



sm
protected static StringManager sm(Code)
The string manager for this package.




Constructor Detail
NamingContextListener
public NamingContextListener()(Code)
Create a new naming context listener.




Method Detail
addEjb
public void addEjb(ContextEjb ejb)(Code)
Set the specified EJBs in the naming context.



addEnvironment
public void addEnvironment(ContextEnvironment env)(Code)
Set the specified environment entries in the naming context.



addLocalEjb
public void addLocalEjb(ContextLocalEjb localEjb)(Code)
Set the specified local EJBs in the naming context.



addResource
public void addResource(ContextResource resource)(Code)
Set the specified resources in the naming context.



addResourceEnvRef
public void addResourceEnvRef(String name, String type)(Code)
Set the specified resources in the naming context.



addResourceLink
public void addResourceLink(ContextResourceLink resourceLink)(Code)
Set the specified resource link in the naming context.



containerEvent
public void containerEvent(ContainerEvent event)(Code)
Acknowledge the occurrence of the specified event. Note: Will never be called when the listener is associated to a Server, since it is not a Container.
Parameters:
  event - ContainerEvent that has occurred



getDebug
public int getDebug()(Code)
Return the "debug" property.



getName
public String getName()(Code)
Return the "name" property.



getNamingContext
public NamingContext getNamingContext()(Code)
Return the associated naming context.



lifecycleEvent
public void lifecycleEvent(LifecycleEvent event)(Code)
Acknowledge the occurrence of the specified event.
Parameters:
  event - LifecycleEvent that has occurred



log
protected void log(String message)(Code)
Log the specified message to our current Logger (if any).
Parameters:
  message - Message to be logged



log
protected void log(String message, Throwable throwable)(Code)
Log the specified message and exception to our current Logger (if any).
Parameters:
  message - Message to be logged
Parameters:
  throwable - Related exception



logName
protected String logName()(Code)
Return the abbreviated name of this container for logging messsages



propertyChange
public void propertyChange(PropertyChangeEvent event)(Code)
Process property change events. Currently, only listens to such events on the NamingResources instance for the global naming resources.
Parameters:
  event - The property change event that has occurred



removeEjb
public void removeEjb(String name)(Code)
Set the specified EJBs in the naming context.



removeEnvironment
public void removeEnvironment(String name)(Code)
Set the specified environment entries in the naming context.



removeLocalEjb
public void removeLocalEjb(String name)(Code)
Set the specified local EJBs in the naming context.



removeResource
public void removeResource(String name)(Code)
Set the specified resources in the naming context.



removeResourceEnvRef
public void removeResourceEnvRef(String name)(Code)
Set the specified resources in the naming context.



removeResourceLink
public void removeResourceLink(String name)(Code)
Set the specified resources in the naming context.



setDebug
public void setDebug(int debug)(Code)
Set the "debug" property.
Parameters:
  debug - The new debug level



setName
public void setName(String name)(Code)
Set the "name" property.
Parameters:
  name - The new name



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.