public class RexxExtendingClassLoader
extends java.lang.ClassLoader
------------------------ Apache Version 2.0 license ------------------------- Copyright (C) 2009 Rony G. Flatscher Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -----------------------------------------------------------------------------
Modifier and Type | Field and Description |
---|---|
(package private) static int |
jvmClassVersion
Gets and stores the class version of the JVM.
|
Constructor and Description |
---|
RexxExtendingClassLoader() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
generateAndLoadExtendedClass(java.lang.String clzName)
Reads the given class and generates a new, extended which forwards all method invocations
to a RexxProxy.
|
java.lang.Class |
generateAndLoadExtendedClass(java.lang.String clzName,
java.lang.String clzNewName,
int classVersion)
Reads the given class and generates a new, extended which forwards all method invocations
to a RexxProxy.
|
java.lang.Class |
generateAndLoadExtendedClass(java.lang.String clzName,
java.lang.String clzNewName,
int classVersion,
java.lang.String[] methodNamesToAdd)
Reads the given class and generates a new, extended which forwards all method invocations
to a RexxProxy.
|
static void |
main(java.lang.String[] args)
Allows to supply the Java class name, the extended (new) name to use and the desired
class version of the newly created extended class file.
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
static final int jvmClassVersion
public java.lang.Class generateAndLoadExtendedClass(java.lang.String clzName) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public java.lang.Class generateAndLoadExtendedClass(java.lang.String clzName, java.lang.String clzNewName, int classVersion) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public java.lang.Class generateAndLoadExtendedClass(java.lang.String clzName, java.lang.String clzNewName, int classVersion, java.lang.String[] methodNamesToAdd) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception