本文整理汇总了Java中org.globus.wsrf.config.ContainerConfig类的典型用法代码示例。如果您正苦于以下问题:Java ContainerConfig类的具体用法?Java ContainerConfig怎么用?Java ContainerConfig使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ContainerConfig类属于org.globus.wsrf.config包,在下文中一共展示了ContainerConfig类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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);
}
}
示例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());
((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);
}
}
}
示例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());
((StockManagerResourceProperties) 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: loadDomainModelFromFile
import org.globus.wsrf.config.ContainerConfig; //导入依赖的package包/类
private void loadDomainModelFromFile() {
if(getDomainModel()==null){
try {
File dataFile = new File(ContainerConfig.getBaseDirectory() + File.separator
+ getConfiguration().getDomainModelFile());
((CBMResourceProperties) this.getResourceBean()).setDomainModel((gov.nih.nci.cagrid.metadata.dataservice.DomainModel) Utils.deserializeDocument(dataFile.getAbsolutePath(),
gov.nih.nci.cagrid.metadata.dataservice.DomainModel.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());
((CBMResourceProperties) 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: loadDomainModelFromFile
import org.globus.wsrf.config.ContainerConfig; //导入依赖的package包/类
private void loadDomainModelFromFile() {
if(getDomainModel()==null){
try {
File dataFile = new File(ContainerConfig.getBaseDirectory() + File.separator
+ getConfiguration().getDomainModelFile());
((DmrResourceProperties) this.getResourceBean()).setDomainModel((gov.nih.nci.cagrid.metadata.dataservice.DomainModel) Utils.deserializeDocument(dataFile.getAbsolutePath(),
gov.nih.nci.cagrid.metadata.dataservice.DomainModel.class));
} catch (Exception e) {
logger.error("ERROR: problem populating metadata from file: " + e.getMessage(), e);
}
}
}
示例9: 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);
}
}
}
示例10: 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());
((AuthenticationServiceResourceProperties) 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);
}
}
}
示例11: 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());
((DorianResourceProperties) 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);
}
}
}
示例12: 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());
((DmrResourceProperties) 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);
}
}
}
示例13: 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());
((ISO21090ReferenceServiceResourceProperties) 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);
}
}
}
示例14: 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);
}
}
}
示例15: 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());
((GridGrouperResourceProperties) 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);
}
}
}