Currently TemplateEngineFactory is the entry point for both OSGi and non-OSGi usage. This is no clear separation. Especially for the getInstance() method.
Somehow we have to determine whether running in OSGi mode or not for this see http://stackoverflow.com/questions/5879040/how-to-detect-if-running-in-osgi-container
Use a special bundle-activator to verify this.
Currently TemplateEngineFactory is the entry point for both OSGi and non-OSGi usage. This is no clear separation. Especially for the getInstance() method.
Somehow we have to determine whether running in OSGi mode or not for this see http://stackoverflow.com/questions/5879040/how-to-detect-if-running-in-osgi-container
Use a special bundle-activator to verify this.