1 26 package org.objectweb.util.explorer.property.lib; 27 28 import org.objectweb.util.explorer.api.RootContext; 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 RootProperty 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(RootContext.class)){ 74 properties_.put(key,value); 75 } else { 76 getTrace().warn(codeDesc.getCode() + " is not assignable from RootContext!"); 77 } 78 } 79 80 86 89 public Description getPropertyDescription(String propertyType, Object key) { 90 return (Description)properties_.get(key); 91 } 92 93 } 94 | Popular Tags |