Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.geronimo.gbean.runtime
Class RawInvoker  view RawInvoker download RawInvoker.java

java.lang.Object
  extended byorg.apache.geronimo.gbean.runtime.RawInvoker

public final class RawInvoker
extends java.lang.Object

The raw invoker provides a raw (fast) access invoke operations, get attribute values, and set attribute values on a GBean. This class should only be use by GBean proxy generators or carefully crafted container code, because this class maintains a hard reference to a gbeanInstance which has a huge potential for memory leaks. USE WITH CAUTION

Version:
$Rev: 106610 $ $Date: 2004-11-25 13:40:42 -0800 (Thu, 25 Nov 2004) $

Field Summary
private  java.util.Map attributeIndex
           
private  GBeanInstance gbeanInstance
           
private  java.util.Map operationIndex
           
 
Constructor Summary
RawInvoker(GBeanInstance gbean)
           
 
Method Summary
 java.lang.Object getAttribute(int index)
           
 java.util.Map getAttributeIndex()
           
 java.util.Map getOperationIndex()
           
 java.lang.Object invoke(int index, java.lang.Object[] args)
           
 void setAttribute(int index, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gbeanInstance

private final GBeanInstance gbeanInstance

attributeIndex

private final java.util.Map attributeIndex

operationIndex

private final java.util.Map operationIndex
Constructor Detail

RawInvoker

public RawInvoker(GBeanInstance gbean)
Method Detail

getAttributeIndex

public java.util.Map getAttributeIndex()

getOperationIndex

public java.util.Map getOperationIndex()

getAttribute

public java.lang.Object getAttribute(int index)
                              throws java.lang.Exception

setAttribute

public void setAttribute(int index,
                         java.lang.Object value)
                  throws java.lang.Exception

invoke

public java.lang.Object invoke(int index,
                               java.lang.Object[] args)
                        throws java.lang.Exception