Class ComponentMetaInformationService
- java.lang.Object
-
- de.julielab.jcore.pipeline.builder.base.main.ComponentMetaInformationService
-
- All Implemented Interfaces:
IComponentMetaInformationService,Serializable
public class ComponentMetaInformationService extends Object implements IComponentMetaInformationService, Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompleteReload()List<de.julielab.utilities.aether.MavenArtifact>downloadArtifacts(List<de.julielab.utilities.aether.MavenArtifact> artifactIds)Builds a map of "artifact name" - "artifact file" representationsSet<de.julielab.utilities.aether.MavenArtifact>getArtifacts()List<String>getCategory(String componentName)String[]getDescriptors(String componentName)StringgetGroups(String componentName)static ComponentMetaInformationServicegetInstance()Collection<MetaDescription>getMetaInformation()Lists all exposed components of the module this ComponentMetaInformation object belongs to/ was created from.Collection<MetaDescription>getMetaInformation(ComponentRepository repository)Collection<MetaDescription>getMetaInformation(Boolean loadNew)Lists all exposed components of the module this ComponentMetaInformation object belongs to/ was created from.MetaDescriptiongetMetaInformation(String componentName)Gets the meta information of a specific component.MetaDescriptiongetMetaInformation(String componentName, Boolean loadNew)Gets the meta information of a specific component.Collection<MetaDescription>getMetaInformationWithArtifacts(Boolean loadNew)Lists all exposed components with their Maven artifacts already set.StringgetName(String componentName)List<ComponentRepository>getRepositories()Set<de.julielab.utilities.aether.MavenArtifact>loadAllArtifacts()voidloadComponentMetaInformation(Boolean loadNew)Builds a list of JsonObjects with their respective meta information.voidloadComponentMetaInformation(Boolean loadNew, ComponentRepository repository)voidloadMetaInformationFromDisk(ComponentRepository repository)
-
-
-
Method Detail
-
getInstance
public static ComponentMetaInformationService getInstance()
-
completeReload
public void completeReload() throws GithubInformationException, de.julielab.utilities.aether.MavenException- Specified by:
completeReloadin interfaceIComponentMetaInformationService- Throws:
GithubInformationExceptionde.julielab.utilities.aether.MavenException
-
loadMetaInformationFromDisk
public void loadMetaInformationFromDisk(ComponentRepository repository) throws GithubInformationException
- Specified by:
loadMetaInformationFromDiskin interfaceIComponentMetaInformationService- Throws:
GithubInformationException
-
loadComponentMetaInformation
public void loadComponentMetaInformation(Boolean loadNew, ComponentRepository repository) throws GithubInformationException
- Throws:
GithubInformationException
-
loadComponentMetaInformation
public void loadComponentMetaInformation(Boolean loadNew) throws GithubInformationException
Description copied from interface:IComponentMetaInformationServiceBuilds a list of JsonObjects with their respective meta information.- Specified by:
loadComponentMetaInformationin interfaceIComponentMetaInformationService- Throws:
GithubInformationException
-
getRepositories
public List<ComponentRepository> getRepositories()
-
downloadArtifacts
public List<de.julielab.utilities.aether.MavenArtifact> downloadArtifacts(List<de.julielab.utilities.aether.MavenArtifact> artifactIds) throws de.julielab.utilities.aether.MavenException
Description copied from interface:IComponentMetaInformationServiceBuilds a map of "artifact name" - "artifact file" representations- Specified by:
downloadArtifactsin interfaceIComponentMetaInformationService- Parameters:
artifactIds- a list of all the artifacts (their Maven ID) that should be downloaded.- Throws:
de.julielab.utilities.aether.MavenException
-
loadAllArtifacts
public Set<de.julielab.utilities.aether.MavenArtifact> loadAllArtifacts() throws GithubInformationException, de.julielab.utilities.aether.MavenException
- Specified by:
loadAllArtifactsin interfaceIComponentMetaInformationService- Returns:
- Throws:
GithubInformationExceptionde.julielab.utilities.aether.MavenException
-
getArtifacts
public Set<de.julielab.utilities.aether.MavenArtifact> getArtifacts() throws GithubInformationException
- Specified by:
getArtifactsin interfaceIComponentMetaInformationService- Throws:
GithubInformationException
-
getMetaInformation
public Collection<MetaDescription> getMetaInformation(ComponentRepository repository) throws GithubInformationException
- Specified by:
getMetaInformationin interfaceIComponentMetaInformationService- Throws:
GithubInformationException
-
getMetaInformation
public Collection<MetaDescription> getMetaInformation() throws GithubInformationException
Description copied from interface:IComponentMetaInformationServiceLists all exposed components of the module this ComponentMetaInformation object belongs to/ was created from.- Specified by:
getMetaInformationin interfaceIComponentMetaInformationService- Returns:
- Throws:
GithubInformationException
-
getMetaInformationWithArtifacts
public Collection<MetaDescription> getMetaInformationWithArtifacts(Boolean loadNew) throws GithubInformationException, de.julielab.utilities.aether.MavenException
Description copied from interface:IComponentMetaInformationServiceLists all exposed components with their Maven artifacts already set. Meta descriptions whose artifacts cannot be found are filtered out.- Specified by:
getMetaInformationWithArtifactsin interfaceIComponentMetaInformationService- Returns:
- Throws:
GithubInformationExceptionde.julielab.utilities.aether.MavenException
-
getMetaInformation
public MetaDescription getMetaInformation(String componentName) throws GithubInformationException
Description copied from interface:IComponentMetaInformationServiceGets the meta information of a specific component.- Specified by:
getMetaInformationin interfaceIComponentMetaInformationService- Returns:
- Throws:
GithubInformationException
-
getMetaInformation
public Collection<MetaDescription> getMetaInformation(Boolean loadNew) throws GithubInformationException
Description copied from interface:IComponentMetaInformationServiceLists all exposed components of the module this ComponentMetaInformation object belongs to/ was created from.- Specified by:
getMetaInformationin interfaceIComponentMetaInformationService- Returns:
- Throws:
GithubInformationException
-
getMetaInformation
public MetaDescription getMetaInformation(String componentName, Boolean loadNew) throws GithubInformationException
Description copied from interface:IComponentMetaInformationServiceGets the meta information of a specific component.- Specified by:
getMetaInformationin interfaceIComponentMetaInformationService- Returns:
- Throws:
GithubInformationException
-
getName
public String getName(String componentName) throws GithubInformationException
- Specified by:
getNamein interfaceIComponentMetaInformationService- Parameters:
componentName-- Returns:
- Throws:
GithubInformationException
-
getDescriptors
public String[] getDescriptors(String componentName) throws GithubInformationException, DescriptorLoadingException
- Specified by:
getDescriptorsin interfaceIComponentMetaInformationService- Parameters:
componentName-- Returns:
- Throws:
GithubInformationExceptionDescriptorLoadingException
-
getCategory
public List<String> getCategory(String componentName) throws GithubInformationException
- Specified by:
getCategoryin interfaceIComponentMetaInformationService- Parameters:
componentName-- Returns:
- Throws:
GithubInformationException
-
getGroups
public String getGroups(String componentName) throws GithubInformationException
- Specified by:
getGroupsin interfaceIComponentMetaInformationService- Parameters:
componentName- is a key of this.mavenDependencies- Returns:
- Throws:
GithubInformationException
-
-