Re: How to inject java.util.Properties in Bean

2017-05-24 Thread ashgonline
Thanks Grzegorz Grzybek !!. It solves the problem. It was so simple !!! Regards, Ashish Gupta -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-inject-java-util-Properties-in-Bean-tp4050428p4050432.html Sent from the Karaf - Dev mailing list archive at Nabble.com

Re: How to inject java.util.Properties in Bean

2017-05-24 Thread Grzegorz Grzybek
Hello You can always do something like this: public class PropertiesFactory { public static Properties createProperties(String filename) { Properties result = new Properties(); result.load(...); return result; } } regards Grzegorz Grzybek 2017-05-24 9:23

How to inject java.util.Properties in Bean

2017-05-24 Thread ashgonline
Hello, I am new to the blueprint. I have one requirement where one of the bean object will take a java property bundle as its arguement (constructor). Not sure the syntax of the same in the buleprint.xml. I can understand that there is a way to define the porperty placeholder,but that does not solv