public class StateBasedContainerManager extends java.lang.Object implements IContainer.Manager
Constructor and Description |
---|
StateBasedContainerManager() |
Modifier and Type | Method and Description |
---|---|
protected IContainer |
createContainer(java.lang.String handle,
IResourceDescriptions resourceDescriptions) |
IContainer |
getContainer(IResourceDescription desc,
IResourceDescriptions resourceDescriptions) |
protected IAllContainersState |
getState(IResourceDescriptions resourceDescriptions) |
IAllContainersState.Provider |
getStateProvider() |
java.util.List<IContainer> |
getVisibleContainers(IResourceDescription desc,
IResourceDescriptions resourceDescriptions) |
protected java.util.List<IContainer> |
getVisibleContainers(java.util.List<java.lang.String> handles,
IResourceDescriptions resourceDescriptions) |
protected java.lang.String |
internalGetContainerHandle(IResourceDescription desc,
IResourceDescriptions resourceDescriptions) |
void |
setDelegate(ProjectDescriptionBasedContainerManager delegate) |
void |
setStateProvider(IAllContainersState.Provider stateProvider) |
public IContainer getContainer(IResourceDescription desc, IResourceDescriptions resourceDescriptions)
getContainer
in interface IContainer.Manager
IResourceDescription
. The result is never
null
.public java.util.List<IContainer> getVisibleContainers(IResourceDescription desc, IResourceDescriptions resourceDescriptions)
getVisibleContainers
in interface IContainer.Manager
IContainer
, which are visible from the given IResourceDescription
.
In an Java environment this would correspond to the list of class-path entries. The list includes the
container that contains the given resource description. However, the result may be empty due to
internal errors.protected IAllContainersState getState(IResourceDescriptions resourceDescriptions)
protected IContainer createContainer(java.lang.String handle, IResourceDescriptions resourceDescriptions)
protected java.util.List<IContainer> getVisibleContainers(java.util.List<java.lang.String> handles, IResourceDescriptions resourceDescriptions)
protected java.lang.String internalGetContainerHandle(IResourceDescription desc, IResourceDescriptions resourceDescriptions)
public IAllContainersState.Provider getStateProvider()
public void setStateProvider(IAllContainersState.Provider stateProvider)
public void setDelegate(ProjectDescriptionBasedContainerManager delegate)