Profile

Achievement

first submission:submitting first snipplet

narkisr's Recent SnippetsTagged java



« 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 611 posted 13 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 588 posted 15 years ago by narkisr
An immutable (a new object is created for each change) Java class builder pattern example.
0 577 posted 15 years ago by narkisr
An example on how to invoke Ant targets which are defined in build.xml.
0 587 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 717 posted 15 years ago by narkisr
This is a collection of useful static initializers of Java arrays, lists and maps.
0 423 posted 15 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 832 posted 15 years ago by narkisr
This spring context configures a simple hibernate session (for annotated classes).
4 750 posted 16 years ago by narkisr
This is an example of how to map a Java 5 enum when using Hibernate ORM.
0 620 posted 16 years ago by narkisr
The data source which can be used in combination with jasper reports.
0 502 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 801 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 683 posted 16 years ago by narkisr
This is a simple lookup and usage of the default DS in JBoss
0 419 posted 16 years ago by narkisr
« Prev 1 Next »