contributing some components

2 views
Skip to first unread message

Rose, Mitch

unread,
Aug 18, 2009, 10:52:54 AM8/18/09
to coldspri...@googlegroups.com
Hi Folks,

Thanks to Sean Corfield and Mark Mandel for their encouragement.

With some trepidation I'd like to contribute several components that follow similar Spring classes.
I've found them to be useful, and hope others might take them up or provide feedback.

The following can be found in the attached zip file:

AbstractWebApplicationContext
BaseApplicationListener
BaseHandlerInterceptor
BaseHandlerMapping
ContextLoader
DefaultWebApplicationContext
HandlerExecutionChain
SimpleApplicationEventMulticaster

Rudimentary mxunit tests are available - please contact me off list if you're interested.


thanks,
-m

coldspringContribution.zip

Mark Mandel

unread,
Aug 18, 2009, 8:34:18 PM8/18/09
to coldspri...@googlegroups.com
Mitch, can you give us some background on what these components do, and how they are used?

Mark
--
E: mark....@gmail.com
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

mitch_rose

unread,
Aug 19, 2009, 10:18:46 AM8/19/09
to ColdSpring-Users
Hi Mark,

AbstractWebApplicationContext: based on Spring framework 1.2 interface
org.springframework.web.context.WebApplicationContext:
"Central interface to provide configuration for an application. This
is read-only while the application is running, but may be reloaded if
the implementation supports this."

BaseApplicationListener: based on Spring framework 1.2 interface
org.springframework.context.ApplicationListener:
"Interface to be implemented by application event listeners. Based on
standard java.util base interface for Observer design pattern."

BaseHandlerInterceptor: based on Spring framework 1.2 interface
org.springframework.web.servlet.HandlerInterceptor:
"Intercept the execution of a handler. Called after HandlerMapping
determined an appropriate handler object, but before HandlerAdapter
invokes the handler."
base class, must be subclassed

BaseHandlerMapping: based on Spring framework 1.2 interface
org.springframework.web.servlet.HandlerMapping
"Base class must be implemented by objects that define a mapping
between requests and handler objects."
Intended to provide a HandlerExecutionChain for a request.

ContextLoader: based on Spring framework 1.2
org.springframework.web.context.ContextLoader:
"Performs the actual initialization work for the root application
context."
Use the ContextLoader to create an instance of the
DefaultWebApplicationContext (which wraps the beanFactory) during
application initialization or refresh.


DefaultWebApplicationContext: extends AbstractWebApplicationContext
Includes methods from interfaces: ApplicationContext,
HierarchicalBeanFactory, ApplicationEventPublisher,
ConfigurableApplicationContext, ConfigurableWebApplicationContext
Intended to provide support for broadcast style front end controllers

HandlerExecutionChain: based on Spring framework 1.2
org.springframework.web.servlet.HandlerExecutionChain
"Handler execution chain, consisting of handler object and any
preprocessing interceptors. Returned by HandlerMapping's getHandler
method."

SimpleApplicationEventMulticaster: based on Spring framework 1.2
org.springframework.context.event.SimpleApplicationEventMulticaster:
"Simple implementation of the ApplicationEventMulticaster interface."


The first comment in each of the components may contain additional
documentation.
Is that sufficient?

-m
> E: mark.man...@gmail.com

Tom Chiverton

unread,
Aug 29, 2009, 10:01:35 AM8/29/09
to coldspri...@googlegroups.com
2009/8/19 mitch_rose <mr...@cpg.org>:

> The first comment in each of the components may contain additional
> documentation.
> Is that sufficient?

You must have a working demo of all these working together, or
something, right ? That would help me get my head around it...

--
Tom

Mitch Rose

unread,
Sep 1, 2009, 12:23:35 PM9/1/09
to ColdSpring-Users
I'm sorry, Tom, I did at one point but it went to the bit bucket.
But please feel free (others, too) to contact me off-list and I'll do
what I can to set you up.
If memory serves all you'll need is application.cfc and some
'listeners'.

-m

Rose, Mitch

unread,
Sep 2, 2009, 1:46:17 PM9/2/09
to coldspri...@googlegroups.com
Ok, Tom.

I felt bad about that last post, so I put a Hello World together.

You'll need a mapping to ColdSpring.
Just drop the zip contents into the same directory as the other components - all is relative.
Hit index.cfm on the directory they're in.
CF7+

Contact me off list with questions, comments, or concerns.

-m

coldspringDemo.zip

Mark Mandel

unread,
Sep 2, 2009, 4:38:55 PM9/2/09
to coldspri...@googlegroups.com
Actually, please contact Mitch *on* list, so that we can all share in the learning.

Taking it off list means that nobody else gets to learn at the same time.

Mark
--
E: mark....@gmail.com

Tom Chiverton

unread,
Sep 11, 2009, 6:41:12 AM9/11/09
to coldspri...@googlegroups.com
Ah *ha* :-)

--
Tom

Reply all
Reply to author
Forward
0 new messages