[Lang] excluding Fields in ReflectionToStringBuilder

2009-06-05 Thread nodje
Hi, I'm using ReflectionToStringBuilder to build a default toString() for all my Hibernate entities. It creates problem with non initialized Fields when outside of an open session. Basically, I'd like to be able to exclude all entity subobjects by putting them in ExcludeFieldNames so that they d

Re: [Lang] excluding Fields in ReflectionToStringBuilder

2009-06-30 Thread nodje
oStringStyle.getInstance()); return tsb.toString(); } The . isAnnotationPresent() method is very convenient in case you can identify your classes with an Annotation, otherwise, I use getType().getGenericSuperclass().toString() to check the superclass name. nodje wrote: > > Hi, &g

[commons-vfs] Using a unique FileSystemManager instance???

2009-10-12 Thread nodje
Is there anything wrong with that way of doing? cheers -nodje -- View this message in context: http://www.nabble.com/-commons-vfs--Using-a-unique-FileSystemManager-instancetp25866902p25866902.html Sent from the Commons - User mailing list archive at

[commons-vfs] accessing exploded WAR content at runtime

2009-10-20 Thread nodje
What'd be a good way to get access to a deployed WAR's content using VFS? Right now, I'm doing: servletContext.getRealPath("") + File.separator + "WEB-INF" + File.separator + "classes" + File.separator + path; And this quite inconvenient to rely on servletContext since I don't have access to it