# License management for user module?

**URL:** <https://forum.inductiveautomation.com/t/license-management-for-user-module/5791>\
**Category:** Module Development\
**Created:** [February 2, 2013, 1:46pm UTC](https://forum.inductiveautomation.com/t/license-management-for-user-module/5791 "2013-02-02T13:46:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [February 2, 2013, 1:46pm UTC](https://forum.inductiveautomation.com/t/license-management-for-user-module/5791/1 "2013-02-02T13:46:32Z")

</div>

Hi,  
I would like to provide module with a license system.  
A free 2H demo mode like ignition and a full licensed version limited to a single gateway.  
How to configure the module ?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 2, 2013, 3:26pm UTC](https://forum.inductiveautomation.com/t/license-management-for-user-module/5791/2 "2013-02-02T15:26:16Z")

</div>

Get the LicenseManager from GatewayContext.

Add a LicenseStateUpdateListener to get notified when any changes to the license occur, including whether or not the 2 hour trial has expired (LicenseState#isTrialExpired()).
