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 61 posted 10 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 64 posted 11 years ago by narkisr
An immutable (a new object is created for each change) Java class builder pattern example.
0 66 posted 11 years ago by narkisr
An example on how to invoke Ant targets which are defined in build.xml.
0 61 posted 11 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 94 posted 11 years ago by narkisr
This is a collection of useful static initializers of Java arrays, lists and maps.
0 63 posted 11 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 113 posted 12 years ago by narkisr
This spring context configures a simple hibernate session (for annotated classes).
4 91 posted 12 years ago by narkisr
This is an example of how to map a Java 5 enum when using Hibernate ORM.
0 97 posted 12 years ago by narkisr
The data source which can be used in combination with jasper reports.
0 56 posted 12 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 99 posted 12 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 81 posted 12 years ago by narkisr
This is a simple lookup and usage of the default DS in JBoss
0 55 posted 12 years ago by narkisr
« Prev 1 Next »