A Java application bootstrap library
Appup provides
- Application startup and lifecycle management
- Native code management (honors Bundle-NativeCode jar manifest headers)
- Service registration
- A contribution registry that shares the plugin.xml syntax of the eclipse plugin registry.
<dependency>
<groupId>com.lbayer</groupId>
<artifactId>appup</artifactId>
<version>0.1.13</version>
</dependency>
Appup is executed by running the AppupLauncher as your class and passing it a configuration file.
For example:
java -cp libs/* com.lbayer.appup.application.AppupLauncher -c config.ini
All properties in the configuration file are automatically added to the java System properties.
🔠appup.startClasses
A comma separated list of lifecycle class names
Lifecycle classes are the main entry point for a application within appup.
When the application is started the list of start classes (as defined by
the appup.startClasses system property) are each constructed and any method
with an @PostConstruct
annotation are invoked.
Methods with an @PreDestroy
annotation will be invoked when the application is stopped.
Appup automatically scans the classpath for any jars that contain the Bundle-NativeCode
manifest header, and loads the appropriate platform's library.
Uses javax.annotation.Resource
annotation to automatically inject services into services.