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


Java ContainerConfig.getBaseDirectory方法代码示例

本文整理汇总了Java中org.globus.wsrf.config.ContainerConfig.getBaseDirectory方法的典型用法代码示例。如果您正苦于以下问题:Java ContainerConfig.getBaseDirectory方法的具体用法?Java ContainerConfig.getBaseDirectory怎么用?Java ContainerConfig.getBaseDirectory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.globus.wsrf.config.ContainerConfig的用法示例。


在下文中一共展示了ContainerConfig.getBaseDirectory方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: loadServiceMetadataFromFile

import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
private void loadServiceMetadataFromFile() {
     if(getServiceMetadata()==null){
	try {
		File dataFile = new File(ContainerConfig.getBaseDirectory() + File.separator
				+ getConfiguration().getServiceMetadataFile());
		((FederatedQueryProcessorResourceProperties) this.getResourceBean()).setServiceMetadata((gov.nih.nci.cagrid.metadata.ServiceMetadata) Utils.deserializeDocument(dataFile.getAbsolutePath(),
			gov.nih.nci.cagrid.metadata.ServiceMetadata.class));
	} catch (Exception e) {
		logger.error("ERROR: problem populating metadata from file: " + e.getMessage(), e);
	}
  }
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:13,代码来源:FederatedQueryProcessorResourceBase.java

示例2: loadServiceMetadataFromFile

import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
private void loadServiceMetadataFromFile() {
     if(getServiceMetadata()==null){
	try {
		File dataFile = new File(ContainerConfig.getBaseDirectory() + File.separator
				+ getConfiguration().getServiceMetadataFile());
		((CaArraySvc_v1_0ResourceProperties) this.getResourceBean()).setServiceMetadata((gov.nih.nci.cagrid.metadata.ServiceMetadata) Utils.deserializeDocument(dataFile.getAbsolutePath(),
			gov.nih.nci.cagrid.metadata.ServiceMetadata.class));
	} catch (Exception e) {
		logger.error("ERROR: problem populating metadata from file: " + e.getMessage(), e);
	}
  }
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:13,代码来源:CaArraySvc_v1_0ResourceBase.java

示例3: initialize

import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
public void initialize(PDPConfig config, String name, String id) throws InitializeException {
   	try{
   		String serviceName = (String)config.getProperty(name, "serviceName");
   	    String etcPath = ContainerConfig.getBaseDirectory() + File.separator + (String)config.getProperty(name, "etcDirectoryPath");

   	
   	} catch (Exception e){
       	throw new InitializeException(e.getMessage(),e);
	}
}
 
开发者ID:NCIP,项目名称:labviewer,代码行数:11,代码来源:StudyConsumerAuthorization.java

示例4: initialize

import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
public void initialize(PDPConfig config, String name, String id) throws InitializeException {
   	try{
   		String serviceName = (String)config.getProperty(name, "serviceName");
   	    String etcPath = ContainerConfig.getBaseDirectory() + File.separator + (String)config.getProperty(name, "etcDirectoryPath");

   	 
   		authorizationClassMap.put("enforce_auth",Class.forName("org.cagrid.enforce.authorization.extension.service.EnforceAuthorization").newInstance());
		((AuthorizationExtension)authorizationClassMap.get("enforce_auth")).initialize(serviceName, etcPath);
		
   	} catch (Exception e){
       	throw new InitializeException(e.getMessage(),e);
	}
}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:14,代码来源:PhotoSharingRegistrationAuthorization.java

示例5: loadServiceMetadataFromFile

import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
private void loadServiceMetadataFromFile() {
     if(getServiceMetadata()==null){
	try {
		File dataFile = new File(ContainerConfig.getBaseDirectory() + File.separator
				+ getConfiguration().getServiceMetadataFile());
		((CaArraySvcResourceProperties) this.getResourceBean()).setServiceMetadata((gov.nih.nci.cagrid.metadata.ServiceMetadata) Utils.deserializeDocument(dataFile.getAbsolutePath(),
			gov.nih.nci.cagrid.metadata.ServiceMetadata.class));
	} catch (Exception e) {
		logger.error("ERROR: problem populating metadata from file: " + e.getMessage(), e);
	}
  }
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:13,代码来源:CaArraySvcResourceBase.java

示例6: loadServiceMetadataFromFile

import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
private void loadServiceMetadataFromFile() {
     if(getServiceMetadata()==null){
	try {
		File dataFile = new File(ContainerConfig.getBaseDirectory() + File.separator
				+ getConfiguration().getServiceMetadataFile());
		((LabLoaderResourceProperties) this.getResourceBean()).setServiceMetadata((gov.nih.nci.cagrid.metadata.ServiceMetadata) Utils.deserializeDocument(dataFile.getAbsolutePath(),
			gov.nih.nci.cagrid.metadata.ServiceMetadata.class));
	} catch (Exception e) {
		logger.error("ERROR: problem populating metadata from file: " + e.getMessage(), e);
	}
  }
}
 
开发者ID:NCIP,项目名称:labviewer,代码行数:13,代码来源:LabLoaderResourceBase.java

示例7: loadServiceMetadataFromFile

import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
private void loadServiceMetadataFromFile() {
     if(getServiceMetadata()==null){
	try {
		File dataFile = new File(ContainerConfig.getBaseDirectory() + File.separator
				+ getConfiguration().getServiceMetadataFile());
		((TransferServiceResourceProperties) this.getResourceBean()).setServiceMetadata((gov.nih.nci.cagrid.metadata.ServiceMetadata) Utils.deserializeDocument(dataFile.getAbsolutePath(),
			gov.nih.nci.cagrid.metadata.ServiceMetadata.class));
	} catch (Exception e) {
		logger.error("ERROR: problem populating metadata from file: " + e.getMessage(), e);
	}
  }
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:13,代码来源:TransferServiceResourceBase.java

示例8: loadServiceMetadataFromFile

import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
private void loadServiceMetadataFromFile() {
     if(getServiceMetadata()==null){
	try {
		File dataFile = new File(ContainerConfig.getBaseDirectory() + File.separator
				+ getConfiguration().getServiceMetadataFile());
		((GTSResourceProperties) this.getResourceBean()).setServiceMetadata((gov.nih.nci.cagrid.metadata.ServiceMetadata) Utils.deserializeDocument(dataFile.getAbsolutePath(),
			gov.nih.nci.cagrid.metadata.ServiceMetadata.class));
	} catch (Exception e) {
		logger.error("ERROR: problem populating metadata from file: " + e.getMessage(), e);
	}
  }
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:13,代码来源:GTSResourceBase.java

示例9: getEtcDirectoryPath

import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
public String getEtcDirectoryPath() {
	return ContainerConfig.getBaseDirectory() + File.separator + etcDirectoryPath;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:4,代码来源:GridGrouperConfiguration.java

示例10: getLockoutWhitelistFile

import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
public String getLockoutWhitelistFile() {
	return ContainerConfig.getBaseDirectory() + File.separator + lockoutWhitelistFile;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:4,代码来源:AuthenticationServiceConfiguration.java

示例11: getSyncDescription

import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
public String getSyncDescription() {
	return ContainerConfig.getBaseDirectory() + File.separator + syncDescription;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:4,代码来源:SyncGTSConfiguration.java

示例12: getCdsConfiguration

import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
public String getCdsConfiguration() {
	return ContainerConfig.getBaseDirectory() + File.separator + cdsConfiguration;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:4,代码来源:CredentialDelegationServiceConfiguration.java

示例13: getNaPropertiesFile

import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
public String getNaPropertiesFile() {
	return ContainerConfig.getBaseDirectory() + File.separator + naPropertiesFile;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:4,代码来源:IdentifiersNAServiceConfiguration.java

示例14: getStorageDirectory

import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
public String getStorageDirectory() {
	return ContainerConfig.getBaseDirectory() + File.separator + storageDirectory;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:4,代码来源:TransferServiceConfiguration.java


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