Class DefaultEquinoxInstallationFactory
- java.lang.Object
-
- org.eclipse.sisu.equinox.launching.internal.DefaultEquinoxInstallationFactory
-
- All Implemented Interfaces:
EquinoxInstallationFactory
@Component(role=EquinoxInstallationFactory.class) public class DefaultEquinoxInstallationFactory extends java.lang.Object implements EquinoxInstallationFactory
-
-
Field Summary
Fields Modifier and Type Field Description private org.codehaus.plexus.logging.Logger
log
private BundleReader
manifestReader
private org.codehaus.plexus.PlexusContainer
plexus
-
Constructor Summary
Constructors Constructor Description DefaultEquinoxInstallationFactory()
DefaultEquinoxInstallationFactory(org.codehaus.plexus.logging.Logger log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String
appendAbsolutePath(java.io.File file)
private java.lang.String
copySystemBundle(EquinoxInstallationDescription description, java.io.File location)
private java.lang.String
createDevProperties(java.io.File location, java.util.Map<java.lang.String,java.lang.String> devEntries)
SeeEquinoxInstallation
createInstallation(EquinoxInstallationDescription description, java.io.File location)
protected java.lang.String
toOsgiBundles(java.util.Map<ArtifactKey,java.io.File> bundles, java.util.Map<java.lang.String,BundleStartLevel> startLevel, BundleStartLevel defaultStartLevel)
protected void
unpack(java.io.File source, java.io.File destination)
private java.util.List<java.lang.String>
unpackFrameworkExtensions(java.io.File location, java.util.Collection<java.io.File> frameworkExtensions)
-
-
-
Field Detail
-
plexus
@Requirement private org.codehaus.plexus.PlexusContainer plexus
-
manifestReader
@Requirement private BundleReader manifestReader
-
log
@Requirement private org.codehaus.plexus.logging.Logger log
-
-
Method Detail
-
createInstallation
public EquinoxInstallation createInstallation(EquinoxInstallationDescription description, java.io.File location)
- Specified by:
createInstallation
in interfaceEquinoxInstallationFactory
-
createDevProperties
private java.lang.String createDevProperties(java.io.File location, java.util.Map<java.lang.String,java.lang.String> devEntries) throws java.io.IOException
Seehttp://help.eclipse.org/indigo/topic/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html#osgidev
- Throws:
java.io.IOException
-
unpack
protected void unpack(java.io.File source, java.io.File destination)
-
unpackFrameworkExtensions
private java.util.List<java.lang.String> unpackFrameworkExtensions(java.io.File location, java.util.Collection<java.io.File> frameworkExtensions) throws java.io.IOException
- Throws:
java.io.IOException
-
copySystemBundle
private java.lang.String copySystemBundle(EquinoxInstallationDescription description, java.io.File location) throws java.io.IOException
- Throws:
java.io.IOException
-
toOsgiBundles
protected java.lang.String toOsgiBundles(java.util.Map<ArtifactKey,java.io.File> bundles, java.util.Map<java.lang.String,BundleStartLevel> startLevel, BundleStartLevel defaultStartLevel) throws java.io.IOException
- Throws:
java.io.IOException
-
appendAbsolutePath
private java.lang.String appendAbsolutePath(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
-