-
Recent Articles
-
Categories
- algorithms (2)
- c++ (2)
- coding (9)
- enterprise edition (4)
- java (7)
- operating systems (4)
- snippets (4)
- standard edition (3)
- unix (4)
-
Tags
access autowiring cache counting sort database dependency injection design pattern ehcache engine example fast field filesystem full-text fusermount generic gzip implementation inversion of control jdbc linux lucene memcached mounting multitail orm password positioning sorting private quicksort radix sort regexp rsa scalability search singleton sorting spring ioc sql ssh sshfs tail tar tarball xml -
Advertisements
Tag Archives: design pattern
[Java] Example of Spring IoC (Inversion of Control) – dependency injection
Tired of changing your Java code and recompiling project when you want to change objects’ properties? The one possible solution is to create external file keeping all desired data and creating objects by hand. But… Wait a minute, doesn’t Java … Continue reading
Posted in coding, enterprise edition, java Tagged access, dependency injection, design pattern, example, field, inversion of control, scalability, spring ioc, xml 1 Comment
[Java] The fastest singleton
Everybody know how to write thread-safe singleton. Consider standard approach: public class Singleton { private static Singleton instance; private Singleton() {} public static synchronized Singleton getInstance() { if(instance == null) { instance = new Singleton(); } return instance; } } … Continue reading
Posted in coding, java, standard edition Tagged design pattern, fast, implementation, singleton 5 Comments