public class EditConfigUtil extends Object
Modifier and Type | Method and Description |
---|---|
static List<EditConfig> |
buildEditConfigFromClassList(List<javassist.CtClass> classList,
org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream zipOutputStream,
Set<String> reservedNames,
InPlaceEditorRegistry inPlaceEditorRegistry,
ClassLoader classLoader,
javassist.ClassPool classPool,
File buildDirectory,
String componentPathBase,
String defaultComponentPathSuffix,
ComponentNameTransformer transformer)
For each class in the provided classList which is annotated with a
Component annotation, an EditConfig object is built and added to the
returned list.
|
static InPlaceEditorConfig |
getInPlaceEditorFromSuperClasses(javassist.CtMethod method,
Set<Class<?>> registeredAnnotations) |
static void |
writeEditConfigToArchiveFile(ComponentNameTransformer transformer,
File editConfigFile,
javassist.CtClass componentClass,
org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream archiveStream,
Set<String> reservedNames,
String componentPathBase,
String defaultComponentPathSuffix)
Writes a provided file to a provided archive output stream at a path
determined by the class of the component.
|
static File |
writeEditConfigToFile(ComponentNameTransformer transformer,
EditConfig editConfig,
javassist.CtClass componentClass,
File buildDirectory,
String componentPathBase,
String defaultComponentPathSuffix)
Determines the name of the edit config file to be written and writes the
the edit config xml which the provided EditConfig object represents to
that determined file.
|
public static void writeEditConfigToArchiveFile(ComponentNameTransformer transformer, File editConfigFile, javassist.CtClass componentClass, org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream archiveStream, Set<String> reservedNames, String componentPathBase, String defaultComponentPathSuffix) throws IOException, ClassNotFoundException
editConfigFile
- componentClass
- archiveStream
- reservedNames
- A list of files which already exist within the Zip
Archive. If an edit config file already exists for a
particular component, it is left untouched.componentPathBase
- IOException
ClassNotFoundException
public static File writeEditConfigToFile(ComponentNameTransformer transformer, EditConfig editConfig, javassist.CtClass componentClass, File buildDirectory, String componentPathBase, String defaultComponentPathSuffix) throws TransformerException, ParserConfigurationException, IOException, OutputFailureException, ClassNotFoundException, IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
editConfig
- componentClass
- TransformerException
ParserConfigurationException
IOException
OutputFailureException
ClassNotFoundException
NoSuchMethodException
InvocationTargetException
IllegalAccessException
SecurityException
IllegalArgumentException
public static List<EditConfig> buildEditConfigFromClassList(List<javassist.CtClass> classList, org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream zipOutputStream, Set<String> reservedNames, InPlaceEditorRegistry inPlaceEditorRegistry, ClassLoader classLoader, javassist.ClassPool classPool, File buildDirectory, String componentPathBase, String defaultComponentPathSuffix, ComponentNameTransformer transformer) throws InvalidComponentClassException, TransformerException, ParserConfigurationException, IOException, OutputFailureException, ClassNotFoundException, IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException, javassist.NotFoundException, InstantiationException
classList
- zipOutputStream
- reservedNames
- InvalidComponentClassException
TransformerException
ParserConfigurationException
IOException
OutputFailureException
ClassNotFoundException
NoSuchMethodException
InvocationTargetException
IllegalAccessException
SecurityException
IllegalArgumentException
javassist.NotFoundException
InstantiationException
public static InPlaceEditorConfig getInPlaceEditorFromSuperClasses(javassist.CtMethod method, Set<Class<?>> registeredAnnotations) throws javassist.NotFoundException, ClassNotFoundException, InvalidComponentClassException
javassist.NotFoundException
ClassNotFoundException
InvalidComponentClassException
Copyright © 2019 ICF Olson. All rights reserved.