public class ConnectorApplication extends Object implements ApplicationContainer, EventListener
EventListener.Event<T>| Constructor and Description |
|---|
ConnectorApplication(String moduleName,
String appName,
ResourceManager resourceManager,
ApplicationScopedResourcesManager asrManager,
ClassLoader loader,
ConnectorRuntime runtime,
Events event,
ConnectorDescriptor descriptor) |
| Modifier and Type | Method and Description |
|---|---|
void |
deployResources()
deploy all resources/pools pertaining to this resource adapter
|
void |
event(EventListener.Event event)
event listener to listen to resource-adapter undeploy validation and
to validate the undeployment.
|
String |
getApplicationName() |
ClassLoader |
getClassLoader()
Returns the class loader associated with this application
|
Object |
getDescriptor()
Returns the deployment descriptor associated with this application
|
String |
getModuleName()
returns the module name
|
void |
logFine(String message) |
boolean |
resume()
Resumes this application container.
|
void |
setModuleName(String moduleName)
set the module name of the application
|
boolean |
start(ApplicationContext startupContext)
Starts an application container.
|
boolean |
stop(ApplicationContext stopContext)
Stop the application container
|
boolean |
suspend()
Suspends this application container.
|
boolean |
undeployGlobalResources(boolean failIfResourcesExist)
undeploy all resources/pools pertaining to this resource adapter
|
void |
undeployResources()
undeploy all resources/pools pertaining to this resource adapter
|
public ConnectorApplication(String moduleName, String appName, ResourceManager resourceManager, ApplicationScopedResourcesManager asrManager, ClassLoader loader, ConnectorRuntime runtime, Events event, ConnectorDescriptor descriptor)
public Object getDescriptor()
getDescriptor in interface ApplicationContainerpublic boolean start(ApplicationContext startupContext)
start in interface ApplicationContainerstartupContext - the start up contextpublic void deployResources()
public void undeployResources()
public boolean undeployGlobalResources(boolean failIfResourcesExist)
public boolean stop(ApplicationContext stopContext)
stop in interface ApplicationContainerstopContext - public boolean suspend()
suspend in interface ApplicationContainerpublic boolean resume()
resume in interface ApplicationContainerpublic ClassLoader getClassLoader()
getClassLoader in interface ApplicationContainerpublic void logFine(String message)
public String getModuleName()
public void setModuleName(String moduleName)
moduleName - module-namepublic String getApplicationName()
public void event(EventListener.Event event)
event in interface EventListenerevent - EventCopyright © 2017. All rights reserved.