Include Page | ||||
---|---|---|---|---|
|
...
This page explains how to build and run iPOJO bundles without exiting Eclipse and breaking the compile-run cycle. Bundles are executed inside Equinox.
Div | ||||||
---|---|---|---|---|---|---|
| ||||||
|
...
1) Import the iPOJO Bundle project
Download the project archive (1.4.2 version is available here), and import it as an Existing Project into the Workspace
Then click on finish
...
The imported project contains a very simple component using annotations. But, obviously you can delete/change it. For XML-metadata, use metadata.xml
file is in the project root.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
@Component
public class MyComponentImpl {
@Validate
public void start() {
System.out.println("I'm started !!!");
}
@Invalidate
public void stop() {
System.out.println("I'm leaving :-(...");
}
}
|
Once you're done, you are able to run your bundle !
...
Then, go back to the step 3, change your components, and see the new result...
That's it !
...
Changes in the 1.
...
4.0
...
The 1.34.0-SNAPSHOT + iPOJO manipulator allows manipulating classes from a directory (FELIX-943). This feature is very convenient for the Eclipse integration because it avoids creating the Jar and unzipping it inside the Eclipse build directory. Moreover, it allows reusing the Java Eclipse builder (compiling classes).For early adopter you can use a project using this ability and allowing an easier integration with Eclipse. You can download this project here and import it inside your Eclipse wokspace.
Include Page | ||||
---|---|---|---|---|
|