本文整理汇总了Java中org.apache.catalina.deploy.NamingResources.setContainer方法的典型用法代码示例。如果您正苦于以下问题:Java NamingResources.setContainer方法的具体用法?Java NamingResources.setContainer怎么用?Java NamingResources.setContainer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.catalina.deploy.NamingResources
的用法示例。
在下文中一共展示了NamingResources.setContainer方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: StandardServer
import org.apache.catalina.deploy.NamingResources; //导入方法依赖的package包/类
/**
* Construct a default instance of this class.
*/
public StandardServer() {
super();
ServerFactory.setServer(this);
globalNamingResources = new NamingResources();
globalNamingResources.setContainer(this);
if (isUseNaming()) {
if (namingContextListener == null) {
namingContextListener = new NamingContextListener();
addLifecycleListener(namingContextListener);
}
}
}
示例2: StandardServer
import org.apache.catalina.deploy.NamingResources; //导入方法依赖的package包/类
/**
* Construct a default instance of this class.
*/
public StandardServer() {
super();
ServerFactory.setServer(this);
globalNamingResources = new NamingResources();
globalNamingResources.setContainer(this);
if (isUseNaming()) {
if (namingContextListener == null) {
namingContextListener = new NamingContextListener();
namingContextListener.setDebug(getDebug());
addLifecycleListener(namingContextListener);
}
}
}
示例3: StandardServer
import org.apache.catalina.deploy.NamingResources; //导入方法依赖的package包/类
/**
* Construct a default instance of this class.
*/
public StandardServer() {
super();
globalNamingResources = new NamingResources();
globalNamingResources.setContainer(this);
if (isUseNaming()) {
namingContextListener = new NamingContextListener();
addLifecycleListener(namingContextListener);
}
}
示例4: setNamingResources
import org.apache.catalina.deploy.NamingResources; //导入方法依赖的package包/类
/**
* Set the naming resources for this web application.
*
* @param namingResources The new naming resources
*/
public void setNamingResources(NamingResources namingResources) {
// Process the property setting change
NamingResources oldNamingResources = this.namingResources;
this.namingResources = namingResources;
namingResources.setContainer(this);
support.firePropertyChange("namingResources",
oldNamingResources, this.namingResources);
}
示例5: StandardServer
import org.apache.catalina.deploy.NamingResources; //导入方法依赖的package包/类
/**
* Construct a default instance of this class.
*/
public StandardServer() {
super();
globalNamingResources = new NamingResources();
globalNamingResources.setContainer(this);
//true
if (isUseNaming()) {
namingContextListener = new NamingContextListener();
addLifecycleListener(namingContextListener);
}
}
示例6: StandardServer
import org.apache.catalina.deploy.NamingResources; //导入方法依赖的package包/类
/**
* Construct a default instance of this class.
*/
public StandardServer() {
super();
// Where.amI();
globalNamingResources = new NamingResources();
globalNamingResources.setContainer(this);
if (isUseNaming()) {
namingContextListener = new NamingContextListener();
addLifecycleListener(namingContextListener);
}
}