Context and Deployment Descriptor > The Context Services > Blinking Manager

The blinking manager, defined by the interface IlpBlinkingManager, manages the blinking of colors.

The IlpBlinkingManager interface provides six methods to manage the blinking of colors:

How to Customize the Blinking Manager Service Through the Deployment Descriptor

The following code extract shows how to customize the on and off periods of blinking colors in the blinking manager.

[<blinkingManager>
     <onPeriod>111</onPeriod>
     <offPeriod>111</offPeriod>
</blinkingManager>]

where:

How to Customize the Blinking Manager Through the API
IlpContext context = IltSystem.GetDefaultContext();
IlpBlinkingManager blinkingMgr = context.getBlinkingManager();
blinkingMgr.setOnPeriod(1000);
blinkingMgr.setOffPeriod(500);

The on/off periods in this example are used for IlpBlinkingColor instances that do not have their own on/off periods defined.

By default, the blinking manager service is implemented by the class IltDefaultBlinkingManager.

The default blinking manager service can be customized through the deployment descriptor file using the tag <blinkingManager>.