This project introduces source code examples using MOAT Java/OSGi API, a part of MOAT IoT.
You can build each project with Maven2. The built jar is an OSGi bundle so that you can deploy it onto an OSGi container.
Note that the bundle is depending on a bundle exporting MOAT OSGi API.
mvn clean install
You can find the generated jar files in ./target directory.
This application requires the following private library:
- inventit-dmc-api-4.0.0-prod.jar
You can download it via iidn command line tool (signup required).
All program source codes are available under the MIT style License.
The use of IIDN service requires our term of service.
Copyright (c) 2013 Inventit Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1.2.0 : January 16, 2013
- As of 1.2.0, the license is changed to the MIT style
- The latest API set is now applied to this OSGi example
- Some class names are modified because of new API naming convention changes
1.1.2 : September 3, 2012
- MOAT OSGi Example :: Simple Bundle for JDK1.4
- Updates the version in the pom.xml.
- Fixes an issue where doesn't contain other packages than com.example.moat.
- Adds logging on MyServiceTask and isTimeToNotify() returns true by default.
- Changes ScheduledExecutorService instance into an OSGi service.
1.1.1 : August 30, 2012
- MOAT OSGi Example :: Simple Bundle for JDK1.4
- Fixes an issue where a bundle activator class depends on JDK5+ classes.
1.1.0 : August 4, 2012
- MOAT OSGi Example :: Simple Bundle for JDK1.4
- Adds a new class in order for the notification sending example to be shown in the class.
1.0.1 : August 3, 2012
- MOAT OSGi Example :: Simple Bundle for JDK1.4
- Adds more comments on source code
- Replaces tabs with spaces
1.0.0 : August 3, 2012
- MOAT OSGi Example :: Simple Bundle for JDK1.4 has been released.