Java Doc for InternalContextAdapterImpl.java in  » Template-Engine » Velocity » org » apache » velocity » context » 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 » Template Engine » Velocity » org.apache.velocity.context 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.velocity.context.InternalContextAdapterImpl

InternalContextAdapterImpl
final public class InternalContextAdapterImpl implements InternalContextAdapter(Code)
This adapter class is the container for all context types for internal use. The AST now uses this class rather than the app-level Context interface to allow flexibility in the future. Currently, we have two context interfaces which must be supported :
  • Context : used for application/template data access
  • InternalHousekeepingContext : used for internal housekeeping and caching
  • InternalWrapperContext : used for getting root cache context and other such.
  • InternalEventContext : for event handling.
This class implements the two interfaces to ensure that all methods are supported. When adding to the interfaces, or adding more context functionality, the interface is the primary definition, so alter that first and then all classes as necessary. As of this writing, this would be the only class affected by changes to InternalContext This class ensures that an InternalContextBase is available for internal use. If an application constructs their own Context-implementing object w/o subclassing AbstractContext, it may be that support for InternalContext is not available. Therefore, InternalContextAdapter will create an InternalContextBase if necessary for this support. Note that if this is necessary, internal information such as node-cache data will be lost from use to use of the context. This may or may not be important, depending upon application.
author:
   Geir Magnusson Jr.
version:
   $Id: InternalContextAdapterImpl.java 471908 2006-11-06 22:39:28Z henning $


Field Summary
 Contextcontext
    
 InternalHousekeepingContexticb
     the ICB we are wrapping.
 InternalEventContextiec
     The InternalEventContext that we are wrapping.

Constructor Summary
public  InternalContextAdapterImpl(Context c)
     CTOR takes a Context and wraps it, delegating all 'data' calls to it.

Method Summary
public  EventCartridgeattachEventCartridge(EventCartridge ec)
    
public  booleancontainsKey(Object key)
    
public  Objectget(String key)
    
public  booleangetAllowRendering()
    
public  InternalContextAdaptergetBaseContext()
     Returns the base context that we are wrapping.
public  ResourcegetCurrentResource()
    
public  StringgetCurrentTemplateName()
    
public  EventCartridgegetEventCartridge()
    
public  ContextgetInternalUserContext()
    
public  Object[]getKeys()
    
public  Object[]getTemplateNameStack()
    
public  IntrospectionCacheDataicacheGet(Object key)
    
public  voidicachePut(Object key, IntrospectionCacheData o)
    
public  ObjectlocalPut(String key, Object value)
    
public  voidpopCurrentTemplateName()
    
public  voidpushCurrentTemplateName(String s)
    
public  Objectput(String key, Object value)
    
public  Objectremove(Object key)
    
public  voidsetAllowRendering(boolean v)
    
public  voidsetCurrentResource(Resource r)
    

Field Detail
context
Context context(Code)
the user data Context that we are wrapping



icb
InternalHousekeepingContext icb(Code)
the ICB we are wrapping. We may need to make one if the user data context implementation doesn't support one. The default AbstractContext-derived VelocityContext does, and it's recommended that people derive new contexts from AbstractContext rather than piecing things together



iec
InternalEventContext iec(Code)
The InternalEventContext that we are wrapping. If the context passed to us doesn't support it, no biggie. We don't make it for them - since its a user context thing, nothing gained by making one for them now




Constructor Detail
InternalContextAdapterImpl
public InternalContextAdapterImpl(Context c)(Code)
CTOR takes a Context and wraps it, delegating all 'data' calls to it. For support of internal contexts, it will create an InternalContextBase if need be.
Parameters:
  c -




Method Detail
attachEventCartridge
public EventCartridge attachEventCartridge(EventCartridge ec)(Code)

See Also:   org.apache.velocity.context.InternalEventContext.attachEventCartridge(org.apache.velocity.app.event.EventCartridge)



containsKey
public boolean containsKey(Object key)(Code)

See Also:   org.apache.velocity.context.Context.containsKey(java.lang.Object)



get
public Object get(String key)(Code)

See Also:   org.apache.velocity.context.Context.get(java.lang.String)



getAllowRendering
public boolean getAllowRendering()(Code)

See Also:   org.apache.velocity.context.InternalHousekeepingContext.getAllowRendering



getBaseContext
public InternalContextAdapter getBaseContext()(Code)
Returns the base context that we are wrapping. Here, its this, but for other thing like VM related context contortions, it can be something else The base context.



getCurrentResource
public Resource getCurrentResource()(Code)

See Also:   org.apache.velocity.context.InternalHousekeepingContext.getCurrentResource



getCurrentTemplateName
public String getCurrentTemplateName()(Code)

See Also:   org.apache.velocity.context.InternalHousekeepingContext.getCurrentTemplateName



getEventCartridge
public EventCartridge getEventCartridge()(Code)

See Also:   org.apache.velocity.context.InternalEventContext.getEventCartridge



getInternalUserContext
public Context getInternalUserContext()(Code)
returns the user data context that we are wrapping The internal user data context.



getKeys
public Object[] getKeys()(Code)

See Also:   org.apache.velocity.context.Context.getKeys



getTemplateNameStack
public Object[] getTemplateNameStack()(Code)

See Also:   org.apache.velocity.context.InternalHousekeepingContext.getTemplateNameStack



icacheGet
public IntrospectionCacheData icacheGet(Object key)(Code)

See Also:   org.apache.velocity.context.InternalHousekeepingContext.icacheGet(java.lang.Object)



icachePut
public void icachePut(Object key, IntrospectionCacheData o)(Code)

See Also:   org.apache.velocity.context.InternalHousekeepingContext.icachePut(java.lang.Objectorg.apache.velocity.util.introspection.IntrospectionCacheData)



localPut
public Object localPut(String key, Object value)(Code)

See Also:   InternalWrapperContext.localPut(StringObject)



popCurrentTemplateName
public void popCurrentTemplateName()(Code)

See Also:   org.apache.velocity.context.InternalHousekeepingContext.popCurrentTemplateName



pushCurrentTemplateName
public void pushCurrentTemplateName(String s)(Code)

See Also:   org.apache.velocity.context.InternalHousekeepingContext.pushCurrentTemplateName(java.lang.String)



put
public Object put(String key, Object value)(Code)

See Also:   org.apache.velocity.context.Context.put(java.lang.Stringjava.lang.Object)



remove
public Object remove(Object key)(Code)

See Also:   org.apache.velocity.context.Context.remove(java.lang.Object)



setAllowRendering
public void setAllowRendering(boolean v)(Code)

See Also:   org.apache.velocity.context.InternalHousekeepingContext.setAllowRendering(boolean)



setCurrentResource
public void setCurrentResource(Resource r)(Code)

See Also:   org.apache.velocity.context.InternalHousekeepingContext.setCurrentResource(org.apache.velocity.runtime.resource.Resource)



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.