Package de.hybris.bootstrap.config
Class ExtensionInfo
java.lang.Object
de.hybris.bootstrap.config.ExtensionInfo
represents an extension and contains the meta information.
- String:name - the extension name
- String:abstractClassPrefix - abstract class prefix (not used?)
- String:classPrefix - the class prefix e.g. 'Generated'
- String:managerName - the manager class name of the extension
- String:managerSuperclass - the manager superclass name of the extension, default is: "de.hybris.platform.jalo.extension.Extension"
- String:typeCode: - TypeCode of an extension
- File:extensionDirectory - The directory of the extension (parent of file extensioninfo.xml)
- Collection:extensionmodules - Collection of
AbstractExtensionModulewhich are part of this extension - List:requiredextensions - List of extension names (Strings) which are required by this extension
-
Constructor Summary
ConstructorsConstructorDescriptionExtensionInfo(PlatformConfig extensionsXML, File configFile, boolean isCoreExtension) ExtensionInfo(String contextRoot, HashMap metaMap) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddImplicitlyRequiredExtensionNames(Set<String> extensionnames) voidaddRequiredExtensionName(String extensionname) booleanReturns comma separated list string containing names or all extensions which are either explicitly required.returns a List with all required ExtensionInfos which are needed by this extension.Returns comma separated list string containing names or all extensions which are either explicitly or implicitly required.getName()inthashCode()booleanbooleanbooleanbooleanbooleanbooleanbooleanisItemsXMLModifiedAfter(long lastModifiedTime) booleanbooleanbooleanbooleanbooleanbooleanvoidvoidvoidsetExcluded(boolean excluded) voidsetJaloLogicFree(boolean jaloLogicFree) voidsetRequiredByAll(boolean required) voidsetVersion(String version) toString()protected StringtoString(Collection<ExtensionInfo> extensions)
-
Constructor Details
-
ExtensionInfo
- Throws:
RuntimeException
-
ExtensionInfo
public ExtensionInfo(PlatformConfig extensionsXML, File configFile, boolean isCoreExtension) throws RuntimeException - Throws:
RuntimeException
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
markUnmodifiedForCodeGeneration
public void markUnmodifiedForCodeGeneration() -
isDeprecated
public boolean isDeprecated() -
isModifiedForCodeGeneration
public boolean isModifiedForCodeGeneration() -
getItemsXML
-
getBeansXML
-
getGenericAuditXMLs
-
getResourcesDirectory
-
isItemsXMLModifiedAfter
public boolean isItemsXMLModifiedAfter(long lastModifiedTime) -
getName
-
getVersion
-
setVersion
-
isRequiredByAll
public boolean isRequiredByAll() -
isJaloLogicFree
public boolean isJaloLogicFree() -
isCoreExtension
public boolean isCoreExtension() -
isWebExtension
public boolean isWebExtension() -
setRequiredByAll
public void setRequiredByAll(boolean required) -
setJaloLogicFree
public void setJaloLogicFree(boolean jaloLogicFree) -
getAbstractClassPrefix
-
isOldStyleExtension
public boolean isOldStyleExtension() -
getClassPrefix
-
getManagerName
-
getManagerSuperclass
-
getExtensionDirectory
-
getConfigFile
-
getModules
-
getAllRequiredExtensionNames
-
getConfiguredRequiredExtensionNames
-
getImplicitRequiredExtensionNames
-
addRequiredExtensionName
-
addImplicitlyRequiredExtensionNames
-
removeRequiredExtensionName
-
getCoreModule
-
getHMCModule
-
getWebModule
-
getAllRequiredExtensionInfos
returns a List with all required ExtensionInfos which are needed by this extension. This is calculated recursivly, e.g. if A req B and B req C, then the result of this method for A will be {B,C} -
getAllConfiguredRequiredExtensionInfos
-
getRequiredExtensionInfos
- Returns:
- a Set with
ExtensionInfowhich contains all defined required extensions and also the implicitly required extensions.
-
getAllRequiredExtensionsString
Returns comma separated list string containing names or all extensions which are either explicitly or implicitly required. -
getAllConfiguredRequiredExtensionsString
Returns comma separated list string containing names or all extensions which are either explicitly required. -
toString
-
toString
-
getMeta
- Returns:
- Returns the value for the meta key defined in extensioninfo.xml or null if not found
-
isExtgenTemplate
public boolean isExtgenTemplate()- Returns:
- Returns true if the extensions meta value for the key
PlatformConfig.PLATFORM_EXTGEN_TEMPLATE_KEYis true
-
isModulegenTemplate
public boolean isModulegenTemplate()- Returns:
- Returns true if the extensions meta value for the key
PlatformConfig.PLATFORM_MODULEGEN_NAME_KEYis set
-
getModulegenName
- Returns:
- Returns the modulegen name if the extensions meta value for the key
PlatformConfig.PLATFORM_MODULEGEN_NAME_KEYis given
-
isExcluded
public boolean isExcluded() -
setExcluded
public void setExcluded(boolean excluded) -
getMetaMap
-
isCorePlusExtension
public boolean isCorePlusExtension() -
isExternalExtension
public boolean isExternalExtension()
-