• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ApplicationConfiguration类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.apache.taverna.configuration.app.ApplicationConfiguration的典型用法代码示例。如果您正苦于以下问题:Java ApplicationConfiguration类的具体用法?Java ApplicationConfiguration怎么用?Java ApplicationConfiguration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ApplicationConfiguration类属于org.apache.taverna.configuration.app包,在下文中一共展示了ApplicationConfiguration类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: InvocationGroupManagerImpl

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
public InvocationGroupManagerImpl(ApplicationConfiguration applicationConfiguration, List<MechanismCreator> mechanismCreators, List<InvocationPersister> invocationPersisters) {
	this.applicationConfiguration = applicationConfiguration;
	this.mechanismCreators = mechanismCreators;
	this.invocationPersisters = invocationPersisters;
	readConfiguration();
	defaultMechanism = getInvocationMechanism(DEFAULT_MECHANISM_NAME);
	if (defaultMechanism == null) {
		createDefaultMechanism();
	}
	defaultGroup = getInvocationGroup(DEFAULT_GROUP_NAME);
	if (defaultGroup == null) {
		createDefaultGroup();
	}

	saveConfiguration();
}
 
开发者ID:apache,项目名称:incubator-taverna-common-activities,代码行数:17,代码来源:InvocationGroupManagerImpl.java


示例2: MyExperimentClient

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
public MyExperimentClient(CredentialManager credentialManager, ApplicationConfiguration applicationConfig) {
  

   this.credentialManager = credentialManager;
// === Load INI settings ===
   // but loading settings from INI file, determine what folder is to be used
   // for INI file
this.fIniFileDir = new java.io.File(applicationConfig
     .getApplicationHomeDir().toFile(), "conf");

   // load preferences if the INI file exists
   this.iniSettings = new Properties();
   this.loadSettings();

   // === Check if defaults should be applied to override not sensible settings
   // from INI file ===
   // verify that myExperiment BASE URL was read - use default otherwise
   if (BASE_URL == null || BASE_URL.length() == 0)
     BASE_URL = DEFAULT_BASE_URL;
   this.iniSettings.put(INI_BASE_URL, BASE_URL); // store this to settings (if
   // no changes were made - same as before, alternatively default URL)
 }
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:23,代码来源:MyExperimentClient.java


示例3: warnUserAboutJCEPolicy

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
/**
 * Warn user that they need to install Java Cryptography Extension (JCE)
 * Unlimited Strength Jurisdiction Policy if they want Credential Manager to
 * function properly.
 */
