当前位置: 首页>>代码示例>>Java>>正文


Java ApplicationConfiguration类代码示例

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


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


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