|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xoe.core.packages.BaseInstaller
PackageXMLHandler for the basic package information provisio which includes name, version and target arch.
Field Summary | |
static String |
NAMESPACE
The namespace of the provios that BaseInstaller handels. |
Fields inherited from interface org.xoe.core.packages.IPackageXMLHandler |
FEATURE_NAMESPACE, FUNCTIONALITY, INTERFACE |
Constructor Summary | |
BaseInstaller()
|
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 |
generateConflicts()
This function is used at build time. |
Vector |
generateProvides()
All packages provide at least this basic proviso. |
Vector |
generateRequires()
This function is used at build time. |
String[] |
getFeatures(String func)
This function may return null. |
String[] |
getFunctionalities()
Functionalities are Strings that can be used to differentiate between different kinds of IServices. |
String[] |
getHandlerPredependencies()
Return the namespaces of handlers that must be called before this one at package install time. |
String[] |
getInformation()
Returns extra meta-information about the service as an array of Strings. |
String[] |
getInterfaces(String func)
Returns the String names of all the Java interfaces that the IService implements for the given functionality. |
String |
getNamespaceURI()
Returns the namespace URI associated with this installer. |
void |
init(org.w3c.dom.Document configDoc)
Services can be configued with a DOM Document. |
void |
install(XoePackage xoePackage,
Proviso[] provisos)
Perform any install time operations |
void |
setPackage(XoePackage p)
This function is used at build time. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String NAMESPACE
Constructor Detail |
public BaseInstaller()
Method Detail |
public String[] getHandlerPredependencies()
IPackageXMLHandler
getHandlerPredependencies
in interface 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.buildDependency
in interface IPackageXMLHandler
public void init(org.w3c.dom.Document configDoc)
IService
init
in interface IService
public String[] getFunctionalities()
IService
getFunctionalities
in interface IService
public String[] getInterfaces(String func)
IService
getInterfaces
in interface IService
public String[] getFeatures(String func)
IService
getFeatures
in interface IService
public String[] getInformation()
IService
getInformation
in interface IService
public String getNamespaceURI()
IPackageXMLHandler
getHandlerPredependencies
.getNamespaceURI
in interface IPackageXMLHandler
public void verify(XoePackage xoePackage, Proviso[] provisos) throws PackageException
IPackageXMLHandler
Use this function to prevent package installation from starting if there are any fatal flaws identified.
verify
in interface IPackageXMLHandler
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)
IPackageXMLHandler
Any installers identified by getHandlerPredependencies will already have been called.
install
in interface IPackageXMLHandler
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.
uninstall
in interface IPackageXMLHandler
org.xoe.core.packages.IPackageXMLHandler
xoePackage
- the package being uninstalledprovisos
- any provisos in the package that match this installer's namespacepublic void setPackage(XoePackage p)
IPackageXMLHandler
setPackage
in interface IPackageXMLHandler
public Vector generateRequires() throws PackageDescriptionException
IPackageXMLHandler
null
.generateRequires
in interface IPackageXMLHandler
public Vector generateConflicts() throws PackageDescriptionException
IPackageXMLHandler
null
.generateConflicts
in interface IPackageXMLHandler
public Vector generateProvides() throws PackageDescriptionException
generateProvides
in interface IPackageXMLHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |