Dorado7组件技术

来自ling
跳转至: 导航搜索
  • META-INF/dorado-package.properties
name=dorado-core
addonVersion=2.0
configurer=com.bstek.dorado.core.CorePackageConfigurer
contextConfigLocations=classpath:com/bstek/dorado/core/context.xml,\
classpath:com/bstek/dorado/config/context.xml,\
classpath:com/bstek/dorado/common/context.xml,\
classpath:com/bstek/dorado/data/context.xml,\
classpath:com/bstek/dorado/web/context.xml,\
classpath:com/bstek/dorado/view/context.xml,\
classpath:com/bstek/dorado/idesupport/context.xml
componentConfigLocations=classpath:com/bstek/dorado/core/context.xml,\
classpath:com/bstek/dorado/config/context.xml,\
classpath:com/bstek/dorado/common/context.xml,\
classpath:com/bstek/dorado/data/context.xml,\
classpath:com/bstek/dorado/web/context.xml,\
classpath:com/bstek/dorado/view/context.xml,\
classpath:com/bstek/dorado/idesupport/context.xml
servletContextConfigLocations=classpath:com/bstek/dorado/web/servlet-context.xml,\
classpath:com/bstek/dorado/view/servlet-context.xml,\
classpath:com/bstek/dorado/console/required-servlet-context.xml,\
classpath:com/bstek/dorado/idesupport/servlet-context.xml
servletContextListener=
version = 1.0
name = ling2.core.d7
groupId = com.ling2
classifier = component
depends = dorado-core
artifactId = ling2.core.d7
configurer=com.bstek.dorado.core.CorePackageConfigurer
contextConfigLocations = classpath\:config/core-d7-context.xml
servletContextConfigLocations = classpath\:config/core-d7-servlet-context.xml
propertiesConfigLocations = classpath\:config/core-d7.properties
package com.bstek.dorado.core;

import com.bstek.dorado.core.io.ResourceLoader;
import com.bstek.dorado.core.pkgs.AbstractPackageConfigurer;

public class CorePackageConfigurer extends AbstractPackageConfigurer {

	public String[] getPropertiesConfigLocations(ResourceLoader resourceLoader)
			throws Exception {
		return null;
	}

	public String[] getContextConfigLocations(ResourceLoader resourceLoader)
			throws Exception {
		if (Configure.getBoolean("console.enabled", true)) {
			return new String[] { "classpath:com/bstek/dorado/console/context.xml" };
		}
		return null;
	}

	public String[] getComponentConfigLocations(ResourceLoader resourceLoader)
			throws Exception {
		return null;
	}

	public String[] getServletContextConfigLocations(
			ResourceLoader resourceLoader) throws Exception {
		if (Configure.getBoolean("console.enabled", true)) {
			return new String[] { "classpath:com/bstek/dorado/console/servlet-context.xml" };
		}
		return null;
	}

}