content2bean: use it to build the system core objects
-----------------------------------------------------

                 Key: MAGNOLIA-1527
                 URL: http://jira.magnolia.info/browse/MAGNOLIA-1527
             Project: Magnolia
          Issue Type: New Feature
          Components: core
    Affects Versions: 3.2
            Reporter: Philipp Bracher
         Assigned To: Philipp Bracher
             Fix For: 3.2


After using content2bean in some places the idea of using it as a general 
mechanism came up. Instead of introducing spring to wire up the objects we 
could do the following:  

Main idea:
- in addition of defining the implementation class as a property (as we do 
today) we allow defining a path to the configuration in the config repository
- The FacotryUtil uses content2bean to create the objects
- FactoryUtil starts an observation for the singletons (no extra-coding for 
reloading, synchronization properly handled, ...)

Add ons:
- To allow complex transformations a class/type based transformer registration 
is supported
- For objects which are created before the repository is present (module 
regisration, content repository, ...) we could use the same mechanism by using 
a properties file based (mock) hierarchy manager.

This would make the system highly flexible without changing much. ALL static 
methods except those to get the instances will be deprecated.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------

Reply via email to