ariba.ui.aribaweb.util
Class AWClassLoader
java.lang.Object
ariba.ui.aribaweb.util.AWClassLoader
- Direct Known Subclasses:
- AWClassLoader.PairedFileLoader, AWDefaultClassLoader
public class AWClassLoader
- extends Object
Loader abstraction used by AW to load (and reload) classes for AWComponents.
Subclasses can support dynamic class reloading (AWReload), alternate languages (Groovy, etc)
ClassReloadedTopic
public static final String ClassReloadedTopic
- See Also:
- Constant Field Values
AWClassLoader
public AWClassLoader()
getClass
public Class getClass(String className)
throws ClassNotFoundException
- Load class.
- Returns:
- null if the class is not found, the class (or a
suitable subclass) otherwise
- Throws:
ClassNotFoundException
isReloadable
public boolean isReloadable(String name)
- Returns:
- true if the class might be reloaded, so should not be cached.
getComponentNameForClass
public String getComponentNameForClass(String className)
- Parameters:
className - the name of the class for the component.
- Returns:
- The name of the component.
The className may be that of a subclass of the actual class, not the
real className.
checkForUpdates
public void checkForUpdates()
- For class loaders that support reloading non-AWComponent classes, this is a
trigger point to scan previously loaded files to see if any should be reloaded
(e.g. scanning .class files in the build directory)
checkReloadClass
public Class checkReloadClass(Class cls)
setChainedClassLoader
public void setChainedClassLoader(AWClassLoader next)
- The chained classloader is forwarded all calls not fully handled by the
first AWClassLoader (when the first one calls super()).
- Parameters:
next - the loader to receive forwarded calls
AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.