public class DirectDataSourceRepository extends Object
DirectDataSource.| Constructor and Description |
|---|
DirectDataSourceRepository(Collection<? extends DirectDataSourceProvider> providers)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getComponentPath(String path)
Returns the component path of the target path.
|
String |
getContainerPath(String path)
Returns the container path of the target path.
|
Collection<String> |
getContainerPaths()
Returns all
DirectDataSources registered in this repository. |
DirectDataSource |
getRelatedDataSource(String path)
Returns a data source which related to the specified path.
|
String |
getRelatedId(String path)
Returns an ID which related to the specified path.
|
public DirectDataSourceRepository(Collection<? extends DirectDataSourceProvider> providers)
providers - provider objectsIllegalArgumentException - if some parameters were nullpublic String getRelatedId(String path) throws IOException
path - target pathIOException - if failed to prepare the data sourceIllegalArgumentException - if some parameters were nullpublic DirectDataSource getRelatedDataSource(String path) throws IOException, InterruptedException
path - target pathIOException - if failed to prepare the data sourceInterruptedException - if interruptedIllegalArgumentException - if some parameters were nullpublic String getContainerPath(String path) throws IOException
path - target pathIOException - if failed to detect the pathIllegalArgumentException - if some parameters were nullpublic String getComponentPath(String path) throws IOException
container path.path - target pathIOException - if failed to detect the pathIllegalArgumentException - if some parameters were nullpublic Collection<String> getContainerPaths() throws IOException, InterruptedException
DirectDataSources registered in this repository.DirectDataSourcesIOException - if failed to initialize data sourcesInterruptedException - if interruptedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.