Class DeploymentPreprocessor
java.lang.Object
org.nuxeo.runtime.deployment.preprocessor.DeploymentPreprocessor
Initializer for the deployment skeleton, taking care of creating templates, aggregating default components before
runtime is started.
- Author:
- Bogdan Stefanescu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcollectXMLFragments(ContainerDescriptor cd, File file) protected ContainerDescriptorgetContainer(File home, File file) Reads a container fragment metadata file and returns the container descriptor.protected ContainerDescriptorgetDefaultContainer(File directory) protected FragmentDescriptorgetDirectoryFragment(File directory) protected StringgetJarArtifactName(String name) protected FragmentDescriptorgetJARFragment(File file) static StringgetRelativeChildPath(String parent, String child) protected StringgetSymbolicName(File file) protected FragmentDescriptorgetXMLFragment(File file) voidinit()voidprotected voidprotected voidinit(ContainerDescriptor cd, File dir) protected voidinit(ContainerDescriptor cd, File[] files) protected voidprotected static Stringstatic voidvoidprotected static voidprotected static voidprintInfo(FragmentRegistry fragments) static voidRun preprocessing in the given home directory and using the given list of bundles.protected voidprocessBundleForCompat(FragmentDescriptor fd, File file) protected voidprocessFile(ContainerDescriptor cd, File file) protected voidprocessManifest(FragmentDescriptor fd, String fileName, Manifest mf)
-
Field Details
-
FRAGMENT_FILE
- See Also:
-
CONTAINER_FILE
- See Also:
-
CONTAINER_FILE_COMPAT
- See Also:
-
-
Constructor Details
-
DeploymentPreprocessor
-
-
Method Details
-
getRootContainer
-
init
- Throws:
IOException
-
init
- Throws:
IOException
-
init
- Throws:
IOException
-
initContextProperties
-
processFile
- Throws:
IOException
-
getSymbolicName
-
getJarArtifactName
-
init
- Throws:
IOException
-
init
- Throws:
IOException
-
predeploy
- Throws:
IOException
-
listFragmentDescriptor
-
printInfo
-
predeploy
- Throws:
IOException
-
getXMLFragment
- Throws:
IOException
-
collectXMLFragments
- Throws:
IOException
-
processBundleForCompat
-
getDirectoryFragment
- Throws:
IOException
-
getJARFragment
- Throws:
IOException
-
processManifest
-
getContainer
Reads a container fragment metadata file and returns the container descriptor.- Throws:
IOException
-
getDefaultContainer
- Throws:
IOException
-
getRelativeChildPath
-
process
Run preprocessing in the given home directory and using the given list of bundles. Bundles must be ordered by the caller to have same deployment order on all computers.The metadata file is the metadat file to be used to configure the processor. If null the default location will be used (relative to home):
CONTAINER_FILE.- Throws:
IOException
-
main
- Throws:
IOException
-