Introduction
WSDL file describes webservices. Java classes are often generated from WSDL. For this purpose, we could use command line tools (e. g. wsdl2Java or Read more
What is hoogle?
Hoogle is Google for searching of Haskell functions. You could ask it for function name or its signature. There is available command Read more
Introduction
Do you think about compatibility of your public API when you modify classes from it? It is especially easy to miss out that something Read more
IntroductionHow often do you think about possible changes in your API? Do you consider that something required could become optional in future? How about compatibility of such change? One of this changes is going from primitive (e. g. int) to its wrapp... Read more
Introduction
Autowired is great annotation, which by default inject beans by type to annotated element (constructor, setter or field). But how to use it, when Read more
Introduction
How to schedule your task for later execution? You often create table in database, configure job that checks if due time of any task Read more
Extensions in Kotlin are very powerful mechanism. It allows for add any method to any of existing classes. Each instance has (as in Java) equals, toString and hashCode methods, but there is much more in Kotlin.Example classesLet's define some simple cl... Read more
I've recently written about using Callable in Groovy, but how does it look like in kotlin?Callable instance as separete class First, let's create class which implements Callable interface:class MyJob : Callable<Int> { override fun call() = 42}... Read more
What's the problem?We have to deal with properties in almost every projects that we write. Properties class, which we use in these cases, is just mapping key to value. Sometimes it is fine, but in many cases properties look like tree. Example of proper... Read more
Suppose you want submit job to ExecutorService. The Baroque versionYou could create a class that implements Callable:class MyJob implements Callable<Integer>{ @Override Integer call() throws Exception { return 42 }}and give it to ... Read more