halil
2015-05-20 14:30:43 UTC
Hi All,
I could not create a reference of freemarker.template.Configuration on OSGI
blueprint file. I referenced it as below. Blueprint throwed exception which
states that Configuration class has final method declerations. It seems
that OSGI (org.apache.felix.framework-4.4.1) does not support injection of
classes having final method declerations...
<reference id="freemarkerCfgRef"
interface="freemarker.template.Configuration" ext:proxy-method='classes' />
When I did below steps, I succeed.
1. create an interface of Configuration class
2. put it a new package named freemarker.template.api.
3. Configuration class now implements
freemarker.template.api.FreeMarkerConfigurationInt
3. reference it as below
<reference id="freemarkerCfgRef"
interface="freemarker.template.api.FreeMarkerConfigurationInt" />
Now, it works perfectly...
I read some mails of developers stating that freemarker works on OSGI but I
could not succeed until I have done it as above...
I would like to inform you,
best,
-halil.
I could not create a reference of freemarker.template.Configuration on OSGI
blueprint file. I referenced it as below. Blueprint throwed exception which
states that Configuration class has final method declerations. It seems
that OSGI (org.apache.felix.framework-4.4.1) does not support injection of
classes having final method declerations...
<reference id="freemarkerCfgRef"
interface="freemarker.template.Configuration" ext:proxy-method='classes' />
When I did below steps, I succeed.
1. create an interface of Configuration class
2. put it a new package named freemarker.template.api.
3. Configuration class now implements
freemarker.template.api.FreeMarkerConfigurationInt
3. reference it as below
<reference id="freemarkerCfgRef"
interface="freemarker.template.api.FreeMarkerConfigurationInt" />
Now, it works perfectly...
I read some mails of developers stating that freemarker works on OSGI but I
could not succeed until I have done it as above...
I would like to inform you,
best,
-halil.