public static void warnUserAboutJCEPolicy(
		ApplicationConfiguration applicationConfiguration,
		DistinguishedNameParser dnParser) {
	/*
	 * Do not pop up a dialog if we are running headlessly. If we have
	 * warned the user and they do not want us to remind them again - exit.
	 */
	if (warnedUser || GraphicsEnvironment.isHeadless()
			|| doNotWarnFile(applicationConfiguration, dnParser).exists())
		return;

	WarnUserAboutJCEPolicyDialog warnDialog = new WarnUserAboutJCEPolicyDialog(
			applicationConfiguration, dnParser);
	warnDialog.setVisible(true);
	warnedUser = true;
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:22,代码来源:WarnUserAboutJCEPolicyDialog.java


示例4: getTheCredentialManagerDefaultDirectory

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
/**
 * Get the configuration directory where the security stuff will be/is saved
 * to.
 */
public static Path getTheCredentialManagerDefaultDirectory(
		ApplicationConfiguration applicationConfiguration) {
	Path home = applicationConfiguration.getApplicationHomeDir();
	Path secConfigDirectory = home.resolve("security");
	try {
		Files.createDirectories(secConfigDirectory);
	} catch (IOException e) {
		throw new RuntimeException(e);
	}
	return secConfigDirectory;
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:16,代码来源:DistinguishedNameParserImpl.java


示例5: ConfigurationManagerImpl

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
public ConfigurationManagerImpl(ApplicationConfiguration applicationConfiguration) {
	File home = applicationConfiguration.getApplicationHomeDir().toFile();
	File config = new File(home,"conf");
	if (!config.exists()) {
		config.mkdir();
	}
	setBaseConfigLocation(config);
}
 
开发者ID:apache,项目名称:incubator-taverna-osgi,代码行数:9,代码来源:ConfigurationManagerImpl.java


示例6: BeanshellContextualView

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
public BeanshellContextualView(Activity activity, EditManager editManager,
		FileManager fileManager, ActivityIconManager activityIconManager,
		ColourManager colourManager, ServiceDescriptionRegistry serviceDescriptionRegistry,
		ApplicationConfiguration applicationConfiguration) {
	super(activity, colourManager);
	this.editManager = editManager;
	this.fileManager = fileManager;
	this.activityIconManager = activityIconManager;
	this.serviceDescriptionRegistry = serviceDescriptionRegistry;
	this.applicationConfiguration = applicationConfiguration;
	init();
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench-common-activities,代码行数:13,代码来源:BeanshellContextualView.java


示例7: BeanshellConfigurationPanel

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
public BeanshellConfigurationPanel(Activity activity,
		ApplicationConfiguration applicationConfiguration) {
	super(activity);
	libDir = new File(applicationConfiguration.getApplicationHomeDir(), "lib");
	if (!libDir.exists()) {
		libDir.mkdir();
	}
	initialise();
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench-common-activities,代码行数:10,代码来源:BeanshellConfigurationPanel.java


示例8: BeanshellActivityConfigurationAction

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
public BeanshellActivityConfigurationAction(Activity activity, Frame owner,
		EditManager editManager, FileManager fileManager,
		ActivityIconManager activityIconManager,
		ServiceDescriptionRegistry serviceDescriptionRegistry,
		ApplicationConfiguration applicationConfiguration) {
	super(activity, activityIconManager, serviceDescriptionRegistry);
	this.editManager = editManager;
	this.fileManager = fileManager;
	this.applicationConfiguration = applicationConfiguration;
	putValue(NAME, EDIT_BEANSHELL_SCRIPT);
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench-common-activities,代码行数:12,代码来源:BeanshellActivityConfigurationAction.java


示例9: LocalworkerActivityContextualView

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
public LocalworkerActivityContextualView(Activity activity, EditManager editManager,
		FileManager fileManager, ColourManager colourManager,
		ActivityIconManager activityIconManager,
		ServiceDescriptionRegistry serviceDescriptionRegistry,
		ApplicationConfiguration applicationConfiguration) {
	super(activity, colourManager);
	this.editManager = editManager;
	this.fileManager = fileManager;
	this.activityIconManager = activityIconManager;
	this.serviceDescriptionRegistry = serviceDescriptionRegistry;
	this.applicationConfiguration = applicationConfiguration;
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench-common-activities,代码行数:13,代码来源:LocalworkerActivityContextualView.java


示例10: LocalworkerActivityConfigurationAction

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
public LocalworkerActivityConfigurationAction(Activity activity, Frame owner,
		EditManager editManager, FileManager fileManager,
		ActivityIconManager activityIconManager,
		ServiceDescriptionRegistry serviceDescriptionRegistry,
		ApplicationConfiguration applicationConfiguration) {
	super(activity, activityIconManager, serviceDescriptionRegistry);
	this.editManager = editManager;
	this.fileManager = fileManager;
	this.applicationConfiguration = applicationConfiguration;
	putValue(Action.NAME, EDIT_LOCALWORKER_SCRIPT);
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench-common-activities,代码行数:12,代码来源:LocalworkerActivityConfigurationAction.java


示例11: ServiceDescriptionRegistryImpl

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
public ServiceDescriptionRegistryImpl(
		ApplicationConfiguration applicationConfiguration) {
	this.applicationConfiguration = applicationConfiguration;
	defaultConfigurableServiceProvidersFile = new File(
			getTavernaStartupConfigurationDirectory(),
			DEFAULT_CONFIGURABLE_SERVICE_PROVIDERS_FILENAME);
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:8,代码来源:ServiceDescriptionRegistryImpl.java


示例12: WarnUserAboutJCEPolicyDialog

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
public WarnUserAboutJCEPolicyDialog(
		ApplicationConfiguration applicationConfiguration,
		DistinguishedNameParser dnParser) {
	super((Frame) null,
			"Java Unlimited Strength Cryptography Policy Warning", true);
	this.applicationConfiguration = applicationConfiguration;
	this.dnParser = dnParser;
	initComponents();
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:10,代码来源:WarnUserAboutJCEPolicyDialog.java


示例13: doNotWarnFile

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
private static File doNotWarnFile(
		ApplicationConfiguration applicationConfiguration,
		DistinguishedNameParser dnParser) {
	return new File(
			dnParser.getCredentialManagerDefaultDirectory(applicationConfiguration).toFile(),
			DO_NOT_WARN_ABOUT_JCE_POLICY);
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:8,代码来源:WarnUserAboutJCEPolicyDialog.java


示例14: LoopConfigureAction

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
protected LoopConfigureAction(Frame owner,
           LoopContextualView contextualView, Processor processor,
           ObjectNode loopLayer, Profile profile, EditManager editManager,
           FileManager fileManager, ApplicationConfiguration applicationConfig) {
	super("Configure");
	this.owner = owner;
	this.contextualView = contextualView;
	this.loopLayer = loopLayer;
       this.profile = profile;
	this.editManager = editManager;
	this.fileManager = fileManager;
	this.processor = processor;
       this.applicationConfig = applicationConfig;
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:15,代码来源:LoopConfigureAction.java


示例15: getCredentialManagerDefaultDirectory

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
@Override
public final Path getCredentialManagerDefaultDirectory(
		ApplicationConfiguration applicationConfiguration) {
	return getTheCredentialManagerDefaultDirectory(applicationConfiguration);
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:6,代码来源:DistinguishedNameParserImpl.java


示例16: DatabaseManagerImpl

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
public DatabaseManagerImpl(ApplicationConfiguration applicationConfiguration, DatabaseConfiguration databaseConfiguration) throws SQLException {
	this.applicationConfiguration = applicationConfiguration;
	this.databaseConfiguration = databaseConfiguration;
	getConnection();
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:6,代码来源:DatabaseManagerImpl.java


示例17: setAppConfig

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
public void setAppConfig(ApplicationConfiguration appConfig) {
	this.appConfig = appConfig;
}
 
开发者ID:apache,项目名称:incubator-taverna-plugin-component,代码行数:4,代码来源:BaseProfileLocator.java


示例18: setup

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
@Before
public void setup() throws Exception {
	dummyConfigurable = new DummyConfigurable(manager);
	File f = new File(System.getProperty("java.io.tmpdir"));
	File configTestsDir = new File(f, "configTests");
	if (!configTestsDir.exists())
		configTestsDir.mkdir();
	final File d = new File(configTestsDir, UUID.randomUUID().toString());
	d.mkdir();
	manager = new ConfigurationManagerImpl(new ApplicationConfiguration() {
		public Path getApplicationHomeDir() {
			return d.toPath();
		}

		public String getName() {
			return null;
		}

		public String getTitle() {
			return null;
		}

		public Path getStartupDir() {
			return null;
		}

		public Path getUserPluginDir() {
			return null;
		}

		public Path getSystemPluginDir() {
			return null;
		}

		public Path getLogFile() {
			return null;
		}

		public Path getLogDir() {
			return null;
		}

		public Properties getProperties() {
			return null;
		}

		@Override
		public ApplicationProfile getApplicationProfile() {
			// TODO Auto-generated method stub
			return null;
		}
	});
	configFile = new File(d, "conf/"+manager.generateFilename(dummyConfigurable));
	dummyConfigurable.restoreDefaults();
}
 
开发者ID:apache,项目名称:incubator-taverna-osgi,代码行数:56,代码来源:ConfigurationManagerImplTest.java


示例19: setApplicationConfiguration

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
public void setApplicationConfiguration(ApplicationConfiguration applicationConfiguration) {
	this.applicationConfiguration = applicationConfiguration;
}
 
开发者ID:apache,项目名称:incubator-taverna-osgi,代码行数:4,代码来源:UpdateManagerImpl.java


示例20: setUp

import org.apache.taverna.configuration.app.ApplicationConfiguration; //导入依赖的package包/类
/**
 * @throws java.lang.Exception
 */
@Before
public void setUp() throws Exception {
	pluginSiteManager = new PluginSiteManagerImpl();
	applicationConfiguration = mock(ApplicationConfiguration.class);
}
 
开发者ID:apache,项目名称:incubator-taverna-osgi,代码行数:9,代码来源:PluginSiteManagerImplTest.java



注:本文中的org.apache.taverna.configuration.app.ApplicationConfiguration类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SystraceMessage类代码示例发布时间:2022-05-22
下一篇:
Java QualifiedNameReference类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap