I am a .NET guy but recently have been placed on a Jav开发者_开发问答a project. Is there a java equivalent of .NET's Enterprise Library? More specifically, I only need a configuration manager, data access helper (parametrization and sanitize), and maybe a logger.
What are the hot tools for java development?
Sounds like the sort of horizontal tools that the likes of Apache Commons provides. These have been around for years, in some cases remaining useful today (e.g. Commons Lang, Commons Configuration), in other case now outdated and superseded by better things (Commons Collections by Google Guava, Commons Logging by SLF4J).
For simplified data access, the likes of iBatis or Spring JDBC are good starting points.
Logging: log4j (or the logging built into Java)
Configuration and data access helpers: Spring and perhaps Hibernate.
It seems the .NET Enterprise Library is just a collection of libraries. For your particular needs there are many options. I'll suggest one of each:
- data access - Spring's DAOs (not separate from spring); the generic-dao project (I haven't used it though)
- logger - log4j, logback
- configuration manager - commons-configuration
For DAO, I use Easier Java Persistence, which is extremely light and requires 0 configuration. Its really worth it
精彩评论