本文整理了Java中org.glassfish.internal.api.Globals.getStaticHabitat()
方法的一些代码示例,展示了Globals.getStaticHabitat()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Globals.getStaticHabitat()
方法的具体详情如下:
包路径:org.glassfish.internal.api.Globals
类名称:Globals
方法名:getStaticHabitat
暂无
代码示例来源:origin: eclipse-ee4j/glassfish
public static ServiceLocator getStaticBaseServiceLocator() {
return getStaticHabitat();
}
代码示例来源:origin: org.glassfish.common/glassfish-naming
public SerialInitContextFactory() {
// Issue 14396
Habitat temp = defaultHabitat ;
if (temp == null) {
temp = Globals.getDefaultHabitat() ;
}
if (temp == null) {
// May need to initialize hk2 component model in standalone client
temp = Globals.getStaticHabitat() ;
}
habitat = temp ;
}
代码示例来源:origin: org.glassfish.main.common/glassfish-naming
public SerialInitContextFactory() {
// Issue 14396
ServiceLocator temp = defaultServices;
if (temp == null) {
temp = Globals.getDefaultHabitat() ;
}
if (temp == null) {
// May need to initialize hk2 component model in standalone client
temp = Globals.getStaticHabitat() ;
}
services = temp ;
}
代码示例来源:origin: org.glassfish.admin/cli-optional
/**
*/
@Override
protected int executeCommand()
throws CommandException, CommandValidationException {
File domainXMLFile = getDomainXml();
logger.finer("Domain XML file = " + domainXMLFile);
try {
Habitat habitat = Globals.getStaticHabitat();
ConfigParser parser = new ConfigParser(habitat);
URL domainURL = domainXMLFile.toURI().toURL();
DomDocument doc = parser.parse(domainURL);
Dom domDomain = doc.getRoot();
Domain domain = domDomain.createProxy(Domain.class);
DomainXmlVerifier validator = new DomainXmlVerifier(domain);
if (validator.invokeConfigValidator()) return 1;
} catch (Exception e) {
throw new CommandException(e.getMessage());
}
return 0;
}
}
代码示例来源:origin: org.glassfish.common/glassfish-naming
habitat = Globals.getStaticHabitat();
代码示例来源:origin: org.glassfish.main.admin/admin-util
ServiceLocator habitat = Globals.getStaticHabitat();
ConfigParser parser = new ConfigParser(habitat);
URL domainURL = domainXMLFile.toURI().toURL();
代码示例来源:origin: org.glassfish.admin/admin-util
Habitat habitat = Globals.getStaticHabitat();
ConfigParser parser = new ConfigParser(habitat);
URL domainURL = domainXMLFile.toURI().toURL();
代码示例来源:origin: org.glassfish.connectors/connectors-runtime
static private Habitat getHabitat() {
Habitat habitat = Globals.getStaticHabitat();
StartupContext startupContext = new StartupContext();
habitat.add(new ExistingSingletonInhabitant(startupContext));
habitat.addComponent(null, new ProcessEnvironment(ProcessEnvironment.ProcessType.Other));
return habitat;
}
}
代码示例来源:origin: org.glassfish.main.common/glassfish-naming
services = Globals.getStaticHabitat();
内容来源于网络,如有侵权,请联系作者删除!