1 26 package org.objectweb.util.explorer.property.lib; 27 28 import org.objectweb.fractal.api.NoSuchInterfaceException; 29 import org.objectweb.util.explorer.core.common.api.Description; 30 import org.objectweb.util.explorer.core.common.lib.BindingFeature; 31 import org.objectweb.util.explorer.property.api.PropertyProvider; 32 33 41 public class PropertyProviderDispatcher 42 extends BindingFeature 43 implements PropertyProvider 44 { 45 46 52 58 64 70 protected PropertyProvider getPropertyProvider(String itfSuffixe){ 71 try { 72 return (PropertyProvider)lookupFc(PropertyProvider.PROPERTY_PROVIDER+"-collection-" + itfSuffixe); 73 } catch (NoSuchInterfaceException e) { 74 getTrace().info(PropertyProvider.PROPERTY_PROVIDER+"-collection-" + itfSuffixe + ": interface not found!"); 75 return null; 76 } 77 } 78 79 85 88 public String [] clientFc() { 89 return new String []{PropertyProvider.PROPERTY_PROVIDER+"-collection"}; 90 } 91 92 98 101 public Description getPropertyDescription(String propertyType, Object key) { 102 PropertyProvider propertyProvider = getPropertyProvider(propertyType); 103 if (propertyProvider!=null) 104 return propertyProvider.getPropertyDescription(propertyType,key); 105 return null; 106 } 107 108 } 109 110 111 | Popular Tags |