<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Structural Patterns on Java &amp; Software Architecture Knowledge Hub</title><link>https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/</link><description>Recent content in Structural Patterns on Java &amp; Software Architecture Knowledge Hub</description><generator>Hugo</generator><language>en-US</language><copyright>© 2026 Samir Kumar Sahoo (https://github.com/samirsahoo). All rights reserved.</copyright><atom:link href="https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/index.xml" rel="self" type="application/rss+xml"/><item><title>Adapter Pattern</title><link>https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/adapter/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/adapter/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The &lt;strong&gt;Adapter&lt;/strong&gt; pattern lets code work with a class whose interface does not match what the code expects. The adapter implements the interface the client wants and translates every call into the interface the existing class provides.&lt;/p&gt;</description></item><item><title>Bridge Pattern</title><link>https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/bridge/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/bridge/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The &lt;strong&gt;Bridge&lt;/strong&gt; pattern separates &lt;em&gt;what&lt;/em&gt; something does (the &lt;strong&gt;abstraction&lt;/strong&gt;) from &lt;em&gt;how&lt;/em&gt; it is done (the &lt;strong&gt;implementation&lt;/strong&gt;) into two class hierarchies. The abstraction holds a reference to an implementation object; that reference is the &amp;ldquo;bridge&amp;rdquo;. Both sides can then be extended independently.&lt;/p&gt;</description></item><item><title>Composite Pattern</title><link>https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/composite/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/composite/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The &lt;strong&gt;Composite&lt;/strong&gt; pattern arranges objects in a &lt;strong&gt;tree&lt;/strong&gt; and gives single objects (leaves) and groups (composites) the &lt;strong&gt;same interface&lt;/strong&gt;. Client code can then call &lt;code&gt;price()&lt;/code&gt; on a single product or on a bundle of bundles without caring which it has.&lt;/p&gt;</description></item><item><title>Decorator Pattern</title><link>https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/decorator/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/decorator/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The &lt;strong&gt;Decorator&lt;/strong&gt; pattern adds behaviour to an object by &lt;strong&gt;wrapping&lt;/strong&gt; it in another object that implements the &lt;strong&gt;same interface&lt;/strong&gt;. The wrapper does its extra work and forwards the call to the wrapped object. Wrappers can be stacked, and each adds one responsibility.&lt;/p&gt;</description></item><item><title>Facade Pattern</title><link>https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/facade/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/facade/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The &lt;strong&gt;Facade&lt;/strong&gt; pattern provides &lt;strong&gt;one simple interface&lt;/strong&gt; to a set of classes that together form a subsystem. Clients call the facade; the facade knows which subsystem objects to call and in what order.&lt;/p&gt;&#10;&lt;p&gt;GoF intent: &lt;em&gt;&amp;ldquo;Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.&amp;rdquo;&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Flyweight Pattern</title><link>https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/flyweight/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/flyweight/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The &lt;strong&gt;Flyweight&lt;/strong&gt; pattern saves memory when a program needs a very large number of similar objects. It splits each object&amp;rsquo;s state into:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;intrinsic state&lt;/strong&gt;: shared, immutable and independent of context, stored once in a shared flyweight object&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;extrinsic state&lt;/strong&gt;: varies per object and is stored (or passed in) by the context.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;A &lt;strong&gt;factory&lt;/strong&gt; makes sure each distinct flyweight exists only once.&lt;/p&gt;</description></item><item><title>Proxy Pattern</title><link>https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/proxy/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/design-patterns/structural/proxy/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The &lt;strong&gt;Proxy&lt;/strong&gt; pattern puts a &lt;strong&gt;stand-in object&lt;/strong&gt; in front of a real object. The proxy implements the same interface, so clients cannot tell the difference, and it decides when and whether to forward each call: creating the real object lazily, checking permissions, caching results or calling across a network.&lt;/p&gt;</description></item></channel></rss>