Package jadex.platform.service.library
Class BasicDependencyService
- java.lang.Object
- 
- jadex.platform.service.library.BasicDependencyService
 
- 
- All Implemented Interfaces:
- IDependencyService
 
 public class BasicDependencyService extends java.lang.Object implements IDependencyService The basic dependency service for creating (local) rids.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IComponentIdentifiercidThe component identifier to use for creating local resource IDs.protected IInternalAccesscomponentThe service providing component.protected java.util.logging.LoggerloggerThe logger.
 - 
Constructor SummaryConstructors Constructor Description BasicDependencyService()Bean constructor for service creation.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<IResourceIdentifier>getResourceIdentifier(java.net.URL url)Get the resource identifier for an url.IFuture<Tuple2<IResourceIdentifier,java.util.Map<IResourceIdentifier,java.util.List<IResourceIdentifier>>>>loadDependencies(IResourceIdentifier rid, boolean workspace)Load dependencies from a resource identifier.IFuture<java.lang.Void>startService()Start the service.
 
- 
- 
- 
Field Detail- 
componentprotected IInternalAccess component The service providing component.
 - 
loggerprotected java.util.logging.Logger logger The logger.
 - 
cidprotected IComponentIdentifier cid The component identifier to use for creating local resource IDs. The assumption is that URLs are only valid on the local platform.
 
- 
 - 
Method Detail- 
startServicepublic IFuture<java.lang.Void> startService() Start the service.
 - 
loadDependenciespublic IFuture<Tuple2<IResourceIdentifier,java.util.Map<IResourceIdentifier,java.util.List<IResourceIdentifier>>>> loadDependencies(IResourceIdentifier rid, boolean workspace) Load dependencies from a resource identifier.- Specified by:
- loadDependenciesin interface- IDependencyService
- Parameters:
- rid- A local or global resource identifier. If both local and global ids are present, local takes precedence, e.g. resolving to workspace urls before fetching an older snapshot from a repository.
- Returns:
- A map containing the dependencies as mapping (parent RID -> list of children RIDs).
 
 - 
getResourceIdentifierpublic IFuture<IResourceIdentifier> getResourceIdentifier(java.net.URL url) Get the resource identifier for an url.- Specified by:
- getResourceIdentifierin interface- IDependencyService
- Parameters:
- url- The url.
- Returns:
- The resource identifier.
 
 
- 
 
-