Java Doc for Invocation.java in  » EJB-Server-JBoss-4.2.1 » server » org » jboss » invocation » 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 » EJB Server JBoss 4.2.1 » server » org.jboss.invocation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jboss.invocation.Invocation

All known Subclasses:   org.jboss.invocation.LocalEJBInvocation,  org.jboss.invocation.MarshalledInvocation,
Invocation
public class Invocation (Code)
The Invocation object is the generic object flowing through our interceptors.

The heart of it is the payload map that can contain anything we then put readers on them. The first reader is this Invocation object that can interpret the data in it.

Essentially we can carry ANYTHING from the client to the server, we keep a series of of predifined variables and method calls to get at the pointers. But really it is just a repository of objects.
author:
   Marc Fleury
author:
   Christoph G. Jung
version:
   $Revision: 57209 $



Field Summary
final public static  String[]INVOKE_SIGNATURE
    
public  Object[]args
    
public  Mapas_is_payload
    
public  InvocationContextinvocationContext
    
public  InvocationTypeinvocationType
    
public  Methodmethod
    
public  ObjectobjectName
    
public  Mappayload
     Payload will be marshalled for type hiding at the RMI layers.
public  Maptransient_payload
     Contextual information to the invocation that is not part of the payload.

Constructor Summary
public  Invocation()
     No-args constructor exposed for externalization only.
public  Invocation(Object id, Method m, Object[] args, Transaction tx, Principal identity, Object credential)
    

Method Summary
public  Object[]getArguments()
    
public  MapgetAsIsPayload()
    
public  ObjectgetAsIsValue(Object key)
    
public  ObjectgetCredential()
    
public  ObjectgetEnterpriseContext()
    
public  ObjectgetId()
    
public  InvocationContextgetInvocationContext()
    
public  MethodgetMethod()
     get on method Return the invocation method.
public  ObjectgetObjectName()
    
public  MapgetPayload()
    
public  ObjectgetPayloadValue(Object key)
    
public  PrincipalgetPrincipal()
    
public  TransactiongetTransaction()
     get the transaction.
public  MapgetTransientPayload()
    
public  ObjectgetTransientValue(Object key)
    
public  InvocationTypegetType()
    
public  ObjectgetValue(Object key)
     Get a value from the stores.
public  booleanisLocal()
    
public  ObjectperformCall(Object instance, Method m, Object[] arguments)
     This method will be called by the container(ContainerInterceptor) to issue the ultimate method call represented by this invocation.
public  voidsetArguments(Object[] arguments)
     A list of arguments for the method.
public  voidsetCredential(Object credential)
     Change the security credentials of this invocation.
public  voidsetEnterpriseContext(Object ctx)
    
public  voidsetId(Object id)
     Return the invocation target ID.
public  voidsetInvocationContext(InvocationContext ctx)
    
public  voidsetMethod(Method method)
     set on method Return the invocation method.
public  voidsetObjectName(Object objectName)
     container for server side association.
public  voidsetPrincipal(Principal principal)
     Change the security identity of this invocation.
public  voidsetTransaction(Transaction tx)
     set the transaction.
public  voidsetType(InvocationType type)
     An arbitrary type.
public  voidsetValue(Object key, Object value)
     The generic store of variables.

The generic getter and setter is really all that one needs to talk to this object.

public  voidsetValue(Object key, Object value, PayloadKey type)
     Advanced store Here you can pass a TYPE that indicates where to put the value.

Field Detail
INVOKE_SIGNATURE
final public static String[] INVOKE_SIGNATURE(Code)
The signature of the invoke() method



args
public Object[] args(Code)



as_is_payload
public Map as_is_payload(Code)
as_is classes that will not be marshalled by the invocation (java.* and javax.* or anything in system classpath is OK)



invocationContext
public InvocationContext invocationContext(Code)



invocationType
public InvocationType invocationType(Code)



method
public Method method(Code)



objectName
public Object objectName(Code)



payload
public Map payload(Code)
Payload will be marshalled for type hiding at the RMI layers.



transient_payload
public Map transient_payload(Code)
Contextual information to the invocation that is not part of the payload.




Constructor Detail
Invocation
public Invocation()(Code)
No-args constructor exposed for externalization only.



Invocation
public Invocation(Object id, Method m, Object[] args, Transaction tx, Principal identity, Object credential)(Code)




Method Detail
getArguments
public Object[] getArguments()(Code)



getAsIsPayload
public Map getAsIsPayload()(Code)



getAsIsValue
public Object getAsIsValue(Object key)(Code)



getCredential
public Object getCredential()(Code)



getEnterpriseContext
public Object getEnterpriseContext()(Code)



getId
public Object getId()(Code)



getInvocationContext
public InvocationContext getInvocationContext()(Code)
marcf: SCOTT WARNING! I removed the "setPrincipal" that was called here



getMethod
public Method getMethod()(Code)
get on method Return the invocation method.



getObjectName
public Object getObjectName()(Code)



getPayload
public Map getPayload()(Code)



getPayloadValue
public Object getPayloadValue(Object key)(Code)



getPrincipal
public Principal getPrincipal()(Code)



getTransaction
public Transaction getTransaction()(Code)
get the transaction.



getTransientPayload
public Map getTransientPayload()(Code)



getTransientValue
public Object getTransientValue(Object key)(Code)



getType
public InvocationType getType()(Code)



getValue
public Object getValue(Object key)(Code)
Get a value from the stores.



isLocal
public boolean isLocal()(Code)
Helper method to determine whether an invocation is local true when local, false otherwise



performCall
public Object performCall(Object instance, Method m, Object[] arguments) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, Exception(Code)
This method will be called by the container(ContainerInterceptor) to issue the ultimate method call represented by this invocation. It is overwritten, e.g., by the WS4EE invocation in order to realize JAXRPC pre- and postprocessing.



setArguments
public void setArguments(Object[] arguments)(Code)
A list of arguments for the method.



setCredential
public void setCredential(Object credential)(Code)
Change the security credentials of this invocation.



setEnterpriseContext
public void setEnterpriseContext(Object ctx)(Code)



setId
public void setId(Object id)(Code)
Return the invocation target ID. Can be used to identify a cached object



setInvocationContext
public void setInvocationContext(InvocationContext ctx)(Code)



setMethod
public void setMethod(Method method)(Code)
set on method Return the invocation method.



setObjectName
public void setObjectName(Object objectName)(Code)
container for server side association.



setPrincipal
public void setPrincipal(Principal principal)(Code)
Change the security identity of this invocation.



setTransaction
public void setTransaction(Transaction tx)(Code)
set the transaction.



setType
public void setType(InvocationType type)(Code)
An arbitrary type.



setValue
public void setValue(Object key, Object value)(Code)
The generic store of variables.

The generic getter and setter is really all that one needs to talk to this object. We introduce typed getters and setters for convenience and code readability in the codeba




setValue
public void setValue(Object key, Object value, PayloadKey type)(Code)
Advanced store Here you can pass a TYPE that indicates where to put the value. TRANSIENT: the value is put in a map that WON'T be passed AS_IS: no need to marshall the value when passed (use for all JDK java types) PAYLOAD: we need to marshall the value as its type is application specific



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.