class PublisherServiceImpl extends java.lang.Object implements PublisherService
Modifier and Type | Field and Description |
---|---|
private PublisherActionRunner |
publisherRunner |
private PublishingRepository |
publishingRepository |
private java.lang.String |
qualifier |
Constructor and Description |
---|
PublisherServiceImpl(PublisherActionRunner publisherRunner,
java.lang.String qualifier,
PublishingRepository publishingRepository) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<DependencySeed> |
publishCategories(java.io.File categoryDefinition)
Publishes given category definitions.
|
java.util.Collection<DependencySeed> |
publishEEProfile(java.io.File profileFile)
Publishes the given OSGi execution environment profile file.
|
java.util.Collection<DependencySeed> |
publishEEProfile(java.lang.String profileName)
Publishes the given OSGi execution environment profile.
|
private static java.util.Collection<DependencySeed> |
toSeeds(java.lang.String type,
java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> units) |
(package private) void |
validateProfile(java.io.File profileFile) |
private void |
validateProfile(java.util.Properties props,
java.io.File profileFile) |
private final PublisherActionRunner publisherRunner
private final java.lang.String qualifier
private final PublishingRepository publishingRepository
public PublisherServiceImpl(PublisherActionRunner publisherRunner, java.lang.String qualifier, PublishingRepository publishingRepository)
public java.util.Collection<DependencySeed> publishCategories(java.io.File categoryDefinition) throws FacadeException, java.lang.IllegalStateException
PublisherService
publishCategories
in interface PublisherService
categoryDefinition
- A category.xml file as defined by the Eclipse PDEFacadeException
- if a checked exception occurs during publishingjava.lang.IllegalStateException
public java.util.Collection<DependencySeed> publishEEProfile(java.io.File profileFile) throws FacadeException
PublisherService
publishEEProfile
in interface PublisherService
profileFile
- the .profile fileFacadeException
- if a checked exception occurs during publishingpublic java.util.Collection<DependencySeed> publishEEProfile(java.lang.String profileName) throws FacadeException
PublisherService
publishEEProfile
in interface PublisherService
FacadeException
- if a checked exception occurs during publishingvoid validateProfile(java.io.File profileFile) throws FacadeException
FacadeException
private void validateProfile(java.util.Properties props, java.io.File profileFile) throws FacadeException
FacadeException
private static java.util.Collection<DependencySeed> toSeeds(java.lang.String type, java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> units)