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 800 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 803 posted 15 years ago by narkisr
An immutable (a new object is created for each change) Java class builder pattern example.
0 792 posted 15 years ago by narkisr
An example on how to invoke Ant targets which are defined in build.xml.
0 822 posted 16 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 935 posted 16 years ago by narkisr
This is a collection of useful static initializers of Java arrays, lists and maps.
0 578 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 1083 posted 16 years ago by narkisr
This spring context configures a simple hibernate session (for annotated classes).
4 972 posted 16 years ago by narkisr
This is an example of how to map a Java 5 enum when using Hibernate ORM.
0 862 posted 16 years ago by narkisr
The data source which can be used in combination with jasper reports.
0 713 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 1026 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 888 posted 16 years ago by narkisr
This is a simple lookup and usage of the default DS in JBoss
0 577 posted 16 years ago by narkisr
« Prev 1 Next »