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
DirectDataSource s 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 null
public String getRelatedId(String path) throws IOException
path
- target pathIOException
- if failed to prepare the data sourceIllegalArgumentException
- if some parameters were null
public DirectDataSource getRelatedDataSource(String path) throws IOException, InterruptedException
path
- target pathIOException
- if failed to prepare the data sourceInterruptedException
- if interruptedIllegalArgumentException
- if some parameters were null
public String getContainerPath(String path) throws IOException
path
- target pathIOException
- if failed to detect the pathIllegalArgumentException
- if some parameters were null
public String getComponentPath(String path) throws IOException
container path
.path
- target pathIOException
- if failed to detect the pathIllegalArgumentException
- if some parameters were null
public Collection<String> getContainerPaths() throws IOException, InterruptedException
DirectDataSource
s registered in this repository.DirectDataSource
sIOException
- if failed to initialize data sourcesInterruptedException
- if interruptedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.