Java Doc for VMContext.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.VMContext

VMContext
public class VMContext implements InternalContextAdapter(Code)
This is a special, internal-use-only context implementation to be used for the new Velocimacro implementation. The main distinguishing feature is the management of the VMProxyArg objects in the put() and get() methods. Further, this context also supports the 'VM local context' mode, where any put() of references that aren't args to the VM are considered local to the vm, protecting the global context.
author:
   Geir Magnusson Jr.
version:
   $Id: VMContext.java 471908 2006-11-06 22:39:28Z henning $


Field Summary
 InternalContextAdapterinnerContext
     the base context store.
 HashMaplocalcontext
    
 HashMapvmproxyhash
    
 InternalContextAdapterwrappedContext
    

Constructor Summary
public  VMContext(InternalContextAdapter inner, RuntimeServices rsvc)
    

Method Summary
public  voidaddVMProxyArg(VMProxyArg vmpa)
     Used to put VMProxyArgs into this context.
public  EventCartridgeattachEventCartridge(EventCartridge ec)
    
public  booleancontainsKey(Object key)
    
public  Objectget(String key)
     Impl of the Context.gut() method.
public  booleangetAllowRendering()
    
public  InternalContextAdaptergetBaseContext()
    
public  ResourcegetCurrentResource()
    
public  StringgetCurrentTemplateName()
    
public  EventCartridgegetEventCartridge()
    
public  ContextgetInternalUserContext()
     Return the inner / user context.
public  Object[]getKeys()
    
public  Object[]getTemplateNameStack()
    
public  IntrospectionCacheDataicacheGet(Object key)
    
public  voidicachePut(Object key, IntrospectionCacheData o)
    
public  ObjectlocalPut(String key, Object value)
     Allows callers to explicitly put objects in the local context, no matter what the velocimacro.context.local setting says.
public  voidpopCurrentTemplateName()
    
public  voidpushCurrentTemplateName(String s)
    
public  Objectput(String key, Object value)
     Impl of the Context.put() method.
protected  Objectput(String key, Object value, boolean forceLocal)
     Internal put method to select between local and global scope.
Parameters:
  key - name of item to set
Parameters:
  value - object to set to key
Parameters:
  forceLocal - True forces the object into the local scope.
public  Objectremove(Object key)
    
public  voidsetAllowRendering(boolean v)
    
public  voidsetCurrentResource(Resource r)
    

Field Detail
innerContext
InternalContextAdapter innerContext(Code)
the base context store. This is the 'global' context



localcontext
HashMap localcontext(Code)
container for any local or constant VMProxy items



vmproxyhash
HashMap vmproxyhash(Code)
container for our VMProxy Objects



wrappedContext
InternalContextAdapter wrappedContext(Code)
context that we are wrapping




Constructor Detail
VMContext
public VMContext(InternalContextAdapter inner, RuntimeServices rsvc)(Code)
CTOR, wraps an ICA
Parameters:
  inner -
Parameters:
  rsvc -




Method Detail
addVMProxyArg
public void addVMProxyArg(VMProxyArg vmpa) throws MethodInvocationException(Code)
Used to put VMProxyArgs into this context. It separates the VMProxyArgs into constant and non-constant types pulling out the value of the constant types so they can be modified w/o damaging the VMProxyArg, and leaving the dynamic ones, as they modify context rather than their own state
Parameters:
  vmpa - VMProxyArg to add
throws:
  MethodInvocationException -



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)
Impl of the Context.gut() method.
Parameters:
  key - name of item to get stored object or null



getAllowRendering
public boolean getAllowRendering()(Code)

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



getBaseContext
public InternalContextAdapter getBaseContext()(Code)

See Also:   org.apache.velocity.context.InternalWrapperContext.getBaseContext



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)
Return the inner / user context. The inner / user 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)
Allows callers to explicitly put objects in the local context, no matter what the velocimacro.context.local setting says. Needed e.g. for loop variables in foreach.
Parameters:
  key - name of item to set.
Parameters:
  value - object to set to key. old stored object



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)
Impl of the Context.put() method.
Parameters:
  key - name of item to set
Parameters:
  value - object to set to key old stored object



put
protected Object put(String key, Object value, boolean forceLocal)(Code)
Internal put method to select between local and global scope.
Parameters:
  key - name of item to set
Parameters:
  value - object to set to key
Parameters:
  forceLocal - True forces the object into the local scope. old stored 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.