Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support of Startable, Stoppable and Destroyable to LwM2mObjectEnabler. #940

Commits on Nov 27, 2020

  1. Move the interfaces to manage the state to leshan-core package

    Move the interfaces `Destroyable`, `Startable` and `Stoppable` to
    `leshan-core` package from `leshan-server-core`.
    This commit aims to use these interfaces with `LwM2mObjectEnabler`
    to control the state of that.
    
    Ref: eclipse-leshan#933 (comment)
    
    Signed-off-by: moznion <[email protected]>
    moznion committed Nov 27, 2020
    Configuration menu
    Copy the full SHA
    5339609 View commit details
    Browse the repository at this point in the history
  2. Call management method for each LwM2mObjectEnabler on LeshanClient

    Now it calls `destroy()`, `stop()` and `start()` for each
    LwM2mObjectEnabler instance according to the LeshanClient status.
    For example, If it calls `LeshanClient#destroy()`, that method
    calls for each LwM2mObjectEnabler's `#destroy()`.
    And other methods are also similar.
    
    Signed-off-by: moznion <[email protected]>
    moznion committed Nov 27, 2020
    Configuration menu
    Copy the full SHA
    5bc28ca View commit details
    Browse the repository at this point in the history
  3. Reword javadoc for LwM2mObjectEnabler interface

    According to this feedback: eclipse-leshan#940 (comment)
    
    Signed-off-by: moznion <[email protected]>
    moznion committed Nov 27, 2020
    Configuration menu
    Copy the full SHA
    bd7f86d View commit details
    Browse the repository at this point in the history
  4. Make it call LwM2mObjectEnabler#stop() on LeshanClient#destroy()

    If an instance of `LwM2mObjectEnabler` doesn't implement the
    `Destroyable` but that implements `Stoppable` instead,
    it calls `#stop()` on `LeshanClient#destroy()` instead of `destroy()`.
    
    Signed-off-by: moznion <[email protected]>
    moznion committed Nov 27, 2020
    Configuration menu
    Copy the full SHA
    c334876 View commit details
    Browse the repository at this point in the history
  5. Implement Startable, Stoppable and Destroyable on LwM2mObjectTree

    These implemented methods are used in associated LeshanClient methods.
    
    Signed-off-by: moznion <[email protected]>
    moznion committed Nov 27, 2020
    Configuration menu
    Copy the full SHA
    603cb2a View commit details
    Browse the repository at this point in the history