本文整理了Java中com.atlassian.plugin.web.WebInterfaceManager.getWebFragmentHelper()
方法的一些代码示例,展示了WebInterfaceManager.getWebFragmentHelper()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebInterfaceManager.getWebFragmentHelper()
方法的具体详情如下:
包路径:com.atlassian.plugin.web.WebInterfaceManager
类名称:WebInterfaceManager
方法名:getWebFragmentHelper
暂无
代码示例来源:origin: com.atlassian.jira/jira-api
public WebFragmentHelper getWebFragmentHelper()
{
return webInterfaceManager.getWebFragmentHelper();
}
代码示例来源:origin: com.atlassian.refapp/atlassian-refapp-web-item-plugin
public WebFragmentHelper getWebFragmentHelper() {
return webInterfaceManager.getWebFragmentHelper();
}
代码示例来源:origin: com.atlassian.jira/jira-core
public Condition create(String className, Plugin plugin) throws ConditionLoadingException
{
//noinspection deprecation
return webInterfaceManager.getWebFragmentHelper().loadCondition(className, plugin);
}
}
代码示例来源:origin: com.atlassian.plugins/atlassian-connect-server-core
public Condition create(String className, Plugin plugin) throws ConditionLoadingException {
return webInterfaceManager.getWebFragmentHelper().loadCondition(className, plugin);
}
}
代码示例来源:origin: com.atlassian.plugins/atlassian-connect-core
public Condition create(String className, Plugin plugin) throws ConditionLoadingException {
return webInterfaceManager.getWebFragmentHelper().loadCondition(className, plugin);
}
}
代码示例来源:origin: com.atlassian.plugins/atlassian-connect-core
private void validateCondition(Plugin plugin, ShallowConnectAddonBean addon, ConnectModuleMeta<?> moduleMeta, SingleConditionBean singleCondition)
throws ConnectModuleValidationException {
Optional<Class<? extends Condition>> optionalConditionClass = conditionClassAccessor.getConditionClassForHostContext(singleCondition);
if (optionalConditionClass.isPresent()) {
Class<? extends Condition> conditionClass = optionalConditionClass.get();
Condition condition = null;
try {
condition = webInterfaceManager.getWebFragmentHelper().loadCondition(conditionClass.getName(), plugin);
} catch (ConditionLoadingException e) {
String message = String.format("The condition %s (%s) could not be loaded",
singleCondition.getCondition(), conditionClass.getSimpleName());
rethrowAsModuleValidationException(e, addon, moduleMeta, message, null);
}
Map<String, String> parameters = conditionModuleFragmentFactory.getFragmentParameters(addon.getKey(), singleCondition);
try {
condition.init(parameters);
} catch (PluginParseException e) {
String message = String.format("Invalid parameters provided for condition %s (%s)",
singleCondition.getCondition(), conditionClass.getSimpleName());
rethrowAsModuleValidationException(e, addon, moduleMeta, message,
"connect.install.error.invalid.condition.parameters", singleCondition.getCondition(), e.getLocalizedMessage());
} catch (Throwable e) {
String message = String.format("An error occurred when initializing condition %s (%s)",
singleCondition.getCondition(), conditionClass.getSimpleName());
rethrowAsModuleValidationException(e, addon, moduleMeta, message, null);
}
}
}
代码示例来源:origin: com.atlassian.plugins/atlassian-connect-server-core
private void validateCondition(Plugin plugin, ShallowConnectAddonBean addon, ConnectModuleMeta<?> moduleMeta, SingleConditionBean singleCondition)
throws ConnectModuleValidationException {
Optional<Class<? extends Condition>> optionalConditionClass = conditionClassAccessor.getConditionClassForHostContext(singleCondition);
if (optionalConditionClass.isPresent()) {
Class<? extends Condition> conditionClass = optionalConditionClass.get();
Condition condition = null;
try {
condition = webInterfaceManager.getWebFragmentHelper().loadCondition(conditionClass.getName(), plugin);
} catch (ConditionLoadingException e) {
String message = String.format("The condition %s (%s) could not be loaded",
singleCondition.getCondition(), conditionClass.getSimpleName());
rethrowAsModuleValidationException(e, addon, moduleMeta, message, null);
}
Map<String, String> parameters = conditionModuleFragmentFactory.getFragmentParameters(addon.getKey(), singleCondition);
try {
condition.init(parameters);
} catch (PluginParseException e) {
String message = String.format("Invalid parameters provided for condition %s (%s)",
singleCondition.getCondition(), conditionClass.getSimpleName());
rethrowAsModuleValidationException(e, addon, moduleMeta, message,
"connect.install.error.invalid.condition.parameters", singleCondition.getCondition(), e.getLocalizedMessage());
} catch (Throwable e) {
String message = String.format("An error occurred when initializing condition %s (%s)",
singleCondition.getCondition(), conditionClass.getSimpleName());
rethrowAsModuleValidationException(e, addon, moduleMeta, message, null);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!