This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Spring-like wiring in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring-like wiring in Java" Watch "Spring-like wiring in Java" New topic
Author

Spring-like wiring in Java

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
I dont think we have such 'wiring' in Java (up to 1.5).

Or am I wrong, and there is such in Java?

In another thought, annotations can 'emulate' 'wiring'.

Any thoughts?

Wiring using annotations seems to be too much work.

My point is, it will really be great if we have such 'wiring' in Java. It would mean another container/framework, but maybe it could be implemented just like in Spring, which can be used in non-intrusive and non-Spring-coupled way.
Duc Vo
Ranch Hand

Joined: Nov 20, 2008
Posts: 254
You can still use wiring with Spring without annotation, mate. Just use the traditional XML Configuration if you don't want to use annotation.

Cheers,


“Everything should be as simple as it is, but not simpler.” Albert Einstein
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Or if you want to use pure Java, take a look at Spring JavaConfig. I'm currently using it. I prefer that over annotation or XML configuration.


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring-like wiring in Java
 
Similar Threads
Spring Annotation
Spring, in Spring-Struts-Hibernate application
Spring AOP
use of Autowiring in Spring?
spring in action - annotations