Extension Configurations

An extension is configured by the extensioninfo.xml file.

It defines the following:

  • A list of extensions required for current extension. If the required extension does not exist in your installation, then the build of SAP Commerce fails.

  • A list of available extension components and their configuration. For example, if you're using the webmodule component, you can define the webroot of the Web application.

Below you may find an overview of available extension components and description of elements that may be configured in the extensioninfo.xml file.

Schema Document Properties

Target Namespace

None

Element and Attribute Namespaces

  • Global element and attribute declarations belong to this schema's target namespace.

  • By default, local element declarations belong to this schema's target namespace.

  • By default, local attribute declarations have no namespace.

Declared Namespaces

Global Declarations

Element: extensioninfo

Type

Locally-defined complex type

Nullable

no

Abstract

no

Documentation

Configures the available components of the extension.

XML Instance Representation

<extensioninfo> 
  <extension> extensionType </extension> [1]

See information about extensionType.

</extensioninfo>

Global Definitions

Complex Type: extensionType

Parent type:

None

Sub-types:

None

Abstract

no

Documentation

Configures the available modules of the extension.

XML Instance Representation

<...
  name="string" [1]
          

Name of the extension. Do not use special characters or spaces.

  version="string" [0..1]
          

Optionally defines the version of this extension. If not defined the build process assumes it being the same version as the Platform.

  classprefix="string" [0..1]
          

Prefix used for generated extension classes, such as the classes for Constants. Default is "[extensionname]".

  abstractclassprefix="string" [0..1]
          

Prefix for generated Java classes, such as the abstract classes for getter and setter methods. Default is "Generated".

  isoldstyleextension="boolean" [0..1]
          

Deprecated. Default is "false".

  requiredbyall="boolean" [0..1]
          

If 'true' this extension is treated like platform/ext core extensions and is automtically added to all other extension dependencies.

  managername="string" [0..1]
          

Class name of the manager class. Default is "[classprefix]Manager"

  managersuperclass=" classType" [0..1]

Class name of the manager's superclass. Default is de.hybris.platform.jalo.extension.Extension.

  description="string" [0..1]
          

Short description of this extension. Is used by the SAP Commerce package manager.

  name="jaloLogicFree" type="xs:boolean" use="optional" default="false"> 
          

If ‘true’, types introduced by this extension are SLD-safe by default and contain no Jalo logic.

> 
 
  <requires-extension> requires-extensionType</requires-extension> [0..*]

Configures the set of extensions required by the extension at compile time. If you set 'autoload=true' in the localextensions.xml file, you will not need to reference any core extensions here. See Complex Type: requires-extensionType below.

  <coremodule> coremoduleType</coremodule> [0..1]

Configures a coremodule component for the extension. This component consists of an items.xml file (and therefore allows to add new types to the system), a manager class, classes for the JaLo Layer and the ServiceLayer and JUnit test classes. The following directories are required: /src, /resources, /testsrc. See information about coremoduleType below.

  <webmodule> webmoduleType</webmodule> [0..1]

Configures a webmodule component for the extension. Required directory: /web. See information about webmoduleType below.

  <meta> metaType </meta> [0..*]

Configures metadata. See information about metaType below.

</...>

Complex Type: metaType

Parent type:

None

Sub-types:

None

Abstract

no

Documentation

Configures metadata.

XML Instance Representation

<...
  key="string" [1]
          

Metadata key.

  value="string" [1]
          

Metadata value.

/> 

Complex Type: requires-extensionType

Parent type:

None

Sub-types:

None

Abstract

no

Documentation

Configures the set of extensions required by the extension at compile time.

XML Instance Representation

<...
  name="string" [1]
          

Name of an extension which is required at compile time.

  version="string" [0..1]
          

Allowed range of versions of the required extension. Is used by the SAP Commerce package manager.

/> 

Complex Type: coremoduleType

Parent type:

None

Sub-types:

None

Abstract

no

Documentation

Configures this component for the extension. Required directories: /src, /resources, /testsrc.

XML Instance Representation

<...
  additionalclasspath="string" [0..1]
          

Deprecated. Not used anymore.

  packageroot="string" [0..1]
          

Package root where extension and item classes will be generated to.

  manager="string" [0..1]
          

Fully qualified Java class name of the extension's manager.

  sourceavailable="boolean" [0..1]
          

Deprecated. Has no effect and will be evaluated always to 'true' if a 'src' directory is available

  generated="boolean" [0..1]
          

If "true", item and extension classes will be generated. Only needed in case of "sourceavailable=true". Default is "false".

  java5="boolean" [0..1]
          

Deprecated. Will always be evaluated to 'true'. Generated item and extension classes will use java generics and annotations.

  generatePartOf="boolean" [0..1]
          

If "true", the generated item and extension classes will use the partOf handler, so partOf references will be removed if the holding item is removed. Default is "true".

/> 

Complex Type: webmoduleType

Parent type:

None

Sub-types:

None

Abstract

no

Documentation

Configures this component for the extension. Required directory: /web.

XML Instance Representation

<...
  webroot="string" [1]
          

Webroot where the web application will be available at.

  additionalclasspath="string" [0..1]
          

Deprecated. Not used anymore.

  jspcompile="boolean" [0..1]
          

If "true", JSP files will be pre-compiled as part of the build process. If "false", JSP files will be compiled when first used by the application server. Default is "true".

  sourceavailable="boolean" [0..1]
          

Deprecated. Has no effect and will be evaluated always to 'true' if a 'web/src' directory is available

/>

Simple Type: classType

Parent type:

normalizedString (derivation method: restriction)

Sub-types:

None

Content

  • Base XSD Type: normalizedString

Documentation

A class name including full package name.