Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
ikylin committed Jun 10, 2012
1 parent 781855c commit d507cf7
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hello.root/hello.client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<dependency>
<groupId>ipojo.hello.world</groupId>
<artifactId>hello.service</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class HelloClient implements Runnable {
/**
* Hello services. Injected by the container.
* */
@Requires
@Requires(from="HelloService2")
private Hello[] m_hello;

/**
Expand Down
2 changes: 1 addition & 1 deletion hello.root/hello.provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<dependency>
<groupId>ipojo.hello.world</groupId>
<artifactId>hello.service</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public class HelloImpl implements Hello {
* @see ipojo.example.hello.Hello#sayHello(java.lang.String)
*/
public String sayHello(String name) {
return "hello " + name;
return "helloiiiiii " + name;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package org.hello.provider;

import org.apache.felix.ipojo.annotations.Component;
import org.apache.felix.ipojo.annotations.Instantiate;
import org.apache.felix.ipojo.annotations.Provides;

import com.hello.service.Hello;

/**
* Component implementing the Hello service.
*
* @author <a href="mailto:[email protected]">Felix Project Team</a>
*/
@Component(name = "HelloProvider2")
@Provides
@Instantiate(name="HelloService2")
public class HelloImpl2 implements Hello {

/**
* Returns an 'Hello' message.
*
* @param name
* : name
* @return Hello message
* @see ipojo.example.hello.Hello#sayHello(java.lang.String)
*/
public String sayHello(String name) {
return "hello0000 " + name;
}
}

0 comments on commit d507cf7

Please sign in to comment.