Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
Description
If a property specifies, for example: info.magnolia.freemarker.FreemarkerTemplateLoaderManager=/server/freemarker and that this node exists but doesn't have a class property, FactoryUtil.getSingleton(FreemarkerTemplateLoaderManager.class) returns a java.util.Map instance.
In such a case, it should return the correct type if possible (and it's possible in this case, because FreemarkerTemplateLoaderManager is a concrete class)
If the node doesn't even exist, I am not sure what should be done.
If the component would be an interface (as the property name), maybe we need a way to specify observer beans with BOTH a location and a default implementation ? Or use some sort of NullObject until the node exists, hoping the system is vaguely useable until the configuration is ok ? (Proxytoys's null or failover proxies might help)
Checklists
Attachments
Issue Links
- duplicates
-
MAGNOLIA-3011 ObservedComponentFactory.newInstance() should return a default implementation when the observed path doesn't exist yet
-
- Closed
-
- is depended upon by
-
MAGNOLIA-3080 Cleanup conundrum between FreemarkerHelper and FreemarkerConfig
-
- Closed
-
-
MAGNOLIA-1469 Make Freemarker more configurable through admininterface
-
- Closed
-
- is related to
-
MAGNOLIA-2553 FactoryUtil: should return a proxy object for observed objects
-
- Closed
-