You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by tho huynh ngoc <ng...@gmail.com> on 2016/01/21 19:57:20 UTC
How to get property in iPOJO
Hi,
I have a simple component as follows:
@Component (name="Test")
@Instantiate
public class Test {
@Property(name="foo", value="my-instance-2")
String buffer = "abcbuffer";
public Test() {
System.out.println("test running");
}
}
i use the "instance iTest" i have the result
g! instance iTest
instance name="iTest" state="valid" bundle="31" component.type="Test"
handler name="org.apache.felix.ipojo:properties" state="valid"
property name="foo" value="abcbuffer"
handler name="org.apache.felix.ipojo:callback" state="valid"
handler name="org.apache.felix.ipojo:architecture" state="valid"
object name="test.Test@637a91a"
How to i get "buffer" property via "introspection" from another component?
here, i want to display the "abcbuffer" value.
Regards,