public String getMessage() { if (getLine() == -1) { return "The attribute " + name + " specified in " + getResourceURI() + " was not recognized."; } else { return "The attribute " + name + " specified in " + getResourceURI() + " at " + getLine() + "," + getColumn() + " was not recognized."; } }
public String getMessage() { if (cause != null) { return super.getMessage() + ". Original exception was: \n" + cause; } else { return super.getMessage(); } } }
public String getMessage() { String namespace = name.getNamespaceURI(); if (DeprecatedNamespaceHelper.isDeprecatedNamespace(namespace)) { if (getLine() == -1) { return "The element specified in " + getResourceURI() + " uses the deprecated namespace " + namespace + ". Please change it to " + org.fabric3.api.Namespaces.F3; } return "The element specified in " + getResourceURI() + " at " + getLine() + "," + getColumn() + " uses the deprecated namespace " + namespace + ". Please change it to " + org.fabric3.api.Namespaces.F3; } else { if (getLine() == -1) { return "The element " + name + " specified in " + getResourceURI() + " was not recognized. " + "If this is not a typo, check to ensure extensions are configured properly."; } return "The element " + name + " specified in " + getResourceURI() + " at " + getLine() + "," + getColumn() + " was not recognized. " + "If this is not a typo, check to ensure extensions are configured properly."; } }
public OperationDefinition load(XMLStreamReader reader, IntrospectionContext context) throws XMLStreamException { validateAttributes(reader, context); OperationDefinition operationDefinition = new OperationDefinition(); String name = reader.getAttributeValue(null, "name"); if (name == null) { MissingAttribute failure = new MissingAttribute("Operation name not specified", reader); context.addError(failure); } operationDefinition.setName(name); loaderHelper.loadPolicySetsAndIntents(operationDefinition, reader, context); LoaderUtil.skipToEndElement(reader); return operationDefinition; }
public WsdlServiceContract load(XMLStreamReader reader, IntrospectionContext context) throws XMLStreamException { Location startLocation = reader.getLocation(); validateRemotable(reader, startLocation, context); WsdlServiceContract wsdlContract = processInterface(reader, startLocation, context); processCallbackInterface(reader, wsdlContract, context); helper.loadPolicySetsAndIntents(wsdlContract, reader, context); validateAttributes(reader, context, wsdlContract); LoaderUtil.skipToEndElement(reader); return wsdlContract; }
public WireDefinition load(XMLStreamReader reader, IntrospectionContext context) throws XMLStreamException { validateAttributes(reader, context); String source = reader.getAttributeValue(null, "source"); String target = reader.getAttributeValue(null, "target"); LoaderUtil.skipToEndElement(reader); URI sourceURI = helper.getURI(source); URI targetURI = helper.getURI(target); return new WireDefinition(sourceURI, targetURI); }
@Destroy public void destroy() { registry.unregisterLoader(F3_TYPE); registry.unregisterLoader(SCA_TYPE); }
@Init public void init() { // register under both namespaces registry.registerLoader(F3_TYPE, this); registry.registerLoader(SCA_TYPE, this); }
public void loadPolicySetsAndIntents(PolicyAware policyAware, XMLStreamReader reader, IntrospectionContext context) { try { policyAware.setIntents(parseListOfQNames(reader, "requires")); policyAware.setPolicySets(parseListOfQNames(reader, "policySets")); } catch (InvalidPrefixException e) { String prefix = e.getPrefix(); URI uri = context.getContributionUri(); context.addError(new InvalidQNamePrefix("The prefix " + prefix + " specified in the definitions.xml file in contribution " + uri + " is invalid", reader)); } }
public String getShortMessage() { String namespace = name.getNamespaceURI(); if (DeprecatedNamespaceHelper.isDeprecatedNamespace(namespace)) { return "The element uses the deprecated namespace " + namespace + ". Please change it to " + org.fabric3.api.Namespaces.F3; } else { return "The element " + name + " was not recognized"; } }
/** * Loads the key when the component is wired to a map based reference. * * @param componentDefinition the component definition * @param reader a reader positioned on the element containing the key definition @return a Document containing the key value. */ private void loadKey(ComponentDefinition<Implementation<?>> componentDefinition, XMLStreamReader reader) { componentDefinition.setKey(loaderHelper.loadKey(reader)); }
@Destroy public void destroy() { registry.unregisterLoader(F3_TYPE); registry.unregisterLoader(SCA_TYPE); }
@Init public void init() { // register under both namespaces registry.registerLoader(F3_TYPE, this); registry.registerLoader(SCA_TYPE, this); }
public String getMessage() { return super.getMessage() + ". Original error was: \n" + cause; } }
@Destroy public void destroy() { registry.unregisterLoader(F3_TYPE); registry.unregisterLoader(SCA_TYPE); }
@Init public void init() { // register under both namespaces registry.registerLoader(F3_TYPE, this); registry.registerLoader(SCA_TYPE, this); }
public String getMessage() { return super.getMessage() + ". The original error was: \n" + cause; }
@Destroy public void destroy() { registry.unregisterLoader(F3_TYPE); registry.unregisterLoader(SCA_TYPE); }
public String getMessage() { if (cause != null) { return super.getMessage() + ". The original error was: \n" + cause.toString(); } else { return super.getMessage(); } }
public String getShortMessage() { if (cause != null) { return super.getMessage() + ". The original error was: " + cause.getMessage(); } else { return super.getMessage(); } }