Tuesday, May 06, 2008
Useful Maven commands
checkout a project from subversion
mvn scm:checkout -DconnectionUrl=scm:https://svn.url.project.name -DcheckoutDirectory=name
checkout a project from subversion
mvn scm:checkout -DconnectionUrl=scm:https://svn.url.project.name -DcheckoutDirectory=name
Labels: maven mvn scm
Java Classloaders
Classloaders are responsible for finding and loading a class.
Class itself is a java object.
Following statements are true,
Custom class loaders
A custom Class Loader can be created by extending java.lang.ClassLoader.
Two things are important in creating a custom classloader.
Classloaders are responsible for finding and loading a class.
Class itself is a java object.
Following statements are true,
- All classloaders except bootstrap classloaders have a parent classloader
- All class loaders are of type java.lang.ClassLoader
Custom class loaders
A custom Class Loader can be created by extending java.lang.ClassLoader.
Two things are important in creating a custom classloader.
- Setting parent classloader
- implementing findClass() method
Labels: java classloader