1 19 20 package org.netbeans.modules.websvc.wsitmodelext.security.proprietary; 21 22 import org.netbeans.modules.xml.wsdl.model.WSDLComponent; 23 import org.netbeans.modules.xml.wsdl.model.spi.ElementFactory; 24 import org.w3c.dom.Element ; 25 26 import javax.xml.namespace.QName ; 27 import java.util.Collections ; 28 import java.util.Set ; 29 import org.netbeans.modules.websvc.wsitmodelext.security.proprietary.impl.PreconfiguredSTSImpl; 30 31 public class ProprietaryTrustClientFactories { 32 33 public static class PreconfiguredSTSFactory extends ElementFactory { 34 @Override 35 public Set <QName > getElementQNames() { 36 return Collections.singleton(ProprietaryTrustClientQName.PRECONFIGUREDSTS.getQName()); 37 } 38 public <C extends WSDLComponent> C create(WSDLComponent context, Class <C> type) { 39 return type.cast(new PreconfiguredSTSImpl(context.getModel())); 40 } 41 @Override 42 public WSDLComponent create(WSDLComponent context, Element element) { 43 return new PreconfiguredSTSImpl(context.getModel(), element); 44 } 45 } 46 47 } 48 | Popular Tags |