public class RemoteAgent
extends java.lang.Object
implements org.eclipse.equinox.p2.core.IProvisioningAgent
Modifier and Type | Class and Description |
---|---|
(package private) static class |
RemoteAgent.AgentBuilder
Wrapper around an
IProvisioningAgent with type-safe service access. |
Modifier and Type | Field and Description |
---|---|
private org.eclipse.equinox.p2.core.IProvisioningAgent |
delegate |
Constructor and Description |
---|
RemoteAgent(MavenContext mavenContext) |
RemoteAgent(MavenContext mavenContext,
boolean disableP2Mirrors) |
RemoteAgent(MavenContext mavenContext,
MavenRepositorySettings mavenRepositorySettings,
boolean disableMirrors) |
Modifier and Type | Method and Description |
---|---|
private static void |
addMavenAwareRepositoryManagers(RemoteAgent.AgentBuilder agent,
MavenRepositorySettings mavenRepositorySettings,
MavenLogger logger) |
private static void |
addP2MirrorDisablingRepositoryManager(RemoteAgent.AgentBuilder agent,
MavenLogger mavenLogger) |
private static org.eclipse.equinox.p2.core.IProvisioningAgent |
createConfiguredProvisioningAgent(MavenContext mavenContext,
boolean disableP2Mirrors,
MavenRepositorySettings mavenRepositorySettings) |
<T> T |
getService(java.lang.Class<T> type) |
java.lang.Object |
getService(java.lang.String serviceName) |
private static void |
makeCompositeRepositoryLoadingAtomicByDefault() |
void |
registerService(java.lang.String serviceName,
java.lang.Object service) |
void |
stop() |
void |
unregisterService(java.lang.String serviceName,
java.lang.Object service) |
public RemoteAgent(MavenContext mavenContext, MavenRepositorySettings mavenRepositorySettings, boolean disableMirrors) throws org.eclipse.equinox.p2.core.ProvisionException
org.eclipse.equinox.p2.core.ProvisionException
RemoteAgent(MavenContext mavenContext, boolean disableP2Mirrors) throws org.eclipse.equinox.p2.core.ProvisionException
org.eclipse.equinox.p2.core.ProvisionException
public RemoteAgent(MavenContext mavenContext) throws org.eclipse.equinox.p2.core.ProvisionException
org.eclipse.equinox.p2.core.ProvisionException
private static org.eclipse.equinox.p2.core.IProvisioningAgent createConfiguredProvisioningAgent(MavenContext mavenContext, boolean disableP2Mirrors, MavenRepositorySettings mavenRepositorySettings) throws org.eclipse.equinox.p2.core.ProvisionException
org.eclipse.equinox.p2.core.ProvisionException
private static void addP2MirrorDisablingRepositoryManager(RemoteAgent.AgentBuilder agent, MavenLogger mavenLogger)
private static void addMavenAwareRepositoryManagers(RemoteAgent.AgentBuilder agent, MavenRepositorySettings mavenRepositorySettings, MavenLogger logger)
private static void makeCompositeRepositoryLoadingAtomicByDefault()
public java.lang.Object getService(java.lang.String serviceName)
getService
in interface org.eclipse.equinox.p2.core.IProvisioningAgent
public void registerService(java.lang.String serviceName, java.lang.Object service)
registerService
in interface org.eclipse.equinox.p2.core.IProvisioningAgent
public <T> T getService(java.lang.Class<T> type)
getService
in interface org.eclipse.equinox.p2.core.IProvisioningAgent
public void stop()
stop
in interface org.eclipse.equinox.p2.core.IProvisioningAgent
public void unregisterService(java.lang.String serviceName, java.lang.Object service)
unregisterService
in interface org.eclipse.equinox.p2.core.IProvisioningAgent