1 19 27 28 package org.netbeans.modules.websvc.api.jaxws.project.config; 29 30 import java.io.IOException ; 31 import java.io.InputStream ; 32 import org.openide.filesystems.FileObject; 33 34 38 public class HandlerChainsProvider { 39 40 private static HandlerChainsProvider provider; 41 42 43 private HandlerChainsProvider() { 44 } 45 46 public static synchronized HandlerChainsProvider getDefault() { 47 if (provider==null) { 48 provider = new HandlerChainsProvider(); 49 } 50 return provider; 51 } 52 53 public HandlerChains getHandlerChains(InputStream is) throws IOException { 54 org.netbeans.modules.websvc.jaxwsmodel.handler_config1_0.HandlerChains impl = 55 org.netbeans.modules.websvc.jaxwsmodel.handler_config1_0.HandlerChains.createGraph(is); 56 return (impl==null?null:new HandlerChains(impl)); 57 } 58 59 public HandlerChains getHandlerChains(FileObject fo) throws IOException { 60 org.netbeans.modules.websvc.jaxwsmodel.handler_config1_0.HandlerChains impl = 61 org.netbeans.modules.websvc.jaxwsmodel.handler_config1_0.HandlerChains.createGraph(fo.getInputStream()); 62 return (impl==null?null:new HandlerChains(impl)); 63 } 64 } 65 | Popular Tags |