|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xoe.core.packages.FileIteratingInstaller | +--org.xoe.core.packages.NativeInstaller
Installer for native libraries. This includes JNI libs as well as regular C libs and (RSN) kernel modules.
Fields inherited from class org.xoe.core.packages.FileIteratingInstaller |
m_conflicts, m_package, m_provides, m_requires |
Fields inherited from interface org.xoe.core.packages.IPackageXMLHandler |
FEATURE_NAMESPACE, FUNCTIONALITY, INTERFACE |
Constructor Summary | |
NativeInstaller()
|
Method Summary | |
Dependency |
buildDependency(org.w3c.dom.Element depEl)
Build a dependency from an element found in a package description document (Conflicts and dependencies have the same structure). |
Vector |
generateProvides()
This function is used at build time. |
Vector |
generateRequires()
This function is used at build time. |
String[] |
getHandlerPredependencies()
Return the namespaces of handlers that must be called before this one at package install time. |
String |
getNamespaceURI()
Returns the namespace URI associated with this installer. |
void |
install(XoePackage xoePackage,
Proviso[] provisos)
Perform any install time operations |
protected void |
processFile(ZipInputStream zis,
ZipEntry entry)
Add provisios for all object code elements in the ZipInputStream. |
void |
uninstall(XoePackage xoePackage,
Proviso[] provisos)
Perform any uninstall time operations |
void |
verify(XoePackage xoePackage,
Proviso[] provisos)
Pre-install check to make sure the package makes sense |
Methods inherited from class org.xoe.core.packages.FileIteratingInstaller |
generateConflicts, getFeatures, getFunctionalities, getInformation, getInterfaces, init, setPackage, setSuffixes, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NativeInstaller()
Method Detail |
public String[] getHandlerPredependencies()
IPackageXMLHandler
org.xoe.core.packages.IPackageXMLHandler
Strings
corresponding to the namespace
URIs of predependee handlers.public Dependency buildDependency(org.w3c.dom.Element depEl) throws PackageDescriptionException
IPackageXMLHandler
Dependency
returned must have an xpath defined.public String getNamespaceURI()
IPackageXMLHandler
getHandlerPredependencies
.protected void processFile(ZipInputStream zis, ZipEntry entry)
processFile
in class FileIteratingInstaller
public void verify(XoePackage xoePackage, Proviso[] provisos)
IPackageXMLHandler
Use this function to prevent package installation from starting if there are any fatal flaws identified.
org.xoe.core.packages.IPackageXMLHandler
xoePackage
- the package to be verifiedprovisos
- any provisos in the package that match this installer's namespacePackageException
- if fatal flaws are identified in the packagepublic void install(XoePackage xoePackage, Proviso[] provisos) throws InstallException
IPackageXMLHandler
Any installers identified by getHandlerPredependencies will already have been called.
org.xoe.core.packages.IPackageXMLHandler
xoePackage
- the package being installedprovisos
- any provisos in the package that match this installer's namespaceInstallException
- if installation failspublic void uninstall(XoePackage xoePackage, Proviso[] provisos)
IPackageXMLHandler
Any installers identified by getHandlerPredependencies will not have been called yet.
org.xoe.core.packages.IPackageXMLHandler
xoePackage
- the package being uninstalledprovisos
- any provisos in the package that match this installer's namespacepublic Vector generateRequires()
IPackageXMLHandler
null
.generateRequires
in class FileIteratingInstaller
public Vector generateProvides()
IPackageXMLHandler
null
.generateProvides
in class FileIteratingInstaller
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |