org.webframe.support.driver
Interface ModulePluginDriver

All Known Implementing Classes:
AbstractModulePluginDriver

public interface ModulePluginDriver

webframe框架模块插件驱动接口,每一个分包(jar)中需要有一个实现该接口的实现类。 需要实现的方法有getEntityLocation()和getViewTempletLocation(); 实现类也可以继承抽象类AbstractModulePluginDriver

Version:
$Id: codetemplates.xml,v 1.1 2009/09/07 08:48:12 Exp $ Create: 2011-3-18 下午06:47:35
Author:
黄国庆

Method Summary
 String getEntityLocation()
          获取数据库model Bean相对于该实现类的相对路径,或者相对于该jar的相对路径。 例如:我们的模块插件驱动实现类org.webframe.test.TestModulePluginDriver, model Bean的位置org.webframe.test.Test,那么该实现类getEntityLocation() 方法应该返回"/org/webframe/test"或者"*"字符串;
 String getModuleName()
           
 String getSpringContextLocation()
          不支持", ; \t \n"字符串表示多路径
 String getViewTempletLocation()
          获取model页面freemarker模板的路径,例如:我们的模块插件驱动实现类 org.webframe.test.TestModulePluginDriver, model freemarker模板的位置org/webframe/test/new.ftl,那么该实现类 getViewTempletLocation()方法应该返回"/org/webframe"。
 String getWebSourcesLocation()
          支持", ; \t \n"字符串表示多路径,例如:返回值为/js,/jsp,/style,表示模块插件包 根目录下的js、jsp、style三个目录中的资源
 

Method Detail

getEntityLocation

String getEntityLocation()
获取数据库model Bean相对于该实现类的相对路径,或者相对于该jar的相对路径。 例如:我们的模块插件驱动实现类org.webframe.test.TestModulePluginDriver, model Bean的位置org.webframe.test.Test,那么该实现类getEntityLocation() 方法应该返回"/org/webframe/test"或者"*"字符串;

Returns:

getViewTempletLocation

String getViewTempletLocation()
获取model页面freemarker模板的路径,例如:我们的模块插件驱动实现类 org.webframe.test.TestModulePluginDriver, model freemarker模板的位置org/webframe/test/new.ftl,那么该实现类 getViewTempletLocation()方法应该返回"/org/webframe"。

Returns:

getWebSourcesLocation

String getWebSourcesLocation()
支持", ; \t \n"字符串表示多路径,例如:返回值为/js,/jsp,/style,表示模块插件包 根目录下的js、jsp、style三个目录中的资源

Returns:

getSpringContextLocation

String getSpringContextLocation()
不支持", ; \t \n"字符串表示多路径

Returns:

getModuleName

String getModuleName()


Copyright © 2012. All Rights Reserved.