Class GatewayStepRegistry
- java.lang.Object
-
- com.inductiveautomation.sfc.api.elements.GatewayStepRegistry
-
- All Implemented Interfaces:
StepRegistry
public final class GatewayStepRegistry extends java.lang.Object implements StepRegistry
Keeps track of registeredStepFactory
s.You can get an instance of this class via:
GatewayStepRegistry.get()
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GatewayStepRegistry
get()
com.google.common.base.Optional<StepFactory>
getStepFactory(java.lang.String id)
Get theStepFactory
identified byid
.void
register(StepFactory factory)
Register aStepFactory
.void
unregister(StepFactory factory)
Unregister aStepFactory
.
-
-
-
Method Detail
-
get
public static GatewayStepRegistry get()
- Returns:
- the
GatewayStepRegistry
singleton.
-
register
public void register(StepFactory factory)
Register aStepFactory
.- Parameters:
factory
- theStepFactory
to register.
-
unregister
public void unregister(StepFactory factory)
Unregister aStepFactory
.- Parameters:
factory
- theStepFactory
to unregister.
-
getStepFactory
public com.google.common.base.Optional<StepFactory> getStepFactory(java.lang.String id)
Get theStepFactory
identified byid
.- Specified by:
getStepFactory
in interfaceStepRegistry
- Parameters:
id
- the id of the factory to get.- Returns:
- the
StepFactory
identified byid
.
-
-