public class WebSocketModelChange extends Change
| Constructor and Description |
|---|
WebSocketModelChange(OpCode op,
Map<WebSocketModel,Boolean> wsModels) |
WebSocketModelChange(OpCode op,
WebSocketModel wsModel,
boolean disabled,
OsgiContextModel... newModels) |
WebSocketModelChange(OpCode op,
WebSocketModel wsModel,
OsgiContextModel... newModels) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(BatchVisitor visitor)
Perform an operation in acceptor-visitor pattern.
|
List<OsgiContextModel> |
getContextModels()
Get a list of associated context models.
|
List<OsgiContextModel> |
getNewModels() |
String |
getNewModelsInfo() |
WebSocketModel |
getWebSocketModel() |
Map<WebSocketModel,Boolean> |
getWebSocketModels() |
boolean |
isDisabled() |
String |
toString() |
void |
uninstall(List<Change> operations)
|
getBatchCompletedAction, getKind, registerBatchCompletedActionpublic WebSocketModelChange(OpCode op, WebSocketModel wsModel, OsgiContextModel... newModels)
public WebSocketModelChange(OpCode op, Map<WebSocketModel,Boolean> wsModels)
public WebSocketModelChange(OpCode op, WebSocketModel wsModel, boolean disabled, OsgiContextModel... newModels)
public void uninstall(List<Change> operations)
ChangeChange may be reversed, which is handy when rolling back existing Batch. A single
change may be a no-op during uninstallation (like for example welcome files), but also may consist of
more uninstallation changes - like OsgiContextModelChange which has to follow unregistrations of
dynamic servlets/filters/listeners.public WebSocketModel getWebSocketModel()
public Map<WebSocketModel,Boolean> getWebSocketModels()
public boolean isDisabled()
public List<OsgiContextModel> getNewModels()
public String getNewModelsInfo()
public void accept(BatchVisitor visitor)
Changepublic List<OsgiContextModel> getContextModels()
ChangeGet a list of associated context models.
Usually the list comes from associated model being ADDed and usually doesn't make sense when a change
concerns more models. Special scenario is to get a list of new context models associated with existing
element model after it has been removed (from previous list of associated contexts) in the same Batch.
getContextModels in class ChangeCopyright © 2006–2024 OPS4J - Open Participation Software for Java. All rights reserved.