1 22 package org.jboss.joinpoint.plugins; 23 24 import org.jboss.joinpoint.spi.FieldGetJoinpoint; 25 import org.jboss.reflect.spi.FieldInfo; 26 27 32 public class BasicFieldGetJoinPoint extends BasicTargettedJoinPoint implements FieldGetJoinpoint 33 { 34 35 protected FieldInfo fieldInfo; 36 37 42 public BasicFieldGetJoinPoint(FieldInfo fieldInfo) 43 { 44 this.fieldInfo = fieldInfo; 45 } 46 47 public FieldInfo getFieldInfo() 48 { 49 return fieldInfo; 50 } 51 52 public Object dispatch() throws Throwable 53 { 54 return fieldInfo.get(target); 55 } 56 57 public String toHumanReadableString() 58 { 59 return "GET " + fieldInfo.toString(); 60 } 61 } 62 | Popular Tags |