1 26 package org.objectweb.util.explorer.interpreter.lib; 27 28 import org.objectweb.fractal.api.NoSuchInterfaceException; 29 import org.objectweb.util.explorer.core.code.api.CodeProvider; 30 import org.objectweb.util.explorer.core.common.api.Description; 31 import org.objectweb.util.explorer.core.common.lib.BindingFeature; 32 import org.objectweb.util.explorer.interpreter.api.DescriptionInterpreter; 33 34 42 public abstract class AbstractDescriptionInterpreter 43 extends BindingFeature 44 implements DescriptionInterpreter 45 { 46 47 53 59 65 protected CodeProvider getCodeProvider(){ 66 try { 67 return (CodeProvider)lookupFc(CodeProvider.CODE_PROVIDER); 68 } catch (NoSuchInterfaceException e) { 69 getTrace().warn(CodeProvider.CODE_PROVIDER + ": interface not found!"); 70 return null; 71 } 72 } 73 74 80 83 public String [] clientFc() { 84 return new String []{CodeProvider.CODE_PROVIDER}; 85 } 86 87 93 96 public abstract Object interprete(Description description, Object params); 97 98 } 99 | Popular Tags |