1 28 29 package org.objectweb.util.explorer.parser.lib; 30 31 import org.objectweb.fractal.api.NoSuchInterfaceException; 32 import org.objectweb.util.explorer.core.common.lib.BindingFeature; 33 import org.objectweb.util.explorer.explorerConfig.beans.ExplorerBean; 34 import org.objectweb.util.explorer.parser.api.ExplorerParser; 35 36 44 public class ExplorerParserDispatcher 45 extends BindingFeature 46 implements ExplorerParser 47 { 48 49 55 61 67 73 76 public String [] clientFc() { 77 return new String []{ExplorerParser.EXPLORER_PARSER}; 78 } 79 80 86 89 public void parseExplorer(ExplorerBean explorer) { 90 String [] clientIftNames = listFc(); 91 for (int i = 0; i < clientIftNames.length; i++) { 92 if(clientIftNames[i].startsWith(ExplorerParser.EXPLORER_PARSER)){ 93 try { 94 ((ExplorerParser)lookupFc(clientIftNames[i])).parseExplorer(explorer); 95 } catch (NoSuchInterfaceException e) { 96 e.printStackTrace(); 97 } 98 } 99 } 100 } 101 102 } 103 | Popular Tags |