org.jboss.client
Class ReflectionLauncher

java.lang.Object
  extended by org.jboss.client.ReflectionLauncher
All Implemented Interfaces:
AppClientLauncher

public class ReflectionLauncher
extends Object
implements AppClientLauncher

A AppClientLauncher implementation that simply looks for a static main method on the

Version:
$Revision: 85945 $
Author:
Scott.Stark@jboss.org

Constructor Summary
ReflectionLauncher()
           
 
Method Summary
 void launch(String clientClass, String clientName, String[] args)
          Launch a javaee client application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionLauncher

public ReflectionLauncher()
Method Detail

launch

public void launch(String clientClass,
                   String clientName,
                   String[] args)
            throws Throwable
Launch a javaee client application.

Specified by:
launch in interface AppClientLauncher
Parameters:
clientClass - - the class whose main(String[]) will be invoked
clientName - - the client name that maps to the server side JNDI ENC. May be null indicating the name should be taken from the client jar descriptors/annotations.
args - - the args to pass to main method
Throws:
Throwable


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.