|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlatformAdmin
Framework service which allows bundle programmers to inspect the bundles and packages known to the Framework. The PlatformAdmin service also allows bundles with sufficient privileges to update the state of the framework by committing a new configuration of bundles and packages. If present, there will only be a single instance of this service registered with the Framework.
Clients may implement this interface.
Method Summary | |
---|---|
void |
commit(State state)
Commit the differences between the current state and the given state. |
StateObjectFactory |
getFactory()
Returns a factory that knows how to create state objects, such as bundle descriptions and the different types of version constraints. |
Resolver |
getResolver()
Returns a resolver supplied by the system. |
State |
getState()
Returns a mutable state representing the current system. |
State |
getState(boolean mutable)
Returns a state representing the current system. |
StateHelper |
getStateHelper()
Returns a state helper object. |
Method Detail |
---|
State getState()
This is a convenience method, fully equivalent to
getState(true)
.
State getState(boolean mutable)
java.lang.UnsupportedOperationException
.
If a mutable state is requested, the resulting state will not be resolved.
mutable
- whether the returned state should mutable
StateHelper getStateHelper()
A possible implementation for this method would provide the same single StateHelper instance to all clients.
StateHelper
void commit(State state) throws BundleException
state
- the future state of the framework
BundleException
- if the id of the given state does not match that of the
current state or if the given state is not resolved.Resolver getResolver()
StateObjectFactory getFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |