|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AriesApplicationManager
An AriesApplicationManager service is used to create, install and uninstall Aries applications.
| Method Summary | |
|---|---|
void |
addApplicationListener(AriesApplicationListener l)
Add an AriesApplicationListener |
AriesApplication |
createApplication(IDirectory source)
Create an AriesApplication from a local resource. |
AriesApplication |
createApplication(URL url)
Create an AriesApplication from a remote resource. |
AriesApplicationContext |
install(AriesApplication app)
Install an AriesApplication - i.e. |
void |
removeApplicationListener(AriesApplicationListener l)
Remove an AriesApplicationListener |
AriesApplication |
resolve(AriesApplication originalApp,
ResolveConstraint... constraints)
Resolve an AriesApplication against a set of constraints. |
void |
uninstall(AriesApplicationContext app)
Uninstall an AriesApplication - i.e. |
AriesApplicationContext |
update(AriesApplication app,
DeploymentMetadata depMf)
Update an application's deployment and apply the changes to the runtime if the application is deployed |
| Method Detail |
|---|
AriesApplication createApplication(IDirectory source)
throws ManagementException
source - .eba file, or exploded directory
ManagementException
AriesApplication createApplication(URL url)
throws ManagementException
url -
ManagementException
AriesApplicationContext install(AriesApplication app)
throws org.osgi.framework.BundleException,
ManagementException,
ResolverException
resolve(AriesApplication, ResolveConstraint...)
will be performed and the resolved application will be installed. In such a case the resolved
application can be obtained by calling AriesApplicationContext.getApplication()
on the returned ApplicationContext.
app - Application to install
org.osgi.framework.BundleException
ManagementException
ResolverException
void uninstall(AriesApplicationContext app)
throws org.osgi.framework.BundleException
app - The installed application to uninstall
org.osgi.framework.BundleExceptionvoid addApplicationListener(AriesApplicationListener l)
l - void removeApplicationListener(AriesApplicationListener l)
l -
AriesApplicationContext update(AriesApplication app,
DeploymentMetadata depMf)
throws UpdateException
app - The application to changedepMf - The new deployment metadata
AriesApplicationContext Returns a new application context if the app
is currently deployed, or null if the app is not currently installed
UpdateException - if the deployment changes could not be effected in the runtime
IllegalArgumentException - if the deployment metadata does not correspond to the same application
(same symbolic name and same version)
AriesApplication resolve(AriesApplication originalApp,
ResolveConstraint... constraints)
throws ResolverException
originalApp - Original applicationconstraints - Constraints
ResolverException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||