1 26 package org.objectweb.util.explorer.property.lib; 27 28 import org.objectweb.util.explorer.api.Context; 29 import org.objectweb.util.explorer.core.code.api.CodeDescription; 30 import org.objectweb.util.explorer.core.common.api.Description; 31 32 40 public class WrapperProperty 41 extends AbstractProperty 42 { 43 44 50 56 62 68 71 public void feed(String propertyType, Object key, Description value) { 72 CodeDescription codeDesc = (CodeDescription)value; 73 if(getCodeProvider().getCode(codeDesc).isInstanceOf(Context.class)){ 74 properties_.put(key,value); 75 } else { 76 getTrace().warn(codeDesc.getCode() + " is not assignable from Context!"); 77 } 78 } 79 80 86 89 public Description getPropertyDescription(String propertyType, Object key) { 90 return (Description)properties_.get(key); 91 } 92 93 } 94 95 96 | Popular Tags |