-
script
Modify Java object in script
With this example we are going to demonstrate how to modify a Java object in script. In short, to modify…
Read More » -
script
Evaluate a script file
With this example we are going to demonstrate how to evaluate a simple script file in Java. We are using…
Read More » -
script
Access Java Object from a script
In this example we shall show you how to access a Java Object from a script. We are using the…
Read More » -
decorator
Decorating classes at injection time with Java EE 6
Let’s say you have a ticket service that lets you order tickets for a certain event. The TicketService handles the…
Read More » -
cajo
client server communication example
The Server.java import gnu.cajo.Cajo; // The cajo implementation of the Grail public class Server { public static class Test {…
Read More » -
junit
JUnit Rules Example
The implementation of a Rule might look like this: import org.junit.rules.TestRule; import org.junit.runner.Description; import org.junit.runners.model.Statement; public class LoggingRule implements TestRule…
Read More » -
net
Delete File from FTP Server
This is an example of how to delete a File from an FTP Server. We are using the org.apache.commons.net.ftp.FTPClient Class that…
Read More » -
net
Establish connection with FTP Server
With this example we are going to demonstrate how to establish a connection with an FTP Server. We are using…
Read More » -
net
File Upload to FTP Server
In this example we shall show you how to upload a File to an FTP Server, using the org.apache.commons.net.ftp.FTPClient Class,…
Read More » -
lang3
Capitalize words of a string
This is an example of how to capitalize the words of a String. We are using the org.apache.commons.lang3.text.WordUtils Class, that…
Read More »