org.jpos.q2
Class QClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.jpos.q2.QClassLoader
All Implemented Interfaces:
FileFilter, QClassLoaderMBean

public class QClassLoader
extends URLClassLoader
implements QClassLoaderMBean, FileFilter

Q2 Class Loader (scans deploy/lib directory for new jars)

Version:
$Revision$ $Date$
Author:
Alejandro P. Revilla, Alireza Taherkordi

Constructor Summary
QClassLoader(MBeanServer server, File libDir, ObjectName loaderName, ClassLoader mainClassLoader)
           
 
Method Summary
 boolean accept(File f)
           
 void addURL(String url)
           
 void forceNewClassLoaderOnNextScan()
           
 boolean isModified()
           
 QClassLoader scan(boolean forceNewClassLoader)
           
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QClassLoader

public QClassLoader(MBeanServer server,
                    File libDir,
                    ObjectName loaderName,
                    ClassLoader mainClassLoader)
Method Detail

addURL

public void addURL(String url)
            throws MalformedURLException
Specified by:
addURL in interface QClassLoaderMBean
Throws:
MalformedURLException

accept

public boolean accept(File f)
Specified by:
accept in interface FileFilter

isModified

public boolean isModified()

scan

public QClassLoader scan(boolean forceNewClassLoader)
                  throws InstanceAlreadyExistsException,
                         InstanceNotFoundException,
                         NotCompliantMBeanException,
                         MalformedURLException,
                         MBeanRegistrationException
Throws:
InstanceAlreadyExistsException
InstanceNotFoundException
NotCompliantMBeanException
MalformedURLException
MBeanRegistrationException

forceNewClassLoaderOnNextScan

public void forceNewClassLoaderOnNextScan()


Copyright © 1998-2012 jPOS.org. All Rights Reserved.