Package org.eclipse.tycho.p2.manager
Class ReactorRepositoryManagerImpl
- java.lang.Object
-
- org.eclipse.tycho.p2.manager.ReactorRepositoryManagerImpl
-
- All Implemented Interfaces:
ReactorRepositoryManagerFacade
,ReactorRepositoryManager
public class ReactorRepositoryManagerImpl extends java.lang.Object implements ReactorRepositoryManager
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.equinox.p2.core.IProvisioningAgent
agent
private java.io.File
agentDir
private org.eclipse.equinox.p2.core.IProvisioningAgentProvider
agentFactory
private static java.lang.String
FINAL_TARGET_PLATFORM_KEY
private static java.lang.String
PRELIMINARY_TARGET_PLATFORM_KEY
private TargetPlatformFactory
tpFactory
-
Constructor Summary
Constructors Constructor Description ReactorRepositoryManagerImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activateManager()
void
bindP2ResolverFactory(P2ResolverFactory p2ResolverFactory)
void
bindProvisioningAgentFactory(org.eclipse.equinox.p2.core.IProvisioningAgentProvider agentFactory)
void
computeFinalTargetPlatform(ReactorProject project, java.util.List<? extends ReactorProjectIdentities> upstreamProjects)
Computes the (immutable) target platform with final p2 metadata and attaches it to the given project.TargetPlatform
computePreliminaryTargetPlatform(ReactorProject project, TargetPlatformConfigurationStub tpConfiguration, ExecutionEnvironmentConfiguration eeConfiguration, java.util.List<ReactorProject> reactorProjects, PomDependencyCollector pomDependencies)
Computes the target platform with dependency-only p2 metadata and attaches it to the given project.private static java.io.File
createTempDir(java.lang.String prefix)
void
deactivateManager()
org.eclipse.equinox.p2.core.IProvisioningAgent
getAgent()
private java.util.List<PublishingRepository>
getBuildResults(java.util.List<? extends ReactorProjectIdentities> projects)
TargetPlatform
getFinalTargetPlatform(ReactorProject project)
Returns the target platform with final p2 metadata for the given project.PublishingRepository
getPublishingRepository(ReactorProjectIdentities project)
Returns the project's publishing repository.private PreliminaryTargetPlatformImpl
getRegisteredPreliminaryTargetPlatform(ReactorProject project)
-
-
-
Field Detail
-
PRELIMINARY_TARGET_PLATFORM_KEY
private static final java.lang.String PRELIMINARY_TARGET_PLATFORM_KEY
-
FINAL_TARGET_PLATFORM_KEY
private static final java.lang.String FINAL_TARGET_PLATFORM_KEY
- See Also:
- Constant Field Values
-
agentFactory
private org.eclipse.equinox.p2.core.IProvisioningAgentProvider agentFactory
-
agentDir
private java.io.File agentDir
-
agent
private org.eclipse.equinox.p2.core.IProvisioningAgent agent
-
tpFactory
private TargetPlatformFactory tpFactory
-
-
Method Detail
-
bindProvisioningAgentFactory
public void bindProvisioningAgentFactory(org.eclipse.equinox.p2.core.IProvisioningAgentProvider agentFactory)
-
bindP2ResolverFactory
public void bindP2ResolverFactory(P2ResolverFactory p2ResolverFactory)
-
activateManager
public void activateManager() throws java.io.IOException, org.eclipse.equinox.p2.core.ProvisionException
- Throws:
java.io.IOException
org.eclipse.equinox.p2.core.ProvisionException
-
deactivateManager
public void deactivateManager()
-
getAgent
public org.eclipse.equinox.p2.core.IProvisioningAgent getAgent()
- Specified by:
getAgent
in interfaceReactorRepositoryManager
-
getPublishingRepository
public PublishingRepository getPublishingRepository(ReactorProjectIdentities project)
Description copied from interface:ReactorRepositoryManager
Returns the project's publishing repository.- Specified by:
getPublishingRepository
in interfaceReactorRepositoryManager
- Specified by:
getPublishingRepository
in interfaceReactorRepositoryManagerFacade
- Parameters:
project
- a reference to a project in the reactor.
-
computePreliminaryTargetPlatform
public TargetPlatform computePreliminaryTargetPlatform(ReactorProject project, TargetPlatformConfigurationStub tpConfiguration, ExecutionEnvironmentConfiguration eeConfiguration, java.util.List<ReactorProject> reactorProjects, PomDependencyCollector pomDependencies)
Description copied from interface:ReactorRepositoryManagerFacade
Computes the target platform with dependency-only p2 metadata and attaches it to the given project.- Specified by:
computePreliminaryTargetPlatform
in interfaceReactorRepositoryManagerFacade
- Parameters:
project
- the reactor project to compute the target platform for.
-
computeFinalTargetPlatform
public void computeFinalTargetPlatform(ReactorProject project, java.util.List<? extends ReactorProjectIdentities> upstreamProjects)
Description copied from interface:ReactorRepositoryManagerFacade
Computes the (immutable) target platform with final p2 metadata and attaches it to the given project.- Specified by:
computeFinalTargetPlatform
in interfaceReactorRepositoryManagerFacade
- Parameters:
project
- the reactor project to compute the target platform for.upstreamProjects
- Other projects in the reactor which have already been built and may be referenced by the given project.
-
getRegisteredPreliminaryTargetPlatform
private PreliminaryTargetPlatformImpl getRegisteredPreliminaryTargetPlatform(ReactorProject project)
-
getBuildResults
private java.util.List<PublishingRepository> getBuildResults(java.util.List<? extends ReactorProjectIdentities> projects)
-
getFinalTargetPlatform
public TargetPlatform getFinalTargetPlatform(ReactorProject project)
Description copied from interface:ReactorRepositoryManagerFacade
Returns the target platform with final p2 metadata for the given project.- Specified by:
getFinalTargetPlatform
in interfaceReactorRepositoryManagerFacade
-
createTempDir
private static java.io.File createTempDir(java.lang.String prefix) throws java.io.IOException
- Throws:
java.io.IOException
-
-