|
SAP NetWeaver 7.30 Enterprise Portal (SP03) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
com.sap.engine.frame.core.load.ReferencedLoader
com.sapportals.portal.prt.util.AutoClassLoader
public class AutoClassLoader
The AutoClassLoader is the class loader implementation used by the Java iView Runtime. It differs from an ordinary class loader by the following features:
| Field Summary |
|---|
| Fields inherited from class com.sap.engine.frame.core.load.ReferencedLoader |
|---|
CLASS_NOT_FOUND_EXCEPTION, classes, DEBUG_PROPERTY, debugMode, domain, globalDebugMode, parentLoader, useNegativeCache |
| Constructor Summary | |
|---|---|
AutoClassLoader(ClassLoader parentLoader)
Deprecated. Constructor |
|
AutoClassLoader(ClassLoader parentLoader,
Object token)
Deprecated. Constructor with registration to parent (if applicable) |
|
AutoClassLoader(ClassLoader parentLoader,
Object token,
boolean transitive)
Deprecated. Constructor with registration to parent (if applicable) and transitivity setting. |
|
AutoClassLoader(ClassLoader parentLoader,
Object token,
Object[] delegationTokens)
Deprecated. Constructor with registration to parent and definition of default tokens. |
|
AutoClassLoader(ClassLoader parentLoader,
Object token,
Object[] delegationTokens,
boolean transitive)
Deprecated. Constructor with registration to parent and definition of default tokens and transitivity setting. |
|
AutoClassLoader(ClassLoader parentLoader,
Object token,
Object[] delegationTokens,
boolean transitive,
boolean cyclic)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
addClassProtectionPrefix(String prefix)
Deprecated. Adds a class prefix to the list of protected class prefixes. |
void |
addFile(File file)
Deprecated. Adds a url to the current classpath |
void |
addFolder(File folder)
Deprecated. Add a Folder to the classpath |
void |
addJarsInFolder(File libFolder)
Deprecated. Adds all jar files in the specfied folder to the classpath |
void |
addResourceProtectionPrefix(String prefix)
Deprecated. Adds a resource prefix to the list of protected resource prefixes. |
protected Package |
definePackage(String name,
Manifest man,
URL url)
Deprecated. |
protected Class |
findClass(String name)
Deprecated. The crucial methods Finds a class. |
protected Enumeration |
findLocalResources(String fileName)
Deprecated. |
protected URL |
findResource(String name)
Deprecated. find a resource in the current class path |
protected Enumeration |
findResources(String name)
Deprecated. Find the resources |
protected URL |
getLocalResource(String fileName)
Deprecated. |
protected InputStream |
getLocalResourceAsStream(String fileName)
Deprecated. |
Vector |
getPath()
Deprecated. Returns a Vector containing the path of this loader. |
Vector |
getPaths(boolean withDependencies)
Deprecated. Returns a Vector of path. |
static Vector |
getPaths(ClassLoader loader,
Object[] tokens,
boolean delegateToParent)
Deprecated. Returns a Vector of path. |
URL |
getResource(Object[] tokens,
String name,
boolean delegateToParent)
Deprecated. This version of getResource respects a propagation barrier, i.e. it will not delegate loading of specified resources or resources that have a specified name space. |
URL |
getResource(String name)
Deprecated. This is the default signature of getResource |
InputStream |
getResourceAsStream(String name)
Deprecated. This version of getResourceAsStream switches off the cache of resource bundles. |
String[] |
getResourceNames()
Deprecated. |
protected Class |
loadClass(Object[] tokens,
String name,
boolean resolve,
boolean delegateToParent)
Deprecated. This version of loadClass respects a propagation barrier, i.e. it will not delegate loading of specified classes or classes that have a specified name space. |
Class |
loadClass(String name,
boolean resolve)
Deprecated. This is the default version of loadClass |
protected Class |
loadLocalClass(String className,
String fileName)
Deprecated. |
protected byte[] |
modifyByteCode(String className,
byte[] bytes)
Deprecated. This method exists only for api compatability. Execution of this method will return null value. |
void |
registerDelegationLoader(Object token,
AutoClassLoader loader)
Deprecated. Hierarchy handling: here child loaders may register by token. |
void |
release()
Deprecated. Release. |
void |
setForceDelegationToParent(boolean p_b)
Deprecated. |
String |
toString()
Deprecated. |
void |
unregisterDelegationLoader(Object token)
Deprecated. Hierarchy handling: here child loader may unregister by token. |
| Methods inherited from class com.sap.engine.frame.core.load.ReferencedLoader |
|---|
clearNegativeCache, clearNegativeCacheInReferees, definePackage, findRefResources, findResourcesByReference, getAdditionalInfo, getInfo, getLoadedClasses, getName, getParentLoader, getParentName, getReferencesFrom, getReferencesTo, getRefResource, getRefResourceAsStream, getResourceAsStreamByReference, getResourceByReference, invalidate, loadClass, loadClassByReference, loadRefClass, negativeCacheContains, prepareForRemove, setDebugMode, setLockMonitor, setName, setUseNegativeCache |
| Methods inherited from class java.security.SecureClassLoader |
|---|
defineClass, defineClass, getPermissions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AutoClassLoader(ClassLoader parentLoader)
public AutoClassLoader(ClassLoader parentLoader,
Object token)
public AutoClassLoader(ClassLoader parentLoader,
Object token,
Object[] delegationTokens)
public AutoClassLoader(ClassLoader parentLoader,
Object token,
boolean transitive)
The transitivity flag indicates whether this loader is used in an assured transitive class loader set up. This means that it will never be called with a set of delegation tokens that is not a superset of its own tokens. This must be ensured by its using environment. If this cannot be ensured, this loader should not be set to be in a transitive setup.
public AutoClassLoader(ClassLoader parentLoader,
Object token,
Object[] delegationTokens,
boolean transitive)
The transitivity flag indicates whether this loader is used in an assured transitive class loader set up. This means that it will never be called with a set of delegation tokens that is not a superset of its own tokens. This must be ensured by its using environment. If this cannot be ensured, this loader should not be set to be in a transitive setup.
public AutoClassLoader(ClassLoader parentLoader,
Object token,
Object[] delegationTokens,
boolean transitive,
boolean cyclic)
| Method Detail |
|---|
public void release()
public void registerDelegationLoader(Object token,
AutoClassLoader loader)
public void unregisterDelegationLoader(Object token)
public void addFile(File file)
public void addJarsInFolder(File libFolder)
public void addFolder(File folder)
public void addClassProtectionPrefix(String prefix)
public void addResourceProtectionPrefix(String prefix)
public Vector getPaths(boolean withDependencies)
public static Vector getPaths(ClassLoader loader,
Object[] tokens,
boolean delegateToParent)
public Vector getPath()
public String toString()
toString in class com.sap.engine.frame.core.load.ReferencedLoader
protected Class findClass(String name)
throws ClassNotFoundException
findClass in class com.sap.engine.frame.core.load.ReferencedLoaderClassNotFoundException
protected Package definePackage(String name,
Manifest man,
URL url)
throws IllegalArgumentException
IllegalArgumentException
protected Class loadClass(Object[] tokens,
String name,
boolean resolve,
boolean delegateToParent)
tokens - the delegation tokens to be used for further delegationname - the name of the class to be loadedresolve - resolve (initialize) the class right after loadingdelegateToParent - is this loader supposed to delegate to its parent, or simply look locally and by side delegation
See ClassLoader for the general documentation.
public Class loadClass(String name,
boolean resolve)
throws ClassNotFoundException
loadClass in class com.sap.engine.frame.core.load.ReferencedLoaderClassNotFoundExceptionprotected URL findResource(String name)
findResource in class ClassLoader
protected Enumeration findResources(String name)
throws IOException
findResources in class com.sap.engine.frame.core.load.ReferencedLoaderIOExceptionpublic InputStream getResourceAsStream(String name)
getResourceAsStream in class com.sap.engine.frame.core.load.ReferencedLoader
public URL getResource(Object[] tokens,
String name,
boolean delegateToParent)
ClassLoader for the general documentation.
public URL getResource(String name)
getResource in class com.sap.engine.frame.core.load.ReferencedLoader
protected Class loadLocalClass(String className,
String fileName)
throws ClassNotFoundException
loadLocalClass in class com.sap.engine.frame.core.load.ReferencedLoaderClassNotFoundExceptionprotected URL getLocalResource(String fileName)
getLocalResource in class com.sap.engine.frame.core.load.ReferencedLoader
protected Enumeration findLocalResources(String fileName)
throws IOException
findLocalResources in class com.sap.engine.frame.core.load.ReferencedLoaderIOExceptionprotected InputStream getLocalResourceAsStream(String fileName)
getLocalResourceAsStream in class com.sap.engine.frame.core.load.ReferencedLoaderpublic String[] getResourceNames()
getResourceNames in class com.sap.engine.frame.core.load.ReferencedLoaderpublic void setForceDelegationToParent(boolean p_b)
p_b -
protected byte[] modifyByteCode(String className,
byte[] bytes)
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
|
SAP NetWeaver 7.30 Enterprise Portal (SP03) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||