|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.host.util.LaunchHelper
public final class LaunchHelper
Method Summary | |
---|---|
static Object |
invoke(Object instance,
String name,
Class<?>[] paramTypes,
Object... args)
Invoke a method on an object. |
static URL[] |
scanDirectoryForJars(File lib)
Scan a directory for jar files to be added to the classpath. |
static void |
setProperty(Object instance,
String name,
Object value)
Set a JavaBean property on an object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static URL[] scanDirectoryForJars(File lib)
lib
- the directory to scan
public static void setProperty(Object instance, String name, Object value)
instance
- the object whose property should be setname
- the name of the propertyvalue
- the value to set it topublic static Object invoke(Object instance, String name, Class<?>[] paramTypes, Object... args) throws InvocationTargetException
instance
- the object to invokename
- the name of the method to invokeargs
- arguments to call the method with
InvocationTargetException
- if the method throw an Exception
|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |