文档地址:
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的原创文章,请关注公众号"汪子熙":
网友评论