Uday's Tech Space


Showing Tag: "reflexion" (Show all posts)

Counting Classes and Methods in a package

Posted by Uday Shankar on Friday, October 3, 2014, In : Java 
This is just a utility i created joining these blog posts:

How can I count the number of methods in a Java class ?
and 
Get All Classes Within A Package

import java.io.File;
import java.io.IOException;
import java.lang.reflect.Method;
import java.net.URL;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;

/**
 * Counts the number of classes and methods in a package.
 */
public class CountPackageMethods {
    /**
     * Scans all classes accessible from the context class loader w...

Continue reading ...
 

XML Properties

Posted by Uday Shankar on Friday, March 19, 2010, In : Java 
While building one of the java projects i came across properties files. They are kind of configuration files which are easy to use in java as java provide its apis. But with time i found that properties files are limited in a way like it does not have properties of a property or it could not have two or more values for the same property. For quite some time i was looking for a solution but it seems it is a less traveled path. Hence i had tried to develop something similar to properties api bu...
Continue reading ...
 
 

About Me


Uday Shankar A curious Java Developer.
Make a Free Website with Yola.