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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
collectXMLFragments
(ContainerDescriptor cd, File file) protected ContainerDescriptor
getContainer
(File home, File file) Reads a container fragment metadata file and returns the container descriptor.protected ContainerDescriptor
getDefaultContainer
(File directory) protected FragmentDescriptor
getDirectoryFragment
(File directory) protected String
getJarArtifactName
(String name) protected FragmentDescriptor
getJARFragment
(File file) static String
getRelativeChildPath
(String parent, String child) protected String
getSymbolicName
(File file) protected FragmentDescriptor
getXMLFragment
(File file) void
init()
void
protected void
protected void
init
(ContainerDescriptor cd, File dir) protected void
init
(ContainerDescriptor cd, File[] files) protected void
protected static String
static void
void
protected static void
protected static void
printInfo
(FragmentRegistry fragments) static void
Run preprocessing in the given home directory and using the given list of bundles.protected void
processBundleForCompat
(FragmentDescriptor fd, File file) protected void
processFile
(ContainerDescriptor cd, File file) protected void
processManifest
(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
-