Urgent.News

What's breaking now, across thousands of outlets.

Tech

XML Configuration Mode: Decoupling Your API Catalog from Business Code

Annotation mode keeps requests close to Java, but large integrations raise a fair question: do I want a wall of curl strings inside my service interfaces? JQuickCurl's XML mode answers with a firm no — you store every API definition in a separate XML file, and the business layer only sees plain Java interfaces with no annotations at all. This is the classic "declarative client" split: contract in…

XML Configuration Mode offers a way to separate the API catalog from business code, eliminating the need for annotations in Java code. This approach provides a declarative client split, where contract resides in configuration files while behavior stays in code. The process involves creating an XML API catalog with the official DTD, binding it to a plain Java interface, and using context variables in XML.

The XML file names each request and declares its return type, and a factory binds those entries to interface methods by method name. Changing the curl in XML results in a change in the running app behavior, without any Java edits or rebuilds. This approach is particularly useful when API surface is wide and changes often.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Missing RLS: The Most Underrated Breach Cause of 2026

You know why there are so many breaches in databases? Perfect, me neither. Let's find out in a few minutes. Everyone worries about encryption.

  • Row Level Security (RLS) misconfiguration leads to data breaches.
  • CVE-2025-48757 exposed 303 endpoints in 170 apps due to RLS issues.
  • Supabase improved RLS default in 2026, but migration errors persist.

Decorator Design Pattern: Adding Functionality without Breaking Your Architecture

Se você já trabalhou com orientação a objetos por algum tempo, provavelmente já se deparou com este dilema: como adicionar novas funcionalidades a um objeto sem criar uma explosão de subclasses?

  • Decorator pattern adds functionality to objects without altering architecture
  • Prevents creation of many subclasses, allows dynamic behavior combination
  • Base Component class defines interface for objects with behavior

Milestone Reached: YINI Syntax Highlighting Is Now on the VS Code Marketplace

Milestone Reached: YINI Syntax Highlighting Is Now on the VS Code Marketplace A small but important YINI milestone has been reached: the official YINI Syntax Highlighting extension for Visual Studio…

  • YINI Syntax Highlighting extension reaches version 1.0.0
  • Supports YINI Specification 1.0.0 RC 6
  • Enhances VS Code environment with syntax highlighting

More from Saturday 12 September →