1 10 11 package org.mule.umo; 12 13 import org.mule.impl.RequestContext; 14 15 19 public class Invocation 21 { 22 23 private final UMOImmutableDescriptor descriptor; 25 26 27 private final Invocation invocation; 29 30 31 private UMOMessage message; 33 34 41 public Invocation(UMOImmutableDescriptor descriptor, UMOMessage message, Invocation invocation) 42 { 43 this.descriptor = descriptor; 44 this.message = message; 45 this.invocation = invocation; 46 } 47 48 54 public UMOMessage execute() throws UMOException 55 { 56 return invocation.execute(); 57 } 58 59 64 public UMOImmutableDescriptor getDescriptor() 65 { 66 return descriptor; 67 } 68 69 public UMOEvent getEvent() 70 { 71 return RequestContext.getEvent(); 72 } 73 74 79 public UMOMessage getMessage() 80 { 81 synchronized (this) 82 { 83 return message; 84 } 85 } 86 87 public void setMessage(UMOMessage message) 88 { 89 synchronized (this) 90 { 91 this.message = message; 92 } 93 } 94 95 } 96 | Popular Tags |