How to provide preprocessor directives in Java

Java doesn’t have a preprocessor – so the simple answer is that you can’t.

This sort of thing is normally handled in Java using Dependency Injection – which is both more powerful and more flexible.

http://www.vogella.com/articles/DependencyInjection/article.html

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)