public class SingleColorBridgeFactory extends Object implements ColorBridgeFactory
ColorBridgeFactory that always returns the same instance
of ColorBridge.| Constructor and Description |
|---|
SingleColorBridgeFactory(ColorBridge bridge)
Creates a new factory.
|
| Modifier and Type | Method and Description |
|---|---|
ColorBridge |
create(ColorManager manager)
Creates a new bridge for
manager. |
public SingleColorBridgeFactory(ColorBridge bridge)
bridge - the provider which will be returned at create(ColorManager)public ColorBridge create(ColorManager manager)
ColorBridgeFactorymanager.create in interface ColorBridgeFactorymanager - the manager which will use the bridgeCopyright © 2017 Docking Frames. All rights reserved.