@Service @PerLookup public class AppClientServerApplication extends Object implements ApplicationContainer<ApplicationClientDescriptor>
The primary purpose of this class is to implement Java Web Start support for launches of this app client. Other than in that sense, app clients do not run in the server. To support a client for Java Web Start launches, this class figures out what static content (JAR files) and dynamic content (JNLP documents) are needed by the client. It then generates the required dynamic content templates and submits them and the static content to a Grizzly adapter which actually serves the data in response to requests.
| Constructor and Description |
|---|
AppClientServerApplication() |
| Modifier and Type | Method and Description |
|---|---|
DeploymentContext |
dc() |
String |
deployedAppName() |
ClassLoader |
getClassLoader()
Returns the class loader associated with this application
|
ApplicationClientDescriptor |
getDescriptor()
Returns the deployment descriptor associated with this application
|
AppClientDeployerHelper |
helper() |
void |
init(DeploymentContext dc,
AppClientDeployerHelper helper) |
boolean |
matches(String appName,
String moduleName) |
String |
moduleExpression() |
String |
registrationName() |
boolean |
resume()
Resumes this application container.
|
boolean |
start(ApplicationContext startupContext)
Starts an application container.
|
boolean |
stop(ApplicationContext stopContext)
Stop the application container
|
boolean |
suspend()
Suspends this application container.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializepublic void init(DeploymentContext dc, AppClientDeployerHelper helper)
public String deployedAppName()
public ApplicationClientDescriptor getDescriptor()
ApplicationContainergetDescriptor in interface ApplicationContainer<ApplicationClientDescriptor>public AppClientDeployerHelper helper()
public boolean start(ApplicationContext startupContext) throws Exception
ApplicationContainerstart in interface ApplicationContainer<ApplicationClientDescriptor>startupContext - the start up contextException - if this application container could not be startedpublic boolean stop(ApplicationContext stopContext)
ApplicationContainerstop in interface ApplicationContainer<ApplicationClientDescriptor>public boolean suspend()
ApplicationContainersuspend in interface ApplicationContainer<ApplicationClientDescriptor>public boolean resume()
throws Exception
ApplicationContainerresume in interface ApplicationContainer<ApplicationClientDescriptor>Exception - if this application container could not be
resumedpublic ClassLoader getClassLoader()
ApplicationContainergetClassLoader in interface ApplicationContainer<ApplicationClientDescriptor>public DeploymentContext dc()
public String registrationName()
public String moduleExpression()
Copyright © 2019. All rights reserved.