@Immutable public class ProjectModelSource extends Object
ProjectModel instances. The source depends on what SPI implementations are available on the
classpath, hence you supply a class loader (or use the context class loader) so that the ServiceLoader
can look up the implementations that are within scope.| Constructor and Description |
|---|
ProjectModelSource()
Constructs an instance from the current thread's context classloader.
|
ProjectModelSource(ClassLoader classLoader)
Constructs an instance from a specific classloader.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
markerFiles(String basename)
Returns the set of marker filename(s) that the source supports based on the supplied basename.
|
ProjectModel |
submit(ProjectModelRequest request)
Submits a request and returns the resulting model
|
public ProjectModelSource(ClassLoader classLoader)
classLoader - the classloader.public ProjectModelSource()
@NonNull public Set<String> markerFiles(@NonNull String basename)
submit(ProjectModelRequest) (org.cloudbees.literate.api.v1.ProjectModelRequest)} against.basename - the ProjectModelRequest.getBaseName()@NonNull public ProjectModel submit(@NonNull ProjectModelRequest request) throws IOException, ProjectModelBuildingException
request - the request.ProjectModel.IOException - if there were IO problems connecting to the
ProjectModelRequest.getRepository().ProjectModelBuildingException - if the ProjectModelRequest.getRepository() did not contain a valid
model definition.Copyright © 2004-2014. All Rights Reserved.