1 28 29 package org.objectweb.util.explorer.property.lib; 30 31 import org.objectweb.fractal.api.NoSuchInterfaceException; 32 import org.objectweb.util.explorer.core.common.api.Description; 33 import org.objectweb.util.explorer.core.common.lib.BindingFeature; 34 import org.objectweb.util.explorer.property.api.PropertyFeeder; 35 36 44 public class PropertyFeederDispatcher 45 extends BindingFeature 46 implements PropertyFeeder 47 { 48 49 55 61 67 73 protected PropertyFeeder getExplorerPropertyFeeder(String itfSuffixeName){ 74 try { 75 return (PropertyFeeder)lookupFc(PropertyFeeder.PROPERTY_FEEDER + "-collection-" + itfSuffixeName); 76 } catch (NoSuchInterfaceException e) { 77 getTrace().info(PropertyFeeder.PROPERTY_FEEDER + "-collection-" + itfSuffixeName + ": interface not found!"); 78 return null; 79 } 80 81 } 82 83 89 92 public String [] clientFc() { 93 return new String []{PropertyFeeder.PROPERTY_FEEDER + "-collection"}; 94 } 95 96 102 105 public void feed(String propertyType, Object key, Description value) { 106 PropertyFeeder propertyFeeder = getExplorerPropertyFeeder(propertyType); 107 if(propertyFeeder!=null){ 108 propertyFeeder.feed(propertyType, key, value); 109 } 110 } 111 112 } 113 114 115 | Popular Tags |