Java Doc for InvokeStaticTag.java in  » Library » Apache-commons-jelly-1.0-src » org » apache » commons » jelly » tags » 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 » Library » Apache commons jelly 1.0 src » org.apache.commons.jelly.tags.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.jelly.TagSupport
      org.apache.commons.jelly.tags.core.InvokeStaticTag

InvokeStaticTag
public class InvokeStaticTag extends TagSupport implements ArgTagParent(Code)
A Tag which can invoke a static method on a class, without an instance of the class being needed.

Like the InvokeTag , this tag can take a set of arguments using the ArgTag .

The following attributes are required:

  • var - The variable to assign the return of the method call to
  • method - The name of the static method to invoke
  • className - The name of the class containing the static method


author:
   InvokeStaticTag()
    

Method Summary
public  voidaddArgument(Class type, Object value)
    
protected  JellyTagExceptioncreateLoadClassFailedException(Exception e)
    
public  voiddoTag(XMLOutput output)
    
protected  ClassloadClass()
    
public  voidsetClassName(String className)
    
public  voidsetExceptionVar(String var)
    
public  voidsetMethod(String methodName)
    
public  voidsetVar(String var)
    


Constructor Detail
InvokeStaticTag
public InvokeStaticTag()(Code)




Method Detail
addArgument
public void addArgument(Class type, Object value)(Code)
Adds an argument to supply to the method
Parameters:
  type - The Class type of the argument
Parameters:
  value - The value of the argument



createLoadClassFailedException
protected JellyTagException createLoadClassFailedException(Exception e)(Code)
Factory method to create a new JellyTagException instance from a given failure exception
Parameters:
  e - is the exception which occurred attempting to load the class JellyTagException



doTag
public void doTag(XMLOutput output) throws JellyTagException(Code)



loadClass
protected Class loadClass() throws ClassNotFoundException(Code)
Loads the class using either the class loader which loaded me or the current threads context class loader



setClassName
public void setClassName(String className)(Code)
Sets the fully qualified class name containing the static method
Parameters:
  className - The name of the class



setExceptionVar
public void setExceptionVar(String var)(Code)
Sets the name of a variable that exports the exception thrown by the method's invocation (if any)



setMethod
public void setMethod(String methodName)(Code)
Sets the name of the method to invoke
Parameters:
  method - The method name



setVar
public void setVar(String var)(Code)
Sets the name of the variable exported by this tag
Parameters:
  var - The variable name



Fields inherited from org.apache.commons.jelly.TagSupport
protected Script body(Code)(Java Doc)
protected JellyContext context(Code)(Java Doc)
protected boolean hasTrimmed(Code)(Java Doc)
protected Tag parent(Code)(Java Doc)
protected Boolean shouldTrim(Code)(Java Doc)

Methods inherited from org.apache.commons.jelly.TagSupport
public static Tag findAncestorWithClass(Tag from, Class tagClass)(Code)(Java Doc)
public static Tag findAncestorWithClass(Tag from, Collection tagClasses)(Code)(Java Doc)
public static Tag findAncestorWithClass(Tag from, Class[] tagClasses)(Code)(Java Doc)
protected Tag findAncestorWithClass(Class parentClass)(Code)(Java Doc)
protected Tag findAncestorWithClass(Class[] parentClasses)(Code)(Java Doc)
protected Tag findAncestorWithClass(Collection parentClasses)(Code)(Java Doc)
public Script getBody()(Code)(Java Doc)
protected String getBodyText() throws JellyTagException(Code)(Java Doc)
protected String getBodyText(boolean shouldEscape) throws JellyTagException(Code)(Java Doc)
public JellyContext getContext()(Code)(Java Doc)
public Tag getParent()(Code)(Java Doc)
public void invokeBody(XMLOutput output) throws JellyTagException(Code)(Java Doc)
public boolean isEscapeText()(Code)(Java Doc)
public boolean isTrim()(Code)(Java Doc)
public void setBody(Script body)(Code)(Java Doc)
public void setContext(JellyContext context) throws JellyTagException(Code)(Java Doc)
public void setEscapeText(boolean escapeText)(Code)(Java Doc)
public void setParent(Tag parent)(Code)(Java Doc)
public void setTrim(boolean shouldTrim)(Code)(Java Doc)
protected void trimBody()(Code)(Java Doc)

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.