public class ServiceInspector extends Object
| Constructor and Description |
|---|
ServiceInspector(RepositoryService service) |
| Modifier and Type | Method and Description |
|---|---|
<A,T extends Asset> |
importerFor(AssetType type,
Class<? extends A> api)
Returns an
Importer of the RepositoryService which is bound to the AssetType of a given
Asset and to a given API. |
Set<? extends Importer<?,?>> |
importersFor(AssetType type)
|
<A,T extends Asset> |
publisherFor(AssetType type,
Class<? extends A> api)
Returns a
Publisher of the RepositoryService bound to the AssetType of a given
Asset and to a given API. |
Set<? extends Publisher<?,?>> |
publishersFor(AssetType type)
|
List<AssetType> |
returned(AssetType... types)
Returns the
AssetTypes supported for import by the RepositoryService among a given set of
such types. |
boolean |
returns(AssetType type,
Class<?> api)
Returns
true if the service can retrieve assets of a given AssetType with a given API. |
List<AssetType> |
taken(AssetType... types)
Returns the
AssetTypes supported for publication by the RepositoryService. |
boolean |
takes(AssetType type,
Class<?> api)
Returns
true if the service can publish assets of a given AssetType with a given API. |
public ServiceInspector(RepositoryService service)
public List<AssetType> returned(AssetType... types)
AssetTypes supported for import by the RepositoryService among a given set of
such types.types - the given set of typespublic List<AssetType> taken(AssetType... types)
AssetTypes supported for publication by the RepositoryService.types - the given set of typespublic <A,T extends Asset> Importer<T,A> importerFor(AssetType type, Class<? extends A> api)
Importer of the RepositoryService which is bound to the AssetType of a given
Asset and to a given API.asset - the assetapi - the bound APIIllegalStateException - if the RepositoryService has no importer bound to the type of the given
asset and the given APIpublic Set<? extends Importer<?,?>> importersFor(AssetType type)
type - the bound type of the importerspublic Set<? extends Publisher<?,?>> publishersFor(AssetType type)
type - the bound type of the publisherspublic <A,T extends Asset> Publisher<T,A> publisherFor(AssetType type, Class<? extends A> api)
Publisher of the RepositoryService bound to the AssetType of a given
Asset and to a given API.asset - the assetapi - the bound API of the publisherIllegalStateException - if the RepositoryService has no publisher bound to the type of the given
asset and the given APIpublic boolean returns(AssetType type, Class<?> api)
true if the service can retrieve assets of a given AssetType with a given API.type - the typeapi - the apitrue if the service can retrieve assets of the given type with the given APICopyright © 2018. All rights reserved.