Skip to main content

Layer1Attachable

Package: velox.api.layer1.annotations

Type: Annotation Interface

@Retention(RUNTIME)
public @interface Layer1Attachable

Description​

Marks classes that can be loaded from GUI as a strategy.

When strategy is loaded and is correctly injected in layers chain, it will receive UserMessageLayersChainCreatedTargeted message via Layer1ApiAdminListener.onUserMessage(Object) (you need to implement it). After this, you can interact with Layer1ApiProvider, received in your constructor.

When strategy is no longer in layers chain, Layer1ApiFinishable.finish() will be called (you need to implement it). You can interact with Layer1ApiProvider inside Layer1ApiFinishable.finish() method. After method is completed, you can not interact with Layer1ApiProvider. Please note, that interacting with Layer1ApiProvider after Layer1ApiFinishable.finish() was called will result in exception.