September 02, 2017

Spring - Initializing a Spring Bean

In Spring, it's often necessary to run custom code during a bean's initialization—for example, to validate mandatory properties or establish initial connections. Spring offers several mechanisms to initialize beans after they’ve been injected with their properties. Read More
by Phee Jay

August 04, 2017

Groovy - Setting Up Sublime Text to Run Groovy Scripts

Groovy is a powerful scripting language that builds on Java, making it easier to write concise and expressive scripts. Sublime Text, a highly customizable text editor, can be configured to execute Groovy scripts, streamlining your workflow. This guide will walk you through the steps to set up Sublime Text to run Groovy scripts on your system. Read More
by Phee Jay

August 03, 2017

Groovy - How to Read Files in Groovy?

This article shows various ways of reading a text file in groovy. Read More
by Phee Jay

August 01, 2017

JS - How to Create Web Notifications

Web Notifications provide ways for websites to display notifications to users e.g. alerting the user about a business event or success/failure of an asynchronous operation. Read More
by Phee Jay

July 12, 2017

Spring - Lookup Method or Method Injection

Most common injection mechanisms used in Spring are Constructor and Property injections. In both the mechanisms, the injection happens only once during the initialization of the Bean. They also require a concrete method defined, e.g., a constructor method for constructor injections and a setter method for property injection. Read More
by Phee Jay

April 28, 2017

Spring - How to Create Custom Namespaces and Handlers in Spring

Custom namespaces in spring are a way to replace the complex bean definitions with a more user-friendly configuration. Spring itself provides several namespaces out of the box. e.g. Read More
by Phee Jay

April 13, 2017

Spring - Localization with Spring

Localization enables applications to cater to users of different locations and languages. Spring, as usual, has support for this aspect as well. Before jumping into what Spring has to offer, let's explore what we get from Java itself. Read More
by Phee Jay