Package io.openems.edge.bridge.http.api
Class BridgeHttpFactory
java.lang.Object
io.openems.edge.bridge.http.api.BridgeHttpFactory
- Direct Known Subclasses:
DummyBridgeHttpFactory
Bridge factory to get an instance of an
BridgeHttp
.
Usage:
@Reference
private BridgeHttpFactory httpBridgeFactory; private BridgeHttp httpBridge;@Activate
private void activate() { this.httpBridge = this.httpBridgeFactory.get(); }@Deactivate
private void deactivate() { this.httpBridgeFactory.unget(this.httpBridge); this.httpBridge = null; }
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget()
Returns a newBridgeHttp
service object.void
unget
(BridgeHttp bridge) Releases theBridgeHttp
service object.
-
Constructor Details
-
BridgeHttpFactory
public BridgeHttpFactory()
-
-
Method Details
-
get
Returns a newBridgeHttp
service object.- Returns:
- the created
BridgeHttp
object - See Also:
-
unget
Releases theBridgeHttp
service object.- Parameters:
bridge
- aBridgeHttp
provided by this factory- See Also:
-