p2的相关概念

LeLeMei 2011-04-07

1.TheroleofP2

p2的核心构架是agent[代理],这个agent是抽象的概念,它不是真正的代理对象,它

真实是一个逻辑实体,它用来说明:metadata元数据管理profiles,通过管理

下载aritfacts从仓库repositories中,使用engine来操作profiles.

artifacts被安装或更新,它大多是一些bundles

metadata说明:依赖的信息,它从产品配置文件或manifests中抽取得到

profiles:representrunnableconfigurationsofsoftware,recordedintalledartifact.

2.p2Architecture

thedirectorsandenginecanberemote

Allmetadataiscapturedin{installableunit}IUs

IUhasanIDandaversion,thecombinationofwhichmustbegloballyunique.

agent

Director->[]Metadata

TouchPoints->[]Runtines->[]Eclipse,other,os

Engine->[]app.part,profiles

Repositories->[]Artifact

directoristhebrains{大脑}ofthep2operation.

:themetadataavailableintheknownrepositories

theprofilebeingmanaged

asetofinstall,uninstall,updateoperations

Engine:toexecuteagivensetofinstall,unstall,andupdateoperation.

whenabundleisinstalledintoanEquinoxsystem,itsstartlevel

andauto-startstateneedtoconfigured,ThisisdonebytheEquinox

touchpoint.

3.Usingthep2Api

p2暴露一些集合,关于provisionalApi

你可以完全自已的安装向导,以及整个工作流程。

IProfileRegistry

IInstallableUnit

IPlanner

IEngine

IMetadataRepositoryManager

IArtifactRepositoryManager

4.publishingMetadata

三种创建repositories方法:

导出向导,PDEBuild,使用publisher

相关推荐