public class JDKBridge extends Object
Constructor and Description |
---|
JDKBridge() |
Modifier and Type | Method and Description |
---|---|
static String |
getLocalCodebase()
Get local codebase System property (java.rmi.server.codebase).
|
static Class |
loadClass(String className)
Returns a class instance for the specified class.
|
static Class |
loadClass(String className,
String remoteCodebase)
Returns a class instance for the specified class.
|
static Class |
loadClass(String className,
String remoteCodebase,
ClassLoader loader)
Returns a class instance for the specified class.
|
static void |
main(String[] args) |
static void |
setCodebaseProperties()
Set the codebase and useCodebaseOnly properties.
|
static void |
setLocalCodebase(String codebase)
Set the default code base.
|
static boolean |
useCodebaseOnly()
Return true if the system property "java.rmi.server.useCodebaseOnly"
is set, false otherwise.
|
public static String getLocalCodebase()
public static boolean useCodebaseOnly()
public static Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException
className
- the name of the classremoteCodebase
- a space-separated array of urls at which
the class might be found. May be null.loader
- a ClassLoader who may be used to
load the class if all other methods fail.Class
object representing the loaded class.throws
- ClassNotFoundException if class cannot be loaded.ClassNotFoundException
public static Class loadClass(String className, String remoteCodebase) throws ClassNotFoundException
className
- the name of the classremoteCodebase
- a space-separated array of urls at which
the class might be found. May be null.Class
object representing the loaded class.throws
- ClassNotFoundException if class cannot be loaded.ClassNotFoundException
public static Class loadClass(String className) throws ClassNotFoundException
className
- the name of the classClass
object representing the loaded class.throws
- ClassNotFoundException if class cannot be loaded.ClassNotFoundException
public static final void main(String[] args)
public static void setCodebaseProperties()
public static void setLocalCodebase(String codebase)
Copyright © 2018 JBoss by Red Hat. All rights reserved.