NT - The near type of the bridge factorypublic class FactoryAccessor<NT> extends Object
BridgeFactory of a given near type. The factory bean has to be injected,
i.e., by using a FactoryInjector bean.| Constructor and Description |
|---|
FactoryAccessor(Class<NT> type)
Creates a new
FactoryAccessor instance for the given near type. |
| Modifier and Type | Method and Description |
|---|---|
BridgeFactory |
get()
Returns the bridge factory for this accessor.
|
NT |
getNearObject(Object farObject)
Returns the near object that corresponds to the given far object.
|
Class<?> |
getNearType()
Returns the near type that corresponds to this accessor.
|
void |
set(BridgeFactory factory)
Sets the bridge factory to use with this accessor.
|
public void set(BridgeFactory factory)
factory - The bridge factory to setpublic BridgeFactory get()
public Class<?> getNearType()
public NT getNearObject(Object farObject)
farObject - The far object to look upCopyright © 2013. All Rights Reserved.