public class OsgiFactoryImpl extends java.lang.Object implements OsgiFactory, SlcNames
OsgiFactory
.SLC_, SLC_ADDRESS, SLC_AGENTS, SLC_AGGREGATED_STATUS, SLC_ARTIFACT_CLASSIFIER, SLC_ARTIFACT_EXTENSION, SLC_ARTIFACT_ID, SLC_ARTIFACT_VERSION, SLC_AS_STRING, SLC_BUNDLE_VERSION, SLC_CATEGORY, SLC_COMPLETED, SLC_ERROR_MESSAGE, SLC_EXECUTION_SPECS, SLC_FLOW, SLC_GROUP_BASE_ID, SLC_GROUP_ID, SLC_IS_CONSTANT, SLC_IS_HIDDEN, SLC_IS_IMMUTABLE, SLC_ISSUES, SLC_LOG, SLC_MAJOR, SLC_MANIFEST, SLC_MESSAGE, SLC_METADATA, SLC_MICRO, SLC_MINOR, SLC_MODULES, SLC_MY_RESULTS, SLC_NAME, SLC_OPTIONAL, SLC_ORIGIN, SLC_PROCESSES, SLC_PROXY, SLC_QUALIFIER, SLC_RESULT_PART, SLC_RESULTS, SLC_RPM_ARCH, SLC_RPM_ARCHIVE_SIZE, SLC_RPM_RELEASE, SLC_RPM_VERSION, SLC_SPEC, SLC_STARTED, SLC_STATUS, SLC_SUCCESS, SLC_SUMMARY, SLC_SYMBOLIC_NAME, SLC_SYSTEM, SLC_TAG, SLC_TEST_CASE, SLC_TEST_CASE_TYPE, SLC_TIMESTAMP, SLC_TYPE, SLC_URL, SLC_USES, SLC_UUID, SLC_VALUE, SLC_VERSION, SLC_VM
Constructor and Description |
---|
OsgiFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
Node |
getDist(Session distSession,
java.lang.String uri)
Provide access to a third party archive in the 'dist' repository,
downloading it if it is not available.
|
Node |
getMaven(Session distSession,
java.lang.String coords)
Provide access to a cached maven ardifact identified by its coordinates
the 'dist' repository, downloading it if it is not available.
|
void |
indexNode(Node node) |
void |
init() |
protected Node |
loadUrlToPath(java.lang.String url,
Session distSession,
java.lang.String path)
Actually downloads a file to an internal location
|
Session |
openDistSession() |
Session |
openJavaSession() |
void |
setDistRepository(Repository distRepository) |
void |
setJavaRepository(Repository javaRepository) |
void |
setMavenProxyBase(java.lang.String mavenProxyBase) |
void |
setMavenRepositories(java.util.List<java.lang.String> mavenRepositories) |
void |
setMirrors(java.util.Map<java.lang.String,java.util.List<java.lang.String>> mirrors) |
void |
setNodeIndexers(java.util.List<NodeIndexer> nodeIndexers) |
void |
setWorkspace(java.lang.String workspace) |
public void init()
public void destroy()
public Session openJavaSession() throws RepositoryException
openJavaSession
in interface OsgiFactory
RepositoryException
public Session openDistSession() throws RepositoryException
openDistSession
in interface OsgiFactory
RepositoryException
public void indexNode(Node node)
indexNode
in interface OsgiFactory
public Node getMaven(Session distSession, java.lang.String coords) throws RepositoryException
OsgiFactory
getMaven
in interface OsgiFactory
RepositoryException
public Node getDist(Session distSession, java.lang.String uri) throws RepositoryException
OsgiFactory
getDist
in interface OsgiFactory
RepositoryException
protected Node loadUrlToPath(java.lang.String url, Session distSession, java.lang.String path) throws RepositoryException, java.io.FileNotFoundException
RepositoryException
java.io.FileNotFoundException
public void setWorkspace(java.lang.String workspace)
public void setDistRepository(Repository distRepository)
public void setJavaRepository(Repository javaRepository)
public void setNodeIndexers(java.util.List<NodeIndexer> nodeIndexers)
public void setMirrors(java.util.Map<java.lang.String,java.util.List<java.lang.String>> mirrors)
public void setMavenRepositories(java.util.List<java.lang.String> mavenRepositories)
public void setMavenProxyBase(java.lang.String mavenProxyBase)
Copyright © 2007–2020. All rights reserved.