Translate

середа, 28 серпня 2013 р.

How to use Events in Spring 3.x



There are many concepts and techniques for creating loosely coupled applications,Event is one of them. Events can eliminate many of dependencies in your code. Some times without events, SRP* is very hard to implement. Observable interface in java can help us to implement events (through Observer Pattern).
But wait, the goal of this post is a fast tutorial about Spring Event. Spring has some nice facilities for creating Event Driven Applications. You can raise a specific event in a bean and listen to it in the other bean.


понеділок, 26 серпня 2013 р.

понеділок, 19 серпня 2013 р.

Безкоштовний вебінар “Практикум TDD”


Хто ще не знає, завтра відбудеться вебінар “Практикум TDD” Дізнатись більше та зареєєструватись ви можете за посиланням.



четвер, 8 серпня 2013 р.

The Adventurous Developer’s Guide to JVM Languages


The Adventurous Developer’s Guide to JVM Languages from zeroturnaround (creators of JRebel) 


Дуже рекомендую до читання http://zeroturnaround.com/rebellabs/the-adventurous-developers-guide-to-jvm-languages/, розглядають плюшки 8ми мов, доступних в ЖВМ.


вівторок, 6 серпня 2013 р.

Engineering conference survey


Нещодавно пройшла конференція JDay 2013. Для того, щоб краще організувати схожу подію наступного року нам потрібна Ваша допомога. 


Зробіть свій внесок, заповніть опитування!



четвер, 1 серпня 2013 р.

Java Magazine July/August 2013



Що корисного/цікавого в цьому номері? Можна прочитати більш політичну, ніж технічну статтю про долю джави у Twitter'і. Цікава стаття зі консультантом по перформансу, як все змінюється "в облаках", і т.п.. Для тих, хто вирішив освоїти МапРедюс - ріаллайф приклад з кодом. Ну і ще про лямбди, VM code cache, JavaFX, etc

І як бонус: цікава стаття про яхтову команду Оракл, та як технологія джава дозволила виграти їм змагання 2010. Як виявилося, на якті встановлено купу датчиків та сервер, що обробляє 30,000 значень від датчків у секунду і згідно них видає рекомендації щодо керування яхтою  




понеділок, 29 липня 2013 р.

Run your Unit Tests in Parallel


It was about time when the developer of Unit Tests had the ability to run the tests in Parallel using annotations. In today's blog post, we will look at how you can make your traditional Junit Tests to run in parallel using annotations provided by Easytest. EasyTest is a Testing Framework build on top of JUnit to provide you ease of writing and maintaining your tests. It is focused on writing Data Driven Tests for your application.


Lets start by assuming a Class ItemService  that has a method 2 methods :
1) getItems that takes 2 arguments Double itemId and String itemType. The API class is described below.
2)    updateItem that takes an Item instance and updates it in the Database.

public class ItemService {

   public List getItems (Double itemId , String itemType);

   public void updateItem (Item item);

}

We will leave out the implementation for the sake of keeping the example simple.

Lets see the step by step approach of writing Parallel Unit Tests.



вівторок, 23 липня 2013 р.

Java Concurrent Animated



Java Concurrent Animated

Victor Grazi дуже просто розказав про складний java.util.concurrent. 
Показав як і для чого використовуються  
  • Executors
  • Future
  • synchronized
  • ReentrantLock
  • Condition
  • Semaphore
  • ReadWriteLock
  • CountDownLatch
  • CyclicBarrier
  • Phaser
  • BlinkingPhaser
  • AtomicInteger
  • BlockingQueue
  • TransferQueue
  • CompletionService
  • ConcurrentHashMap
  • Fork/Join
Для презентації використана програма візуалізації, яку можна завантажити на його сайті - дуже зручно тим хто хоче ознайомитись з можливостями конкурентого API в Java чи має складності з розумінням. 


пʼятниця, 19 липня 2013 р.

Release: Appengine 1.8.2


Вийшла нова версія Google App Engine 
З новинок появилась підтримка PHP, а також підтримка Eclipse WTP і модульності, що потенційно спростить розробку аплікацій під екліпсом
Думаю також багатьом буде цікава підтримка git
Більше про новий реліз можна почитати тут
Як зразок аплікації запущеної на апенжіні можна подивитись на систему реєстрації на #JDayLviv

четвер, 18 липня 2013 р.

середа, 17 липня 2013 р.

Java’s Reflection API


If you have ever asked yourself questions like these:
– “How do I invoke a method, having only its name in a String?”
- “How do I list all the attributes in a class dynamically?”
- “How do I write a method that resets the state of any given object to default values?”
Then you have probably already heared of Java’s Reflection API, and in case you haven’t, this is a good opportunity to see what it’s all about, and what it can be used for. This feature is really powerful, but as always, has to be used with some good judgement.


понеділок, 15 липня 2013 р.

VisualVM 1.3.6 Released


VisualVM 1.3.6 has been released, delivering many bugfixes and introducing several improvements:
  • Unavailable sites aren't deleted on startup
  • Metaspace monitoring for JDK 1.8
  • Support for read-only JMX connections
  • Comparing CPU snapshots
  • Retained size by class in HeapWalker
  • Built on NetBeans Platform & profiler 7.3.1
See the Release Notes for the list of all changes. The bits can be downloaded at visualvm.java.net.