美文网首页SAPSAP 修行SAP札记
SAP Commerce的extensioninfo.xml

SAP Commerce的extensioninfo.xml

作者: 华山令狐冲 | 来源:发表于2020-04-19 19:35 被阅读0次

文档地址:

https://help.sap.com/viewer/b490bb4e85bc42a7aa09d513d0bcb18e/1905/en-US/8bbf6b5e86691014ad49fd1bc0172e5c.html

extension的元数据文件,定义当前extension的依赖。

例子:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
 [y] hybris Platform

 Copyright (c) 2018 SAP SE or an SAP affiliate company.  All rights reserved.

 This software is the confidential and proprietary information of SAP
 ("Confidential Information"). You shall not disclose such Confidential
 Information and shall use it only in accordance with the terms of the
 license agreement you entered into with SAP.
--><extensioninfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="extensioninfo.xsd">

    <extension abstractclassprefix="Generated" classprefix="ChinaacceleratorServices" managername="ChinaacceleratorServicesManager" managersuperclass="de.hybris.platform.jalo.extension.Extension" name="chinaacceleratorservices">

        <requires-extension name="acceleratorservices"/>
        <requires-extension name="acceleratorcms"/>     

        <coremodule generated="true" manager="de.hybris.platform.chinaaccelerator.services.jalo.ChinaacceleratorServicesManager" packageroot="de.hybris.platform.chinaaccelerator.services"/>
        <meta key="deprecated" value="true"/>
    </extension>

</extensioninfo>

packageroot

Sample: de.hybris.platform.chinaaccelerator.services

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

manager

de.hybris.platform.chinaaccelerator.services.jalo.ChinaacceleratorServicesManager

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

generated = true

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

extension节点的属性里,version是optional:

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

Core module:A core module 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.

要获取更多Jerry的原创文章,请关注公众号"汪子熙":


相关文章

网友评论

    本文标题:SAP Commerce的extensioninfo.xml

    本文链接:https://www.haomeiwen.com/subject/aywbbhtx.html