...
HTML |
---|
<div class="content">
|
Apache Felix iPOJO FAQ
Div |
---|
|
|
Wiki Markup |
---|
{div:class=toc}
{toc:maxLevel=4|minLevel=2}
{div} |
Injecting the bundle context in a POJO
...
For Maven, Just declare a dependency on the manipulator that you want to use in the maven-ipojo-plugin plugin section:
Code Block |
---|
|
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-ipojo-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>ipojo-bundle</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.ipojo.manipulator</artifactId>
<version>1.6.2</version>
</dependency>
</dependencies>
</plugin>
|
For Ant, just configure the classpath of the iPOJO ant task with the Manipulator that you want to use:
Code Block |
---|
|
<taskdef name="ipojo"
classname="org.apache.felix.ipojo.task.IPojoTask"
classpath="../ipojo/manipulator/org.apache.felix.ipojo.manipulator-1.7.0-SNAPSHOT.jar; lib/org.apache.felix.ipojo.ant-1.7.0-SNAPSHOT.jar;" />
/>
|
...