本文整理汇总了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);
}
}
}
示例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);
}
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例9: getEtcDirectoryPath
import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
public String getEtcDirectoryPath() {
return ContainerConfig.getBaseDirectory() + File.separator + etcDirectoryPath;
}
示例10: getLockoutWhitelistFile
import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
public String getLockoutWhitelistFile() {
return ContainerConfig.getBaseDirectory() + File.separator + lockoutWhitelistFile;
}
示例11: getSyncDescription
import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
public String getSyncDescription() {
return ContainerConfig.getBaseDirectory() + File.separator + syncDescription;
}
示例12: getCdsConfiguration
import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
public String getCdsConfiguration() {
return ContainerConfig.getBaseDirectory() + File.separator + cdsConfiguration;
}
示例13: getNaPropertiesFile
import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
public String getNaPropertiesFile() {
return ContainerConfig.getBaseDirectory() + File.separator + naPropertiesFile;
}
示例14: getStorageDirectory
import org.globus.wsrf.config.ContainerConfig; //导入方法依赖的package包/类
public String getStorageDirectory() {
return ContainerConfig.getBaseDirectory() + File.separator + storageDirectory;
}