Previous
-
Java JSON tutorials
Google Gson
Gson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object. Gson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of.
JSONSerializer examples
JSONSerializer can transform any java object to JSON notation and back with a simple and clean interface, leveraging all the builders in JSONObject and JSONArray.
-
Java XML tutorials
XML & Properties
The java.util.Properties class has built-in functionality to convert properties file into XML file or vice versse.
SAX XML Parser
SAX parser works differently then DOM parser, it does not load any XML document into memory, instead the SAX parser uses a callback function. As a result that this gives you a better performance.
DOM XML Parser
The DOM parser is the easiest to use Java Parser. After loading the XML Document into memory, it is able to parse the document. But you have to keep in mind that when you load the entire XML Document in to memory there is a performance hit.
JAX-B Examples
JAXB, using annotation to convert Java object to / from XML file.
XPath tutorials
Finding XML elements
-
Java I/O tutorials
Console I/O
Java's console and java's scanner class gives you the ability to read input from the console.
-
Hibernate tutorials
The Criteria Query API
The Criteria API is used to define queries for entities and their persistent state by creating query-defining objects. Criteria queries are written using Java programming language APIs, are typesafe, and are portable. Such queries work regardless of the underlying data store.
Hibernate Persistence
Introduction to Hibernate
Hibernate Query Language tutorials | HQL
Hibernate Query Language (HQL) is a language created by hibernate. The syntax of HQL is really simple. It lets you work with your Java Objects. HQL is quite similar to database SQL language. A crutial difference is that it lets you work with Java class names instead of table names and property names instead of column names.
Configuring Hibernate
I'll show you how to configure hibernate with spring and vise versa. You can either annotate your objects with annotations or use XML files to map your objects. Either way these tutorials are the starting point of learing to configure hibernate with spring.
Object/Relational Mapping
Hibernate named query examples
With hibernate queries you can pre define your Query on you Model object, and reuse the named query in your repository layer or DAO layer.
-
Spring AOP examples
Spring AOP Annotations
Spring AOP has the ability to use annotations to create aspects.
Defining Spring AOP terminology
Like most technologies, AOP has formed his own jargon
Spring AOP Declaring aspects in XML
Creating Aspects with Spring AOP with the help of XML configuration
-
Spring core tutorials
Spring component scanning
The <context:component-scan> element does everything that <context:annotation-config> does, and even more. It configures Spring to automatically discover beans and declare them for you.
Spring AOP examples
Aspect-Oriented Programming (AOP) complements Object-Oriented Programming (OOP) by providing another way of thinking about program structure. In addition to classes, AOP gives you aspects. Aspects enable modularization of concerns such as transaction management that cut across multiple types and objects. (Such concerns are often termed crosscutting concerns.)
Spring Dependency Injection (DI)
The general concept between dependency injection is called Inversion of Control. A class should not configure itself but should be configured from outside.
Spring Mail Support
The Spring Framework provides a helpful utility library for sending email that shields the user from the specifics of the underlying mailing system and is responsible for low level resource handling on behalf of the client.
Spring Bean Configuration
Let spring manage your beans.
Spring java-based configuration
Not every developer is a fan of XML. That's why spring has something special for them. There is an option of configuring a Spring application with almost no XML, using pure Java.
-
Spring MVC examples
Spring MVC Handler Mapping examples
Using a handler mapping you can map incoming web requests to appropriate handlers. There are some handler mappings you can use out of the box, for example, the SimpleUrlHandlerMapping or the BeanNameUrlHandlerMapping.
Spring MVC Controller examples
We will go through the first steps of working with spring MVC, the following code examples will help you to get started.
Spring MVC 3 Form handling
In the following tutorials I will address Spring MVC 3 Form handling capabilities. Form processing, Validation and Messages.
-
Java JSON tutorials
JSON (JavaScript Object Notation) is a lightweight data-text format. It's easy for humans to read or write. And even easier for machines to read/parse or create. JSON is completely language independent. Which means that every programming language ...
-
Java XML tutorials
XML (Extensible Markup Language) is a structured language, which means that an XML file can describe exactly how data can be organized or arranged. Java has couple of features built in for working with XML files. First we have DOM XML Parser ...
-
Java I/O tutorials
Most applications need to process some sort of input/output. The purpose of the Java I/O (Input/Output) package is to make that possible in Java. The console class allows interacting with the user in a simple textual console application. Same as...
-
Hibernate tutorials
Hibernate is one of the most popular open source object relational mapping tool for the java platform. With hibernate you can reduce you persistence code for about 95% percent. It provides completely transparent persistence for so-called Plain Old...
-
Spring AOP examples
Aspects help to modularize cross-cutting concerns. A cross-cutting concern is any functionality that affects more than one point of an application. Security and logging for example. Seperating these cross-cutting concerns from your business logic ...
-
Spring core tutorials
Spring enables you to focus on your business problem rather than the plumbing that connects components and systems. Take a tour of Spring's key features from the core framework to infrastructure and data services and learn how to build, run and ma...
-
Spring MVC examples
Spring MVC, a Java Model View Controller web framework, is a modular extension on the core spring framework. You can plug it into your application very easy. by embracing convention-over-configuration, getting a Spring MVC application running can ...
Next
JSON (JavaScript Object Notation) is a lightweight data-text format. It's easy for humans to read or write. And even easier for machines to read/parse or create. JSON is completely language independent. Which means that every programming language ...
XML (Extensible Markup Language) is a structured language, which means that an XML file can describe exactly how data can be organized or arranged. Java has couple of features built in for working with XML files. First we have DOM XML Parser ...
Most applications need to process some sort of input/output. The purpose of the Java I/O (Input/Output) package is to make that possible in Java. The console class allows interacting with the user in a simple textual console application. Same as...
Hibernate is one of the most popular open source object relational mapping tool for the java platform. With hibernate you can reduce you persistence code for about 95% percent. It provides completely transparent persistence for so-called Plain Old...
Aspects help to modularize cross-cutting concerns. A cross-cutting concern is any functionality that affects more than one point of an application. Security and logging for example. Seperating these cross-cutting concerns from your business logic ...
Spring enables you to focus on your business problem rather than the plumbing that connects components and systems. Take a tour of Spring's key features from the core framework to infrastructure and data services and learn how to build, run and ma...
Spring MVC, a Java Model View Controller web framework, is a modular extension on the core spring framework. You can plug it into your application very easy. by embracing convention-over-configuration, getting a Spring MVC application running can ...