1 10 11 package org.mule.providers.gs.filters; 12 13 import java.lang.reflect.InvocationTargetException ; 14 15 import net.jini.core.entry.Entry; 16 17 import org.mule.providers.gs.JiniMessage; 18 import org.mule.umo.UMOMessage; 19 20 23 public class PojoTypeTemplateFilter implements JavaSpaceFilter 24 { 25 private String expectedType; 26 27 public Entry getEntry() 28 throws IllegalAccessException , NoSuchMethodException , InvocationTargetException , 29 InstantiationException , ClassNotFoundException 30 { 31 if (expectedType == null) 32 { 33 return null; 34 } 35 36 JiniMessage entry = new JiniMessage(); 37 entry.setPayloadType(expectedType); 38 return entry; 39 } 40 41 47 public boolean accept(UMOMessage message) 48 { 49 return true; 50 } 51 52 public String getExpectedType() 53 { 54 return expectedType; 55 } 56 57 public void setExpectedType(String expectedType) 58 { 59 this.expectedType = expectedType; 60 } 61 62 } 63 | Popular Tags |