| org.apache.geronimo.kernel.config.ConfigurationStore
All known Subclasses: org.apache.geronimo.kernel.config.NullConfigurationStore,
ConfigurationStore | public interface ConfigurationStore (Code) | | Interface to a store for Configurations.
version: $Rev: 566893 $ $Date: 2007-08-16 17:52:52 -0700 (Thu, 16 Aug 2007) $ |
containsConfiguration | boolean containsConfiguration(Artifact configId)(Code) | | Determines if the store contains a configuration with the specified ID.
The configuration need not be loaded or running, this just checks
whether the configuration store has the data for it.
Parameters: configId - the unique ID of the configuration, which must be fullyresolved (isResolved() == true) true if the store contains the configuration |
createNewConfigurationDir | File createNewConfigurationDir(Artifact configId) throws ConfigurationAlreadyExistsException(Code) | | Creates an empty directory for a new configuration with the specified configId
Parameters: configId - the unique ID of the configuration, which must be fullyresolved (isResolved() == true) the location of the new directory throws: ConfigurationAlreadyExistsException - if the configuration already exists in this store |
exportConfiguration | void exportConfiguration(Artifact configId, OutputStream output) throws IOException, NoSuchConfigException(Code) | | Exports a configuration as a ZIP file.
Parameters: configId - The unique ID of the configuration to export, whichmust be fully resolved (isResolved() == true) Parameters: output - The stream to write the ZIP content to |
getAbstractName | AbstractName getAbstractName()(Code) | | Return the object name for the store.
the object name for the store |
getObjectName | String getObjectName()(Code) | | Return the object name for the store.
the object name for the store |
isInPlaceConfiguration | boolean isInPlaceConfiguration(Artifact configId) throws NoSuchConfigException, IOException(Code) | | Determines if the identified configuration is an in-place one. This
means that the configuration store only stores some meta-data and the
actual content of the configuration is rooted somewhere else.
Parameters: configId - the unique ID of the configuration, which must be fullyresolved (isResolved() == true) true if the identified configuration is an in-place one. throws: NoSuchConfigException - if the configuration is not contained inthe store throws: IOException - If the store cannot be read. |
listConfigurations | List<ConfigurationInfo> listConfigurations()(Code) | | Return the configurations in the store
a List (with entries of type ConfigurationInfo) of all theconfigurations contained in this configuration store |
resolve | Set<URL> resolve(Artifact configId, String moduleName, String path) throws NoSuchConfigException, MalformedURLException(Code) | | Locate the physical locations which match the supplied path in the given
artifact/module. The path may be an Ant-style pattern.
Parameters: configId - the artifact to search, which must be fully resolved(isResolved() == true) Parameters: moduleName - the module name or null to search in the top-levelartifact location Parameters: path - the pattern to search for within the artifact/module,which may also be null to identify the artifact ormodule base path a Set (with entries of type URL) of the matching locations |
|
|