|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Deployment
Service that abstracts the actual implementation that manages components that are to be deployed.
Implementations of this interface could for example make use of the DeploymentAdmin
from the OSGi spec to actually deploy packages. The objects used as arguments and return values
must all be of the same type, which type depends on the implementation.
Method Summary | |
---|---|
String |
getName(Object object)
Gets the name of the specified update package. |
org.osgi.framework.Version |
getVersion(Object object)
Gets the version of the specified update package. |
Object |
install(InputStream inputStream)
Deploys the contents of the stream onto the system. |
Object[] |
list()
Retrieve a list of installed update packages. |
Method Detail |
---|
Object install(InputStream inputStream) throws Exception
inputStream
- Stream containing new components.
Exception
- If the specified stream could not be deployed.String getName(Object object) throws IllegalArgumentException
Object
s returned
by the same implementation of this interface.
object
- The update package
IllegalArgumentException
- when the specified object is an invalid update package, only Objects returned by the same implementation of this interface should be used.org.osgi.framework.Version getVersion(Object object) throws IllegalArgumentException
Object
s returned
by the same implementation of this interface.
object
- The update package
IllegalArgumentException
- when the specified object is an invalid update package, only Objects returned by the same implementation of this interface should be used.Object[] list()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |