/** * @param sd */ public LazyBindingBuilder(ServiceDeclaration sd) { super(); this.sd = sd; this.qname = ServiceDeclarationParser.getQName(sd.getAttributes().get("qname")); }
/** * @param sd */ public LazyImplementationBuilder(ServiceDeclaration sd) { super(); this.sd = sd; this.qname = ServiceDeclarationParser.getQName(sd.getAttributes().get("qname")); }
/** * @param sd */ public LazyBindingBuilder(ServiceDeclaration sd) { super(); this.sd = sd; this.qname = ServiceDeclarationParser.getQName(sd.getAttributes().get("qname")); }
/** * @param sd */ public LazyPolicyBuilder(ServiceDeclaration sd) { super(); this.sd = sd; this.qname = ServiceDeclarationParser.getQName(sd.getAttributes().get("qname")); }
/** * @param sd */ public LazyImplementationBuilder(ServiceDeclaration sd) { super(); this.sd = sd; this.qname = ServiceDeclarationParser.getQName(sd.getAttributes().get("qname")); }
/** * @param sd */ public LazyPolicyBuilder(ServiceDeclaration sd) { super(); this.sd = sd; this.qname = ServiceDeclarationParser.getQName(sd.getAttributes().get("qname")); }
private Object getAttribute(Method method) throws Exception { if (method.getParameterTypes().length != 0) { return null; } String name = method.getName(); if (name.equals("getModelType") && method.getReturnType() == Class.class) { return sd.loadClass(sd.getAttributes().get("model")); } else if (name.equals("getArtifactType")) { return ServiceDeclarationParser.getQName(sd.getAttributes().get("qname")); } return null; }
private Object getAttribute(Method method) throws Exception { if (method.getParameterTypes().length != 0) { return null; } String name = method.getName(); if (name.equals("getModelType") && method.getReturnType() == Class.class) { return sd.loadClass(sd.getAttributes().get("model")); } else if (name.equals("getArtifactType")) { return ServiceDeclarationParser.getQName(sd.getAttributes().get("qname")); } return null; }
protected QName getDefaultMappedBinding(Map<String, String> attributes) { QName defaultMappedBinding = null; if (attributes != null) { String qname = attributes.get("mappedBinding"); if (qname != null) { defaultMappedBinding = ServiceDeclarationParser.getQName(qname); } } if (defaultMappedBinding == null) { String qname = System.getProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding"); if (qname != null) { defaultMappedBinding = ServiceDeclarationParser.getQName(qname); } else { // By default, mapping to binding.ws or if thats not available then binding.rmi defaultMappedBinding = new QName(Base.SCA11_TUSCANY_NS, "binding.hazelcast"); if (!isBindingSupported(defaultMappedBinding)) { defaultMappedBinding = new QName(Base.SCA11_NS, "binding.ws"); if (!isBindingSupported(defaultMappedBinding)) { defaultMappedBinding = new QName(Base.SCA11_TUSCANY_NS, "binding.rmi"); } } } } return defaultMappedBinding; }
protected QName getDefaultMappedBinding(Map<String, String> attributes) { QName defaultMappedBinding = null; if (attributes != null) { String qname = attributes.get("mappedBinding"); if (qname != null) { defaultMappedBinding = ServiceDeclarationParser.getQName(qname); } } if (defaultMappedBinding == null) { String qname = System.getProperty("org.apache.tuscany.sca.binding.sca.provider.SCABindingMapper.mappedBinding"); if (qname != null) { defaultMappedBinding = ServiceDeclarationParser.getQName(qname); } else { // By default, mapping to binding.ws or if thats not available then binding.rmi defaultMappedBinding = new QName(Base.SCA11_TUSCANY_NS, "binding.hazelcast"); if (!isBindingSupported(defaultMappedBinding)) { defaultMappedBinding = new QName(Base.SCA11_NS, "binding.ws"); if (!isBindingSupported(defaultMappedBinding)) { defaultMappedBinding = new QName(Base.SCA11_TUSCANY_NS, "binding.rmi"); } } } } return defaultMappedBinding; }
QName artifactType = ServiceDeclarationParser.getQName(attributes.get("qname"));
QName artifactType = ServiceDeclarationParser.getQName(attributes.get("qname"));
QName artifactType = ServiceDeclarationParser.getQName(attributes.get("qname"));
QName artifactType = ServiceDeclarationParser.getQName(attributes.get("qname"));