@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.
|
public ProjectModelSource(ClassLoader classLoader)
classLoader - the classloader.public ProjectModelSource()
@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-2013. All Rights Reserved.