|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IContainerManager
Method Summary | |
---|---|
void |
addRelatedContainerUri(java.lang.String containerUri,
java.lang.String relatedContainerUri)
Add a containerUri String to the list of related Containers in specified ContextContainer |
void |
close()
Close the ContainerManager. |
void |
closeContainer(java.lang.String containerUri)
Close the ContextContainer (however, a reference count of Container users is kept so it may not "really" close. |
void |
configure(IContainerConfiguration config)
Not sure how configuration of the ContainerManager is really going to work. |
java.lang.String |
getHomeIdentifier()
return the uri of the ContainerManager, Container manager is a singleton |
java.util.Map |
getNameToContainerUriMap()
Provides a mapping from Container Name to Container Uri uses information from ContainerConfigurations so Containers do not have to be opened. |
java.lang.Object |
getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration)
|
java.util.Map |
getUriToContainerNameMap()
Provides a mapping from Container Uri to Container Name uses information from ContainerConfigurations so Containers do not have to be opened. |
java.util.List |
listAllRelatedContainerUris(ContextContainer startContainer)
Get a list of all containers directly and indirectly related to this container. |
java.util.List |
listAllRelatedContainerUris(java.lang.String startContainerUri)
Get a list of all containers directly and indirectly related to this container. |
java.util.List |
listContainerUris()
|
java.util.List |
listOpenContainers()
|
java.util.List |
listOpenContainersWithRepository(java.lang.String repositoryName)
Find a list of ProjectContextContainer names which contain a RepositoryDescriptor with the given name |
java.util.List |
listRelatedContainerUris(ContextContainer container)
Get a list of the containers list as related to this container. |
java.util.List |
listRelatedContainerUris(java.lang.String containerUri)
Get a list of the containers list as related to this container. |
IContainerConfiguration |
loadConfiguration(java.lang.String containerUri)
Load the configuration for this ContextContainer |
ContextContainer |
openContainer(java.lang.String containerUri)
Open an existing ContextContainer, |
void |
removeRelatedContainerUri(java.lang.String containerUri,
java.lang.String relatedContainerUri)
Remove a containerUri String from the list of related Containers in specified ContextContainer |
java.lang.Object |
resolveContainer(java.lang.String containerUri,
IContainerConfiguration containerConfig)
Finds an existing Container if none exists with specified containerUri a new one is created. |
void |
saveContainer(java.lang.String containerUri)
serializes the ContextContainer object to disk location specified in the ContainerConfiguration |
void |
ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
java.lang.Object service)
|
Method Detail |
---|
IContainerConfiguration loadConfiguration(java.lang.String containerUri)
containerUri
- uri used to uniquely identify the ContextContainer
java.lang.Object resolveContainer(java.lang.String containerUri, IContainerConfiguration containerConfig)
containerUri
- uri used to uniquely identify the ContextContainercontainerConfig
- the configuration object for this this type of Container
ContextContainer openContainer(java.lang.String containerUri)
containerUri
- uri used to uniquely identify the ContextContainer
void saveContainer(java.lang.String containerUri)
containerUri
- uri used to uniquely identify the ContextContainervoid closeContainer(java.lang.String containerUri)
containerUri
- uri used to uniquely identify the ContextContainerjava.util.Map getNameToContainerUriMap()
java.util.Map getUriToContainerNameMap()
java.util.List listRelatedContainerUris(java.lang.String containerUri)
containerUri
- uri used to uniquely identify the ContextContainer
java.util.List listRelatedContainerUris(ContextContainer container)
container
- ContextContainer object
java.util.List listAllRelatedContainerUris(java.lang.String startContainerUri)
startContainer
- uri used to uniquely identify the ContextContainer to start finding
related containers from.
java.util.List listAllRelatedContainerUris(ContextContainer startContainer)
startContainer
- uri used to uniquely identify the ContextContainer to start finding
related containers from.
void addRelatedContainerUri(java.lang.String containerUri, java.lang.String relatedContainerUri)
containerUri
- uri used to uniquely identify the ContextContainerrelatedContainerUri
- uri used to uniquely identify the related ContextContainervoid removeRelatedContainerUri(java.lang.String containerUri, java.lang.String relatedContainerUri)
containerUri
- uri used to uniquely identify the ContextContainerrelatedContainerUri
- uri used to uniquely identify the related ContextContainerjava.util.List listOpenContainers()
java.util.List listOpenContainersWithRepository(java.lang.String repositoryName)
repositoryName
- the name of the repository to search for in the open ProjectContextContainers
java.util.List listContainerUris()
java.lang.String getHomeIdentifier()
void configure(IContainerConfiguration config)
config
- void close()
java.lang.Object getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
bundle
- registration
-
void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration, java.lang.Object service)
bundle
- registration
- service
-
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |