See: Description
Interface | Description |
---|---|
BridgeFacet |
Declares the methods that are needed to be part of a bridge instance.
|
DeclaresNearType<NT> |
Reminder interface to encourage implementers of
FarObject s and
NearIterable s to declare the corresponding near type. |
FarObject<NT> |
Marker interface to signify that this type of object can be used as a far object in the context of a
bridge instance.
|
GenericBridgeFacet |
Extends interface
BridgeFacet with a method to set the encompassing
BridgeFacets instance. |
NearIterable<NT> |
Provides an iterable with a few convenience methods.
|
Class | Description |
---|---|
BaseBridgeFacet |
Convenience class that can be used as a super class for classes that should implement
GenericBridgeFacet . |
BaseNearIterable<NT> |
Convenience class that can be used as a super class for classes that implement
NearIterable . |
BridgeFacets |
Composes the near object, the far object, and intermediate stateful helpers that together comprise a bridge instance.
|
BridgeFactory |
Provides a factory with supporting classes that generates implementations of a logical interface whose methods are
delegated to various helper objects on both sides of an abstraction separation.
|
BridgeHeadTypeRegistry |
Registers types of objects that are used at both ends (bridge heads) of bridge objects as created by a
BridgeFactory . |
FactoryAccessor<NT> |
Provides type-safe access to the
BridgeFactory of a given near type. |
FactoryInjector |
Injects registered
BridgeFactory beans into bean properties of type FactoryAccessor . |
Static |
Provides static convenience methods that pertain to the bridge factory package.
|
Provides a factory with supporting classes that generates implementations of a logical interface whose methods are delegated to various helper objects on both sides of an abstraction separation. This can be used to define the following facets of a logical object in separate entities: interface, logical class level helper, logical state, concrete class level helper, concrete delegation object. In the terminology of this package the logical classes form the near side of the bridge and the concrete classes form the far side of the bridge.
In combination with an ORM framework this can be used to create bridged objects, where the logical class level helper and the logical state objects are defined exclusively in terms of the logical interface, and where the concrete classes consist of the Data Access Object (DAO) and the Data Transfer Object (DTO). The DAO and the DTO can be completely oblivious about the logical classes.
The cluster of classes and objects that belong to a particular type can be assembled in Spring.
BridgeFactory
Copyright © 2013. All Rights Reserved.