Profile
Achievement
narkisr's Recent SnippetsTagged java
- All /
« Prev 1 Next »
Using http://www.clapper.org/software/java/util/javadocs/util/api/org/clapper/util/classutil/ClassFinder.html in order to find a class in class path.
0
742
posted 14 years ago by narkisr
Running a btrace script takes two separate steps by default:
1. Running jps to get the Java process ID.
2. Running btrace on the ID.
A simple awk script can merge the two into a single step.
0
750
posted 15 years ago by narkisr
An immutable (a new object is created for each change) Java class builder pattern example.
0
733
posted 15 years ago by narkisr
An example on how to invoke Ant targets which are defined in build.xml.
0
761
posted 15 years ago by narkisr
A working example that uses BlaszDS in order to serialize Java object into AMF (this code should be cleaned up a bit), in order for it to compile and work it is required to add flex-messaging-core.jar and flex-messaging-common.jar to the classpath.
0
870
posted 16 years ago by narkisr
This is a collection of useful static initializers of Java arrays, lists and maps.
0
532
posted 16 years ago by narkisr
A paste from a blog (http://lenkite.blogspot.com/2008/05/access-windows-registry-using-java.html) entry which demonstrates how to access windows registry in Java.
0
1021
posted 16 years ago by narkisr
This spring context configures a simple hibernate session (for annotated classes).
4
905
posted 16 years ago by narkisr
This is an example of how to map a Java 5 enum when using Hibernate ORM.
0
790
posted 16 years ago by narkisr
The data source which can be used in combination with jasper reports.
0
655
posted 16 years ago by narkisr
A simple testing assertion which looks up for a line within a file until a pre defined time frame ends (loosely based upon http://www.informit.com/guides/content.aspx?g=java&seqNum=226).
0
961
posted 16 years ago by narkisr
A very simple way of getting bean instances from Spring context without casting returned object, the assumption is that the bean id's are matching the classes names.
0
836
posted 16 years ago by narkisr