Kazed

Pragmatic software development

  • Increase font size
  • Default font size
  • Decrease font size
Home
Search
Search Only:

Search Keyword java

Total: 5 results found.

1. Reflection performance with injection
(Matching tags: testing,java,android)
I am experimenting with a simple form of dependency injection that uses reflection and annotations. I was wondering what the performance of this solution is, since reflection once was rumored to be very ...
2. Simple setter injection with annotations
(Matching tags: java,android,testing)
To implement simple setter dependency injection with annotations, you can use reflection to find all setters and lookup the corresponding singletons that should be injected as parameters. Example use ...
3. Blast from the past: Struts
(Matching tags: jsf,java,framework)
... which is just like a Map that can contains any arbitrary Java object (the session is supposed to hold only Serializable objects, although many programmers do not always follow this rule). This makes the ...
4. Getting the generated ID with Spring JdbcTemplate (in DB2)
(Matching tags: spring,java,persistence)
Automatically generated ID's are very handy, since you don't have to create the ID yourself and don't need a second roundtrip to the database as you would when you use a sequence Example Example table ...
5. Automatic testing of setters and getters
(Matching tags: java,testing)
Normally I do not bother testing setters and getters, they are usually too boring to expect any bugs lurking in there. I recently started working on a project that requires a test coverage of at least ...