public interface PlatformAdmin
This interface is not intended to be implemented by clients.
Modifier and Type | Method and Description |
---|---|
void |
addDisabledInfo(DisabledInfo disabledInfo)
Adds the disabled info to the state managed by this platform admin.
|
void |
commit(State state)
Commit the differences between the current state and the given state.
|
Resolver |
createResolver()
|
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()
Deprecated.
in favour of
createResolver() . |
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.
|
void |
removeDisabledInfo(DisabledInfo disabledInfo)
Removes the disabled info from the state managed by this platform admin.
|
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 and the user objects from the system state bundle descriptions will not be copied.
mutable
- whether the returned state should mutableStateHelper 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 frameworkBundleException
- 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()
createResolver()
.Resolver createResolver()
Resolver
.StateObjectFactory getFactory()
void addDisabledInfo(DisabledInfo disabledInfo)
disabledInfo
- the disabled info to add.IllegalArgumentException
- if the BundleDescription
for
the specified disabled info does not exist in the state managed by this platform admin.void removeDisabledInfo(DisabledInfo disabledInfo)
disabledInfo
- the disabled info to removeCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.