Posts Tagged ‘ spring

Grails Productivity Tip: Depend on Your Plugin

Grails
Image via Wikipedia

Grails has amazing plugin infrastructure. In short it enables almost everything the core application can do and has really good  list of plugins: http://grails.org/Plugins

Here what I want to say is something a little bit different:

Do all your business in your application plugin

Reminder: Plugins are enabled in Grails

You can reuse all implementation in your plugins:

  • Model Object
  • Services
  • Controllers
  • Gsp pages

Plugins can define their plugin dependency, just like maven dependency.

Goal: Extreme Modularity

Model all your business in a single plugin.

You can consider grails an application container in this case which manages transactions and persistence, and ui and enable each plugin with all customization.  What you need to do is using config. groovy and ConfigurationHolder for configuration issues.

What grails will do is just starting up plugins and and the applications one by one and expose all services, domain class and controllers which will work fine.

It will increase your modularity and ease your integration issues. You can also run your plugins while your are developing them. This is the most amazing part of all the scenario. You do not need to enter pack-install cycle to test anything.

Tough Part: IDE

If you have already established something like this before with Java you would have setup your IDE for this kind of integration. But for grails there is not support as far as far as I know :( So be ready run some console commands:

cd mycore

grails package-plugin

cd ../myapp

grails install-plugin ../mycore/grails-mycore-plugin-0.1.zip

Reference Guide:

http://www.grails.org/The+Plug-in+Developers+Guide

Reblog this post [with Zemanta]

Which java stack do you use ?

hi every body,

I am just just running a poll about which java stack  are you using ?

and any comments are welcome !

[poll id="2"]

have a nice weekend

Spring is totally losing its invisibility

Many of you might remember at the spring 1.2.X series there is a strong voice like:

easy,quick configurations and implementations with spring

Yes in fact that was totally true. It really used POJOs as bean containers. And it works really fine. While using these spring versions you did not usually need to make any import statements for any spring package/class/interface
sample classes below were shown as best practices: Read more

Grails, First Impressions

Grails
Image via Wikipedia

Since SpringSource acquires the Grails I was willing to test this framework and make a dummy project but first I should read some books:) Read more

Are you clearing your cache manually ?

alarm clock, bought from IKEA
Image via Wikipedia

Most probably you have management link that enable you clear cache manually !

Then there is something totally wrong in your software/project  :)

Your software is :

  • Not aware of itself
  • Do not now what it is under going now
  • Do not know how to respond to these operations …

Read more

Runtime Java Stack

Toolkit

Image by Neil T via Flickr

I have been developing java application for more then 6 years. Most of these years I have used and evaluated open source projects. Here I’ll try to explain my open source java stack. Read more

Re:SpringSource Acquires G2One Inc.

Biting one's lip can be a physical manifestati...

Image via Wikipedia

Here comes another worried man: me :(

  • will spring gain more weight ?
  • its interoperability?
  • will grails become appfuse 2008 ?
  • what will we change when spring is not only ruler but also owner of the frameworks ?

another worried man http://java.dzone.com/news/groovy-grails-springsource-ini

http://www.springsource.com/g2one

Reblog this post [with Zemanta]