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 Object implements ReactorRepositoryManager
-
-
Constructor Summary
Constructors Constructor Description ReactorRepositoryManagerImpl()
-
Method Summary
All 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, 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, List<ReactorProject> reactorProjects, PomDependencyCollector pomDependencies)
Computes the target platform with dependency-only p2 metadata and attaches it to the given project.void
deactivateManager()
org.eclipse.equinox.p2.core.IProvisioningAgent
getAgent()
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.
-
-
-
Method Detail
-
bindProvisioningAgentFactory
public void bindProvisioningAgentFactory(org.eclipse.equinox.p2.core.IProvisioningAgentProvider agentFactory)
-
bindP2ResolverFactory
public void bindP2ResolverFactory(P2ResolverFactory p2ResolverFactory)
-
activateManager
public void activateManager() throws IOException, org.eclipse.equinox.p2.core.ProvisionException
- Throws:
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, 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, 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.
-
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
-
-