1 17 package org.apache.geronimo.gbean.runtime; 18 19 import java.util.Map ; 20 21 29 public final class RawInvoker { 30 private final GBeanInstance gbeanInstance; 31 private final Map attributeIndex; 32 private final Map operationIndex; 33 34 public RawInvoker(GBeanInstance gbean) { 35 this.gbeanInstance = gbean; 36 attributeIndex = gbean.getAttributeIndex(); 37 operationIndex = gbean.getOperationIndex(); 38 } 39 40 public Map getAttributeIndex() { 41 return attributeIndex; 42 } 43 44 public Map getOperationIndex() { 45 return operationIndex; 46 } 47 48 public Object getAttribute(final int index) throws Exception { 49 return gbeanInstance.getAttribute(index); 50 } 51 52 public void setAttribute(final int index, final Object value) throws Exception { 53 gbeanInstance.setAttribute(index, value); 54 } 55 56 public Object invoke(final int index, final Object [] args) throws Exception { 57 return gbeanInstance.invoke(index, args); 58 } 59 } 60 | Popular Tags |