Class TypeMatch
- java.lang.Object
-
- com.hybris.cockpitng.admin.strategy.socket.impl.TypeMatch
-
- All Implemented Interfaces:
WidgetSocketMatchStrategy
- Direct Known Subclasses:
PerfectMatch
public class TypeMatch extends java.lang.Object implements WidgetSocketMatchStrategy
-
-
Constructor Summary
Constructors Constructor Description TypeMatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetStrategyCode()Identifier of the strategy.booleanmatches(WidgetSocket socketA, WidgetSocket socketB)Method checks if two sockets match, ie.voidsetCockpitAdminService(CockpitAdminService cockpitAdminService)
-
-
-
Method Detail
-
getStrategyCode
public java.lang.String getStrategyCode()
Description copied from interface:WidgetSocketMatchStrategyIdentifier of the strategy. It should be unique.- Specified by:
getStrategyCodein interfaceWidgetSocketMatchStrategy- Returns:
- identifier of the strategy
-
matches
public boolean matches(WidgetSocket socketA, WidgetSocket socketB)
Description copied from interface:WidgetSocketMatchStrategyMethod checks if two sockets match, ie. may be connected.- Specified by:
matchesin interfaceWidgetSocketMatchStrategy- Parameters:
socketA- a socketsocketB- a socket- Returns:
- true if the two sockets match
-
setCockpitAdminService
public void setCockpitAdminService(CockpitAdminService cockpitAdminService)
-
-