Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change to OSGi bundle, configure mvn site generation
- Loading branch information
Showing
4 changed files
with
121 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
webcam-capture/src/main/java/com/github/sarxos/webcam/WebcamActivator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.github.sarxos.webcam; | ||
|
||
import org.osgi.framework.BundleActivator; | ||
import org.osgi.framework.BundleContext; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
|
||
/** | ||
* Simple OSGi bundle activator. | ||
* | ||
* @author Bartosz Firyn (SarXos) | ||
*/ | ||
public class WebcamActivator implements BundleActivator { | ||
|
||
private static final Logger LOG = LoggerFactory.getLogger(WebcamActivator.class); | ||
|
||
@Override | ||
public void start(BundleContext context) throws Exception { | ||
LOG.info("Webcam bundle started"); | ||
} | ||
|
||
@Override | ||
public void stop(BundleContext context) throws Exception { | ||
LOG.info("Webcam bundle stopped"); | ||
} | ||
|
||
} |