[Spark View Engine] #39: Instantiate generated clases with IoC container

92 views
Skip to first unread message

Spark View Engine

unread,
Aug 20, 2008, 12:49:31 AM8/20/08
to spar...@googlegroups.com
#39: Instantiate generated clases with IoC container
---------------------------+------------------------------------------------
Reporter: louis.dejardin | Owner:
Type: enhancement | Status: new
Priority: major | Component: Spark Core
Keywords: |
---------------------------+------------------------------------------------
Provide an extensibility point where the view engine instantiates the
compiled class to enable the appropriate framework to use it's IoC
container.

Should also provide a way to declare properties on the generated class for
the container to assign dependencies.

At that point a better generated class name might also be nice to have.

--
Ticket URL: <http://dev.dejardin.org/trac/spark/ticket/39>
Spark View Engine <http://dev.dejardin.org/trac/spark>
Spark View Engine

Spark View Engine

unread,
Aug 28, 2008, 11:36:09 PM8/28/08
to spar...@googlegroups.com
#39: Instantiate generated clases with IoC container
-----------------------------+----------------------------------------------
Reporter: louis.dejardin | Owner:
Type: enhancement | Status: closed
Priority: major | Component: Spark Core
Resolution: fixed | Keywords:
-----------------------------+----------------------------------------------
Changes (by louis.dejardin):

* status: new => closed
* resolution: => fixed

Comment:

This should be all hooked up now. There are samples for both frameworks.

What it boils down to is if you can get an IViewActivatorFactory service
in the hands of the view engine that service can take over the job of
instantiating the view given it's Type. It takes the place of the direct
call to Activator.CreateInstance.

Although the asp.net mvc windsor support requires a lot of assemblies
including NVelocity. Kind of unfortunate.

--
Ticket URL: <http://dev.dejardin.org/trac/spark/ticket/39#comment:1>
Reply all
Reply to author
Forward
0 new messages