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


Java Store类代码示例

本文整理汇总了Java中org.apache.catalina.Store的典型用法代码示例。如果您正苦于以下问题:Java Store类的具体用法?Java Store怎么用?Java Store使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: storeManager

import org.apache.catalina.Store; //导入依赖的package包/类
/**
 * Store the specified Manager properties.
 *
 * @param writer PrintWriter to which we are storing
 * @param indent Number of spaces to indent this element
 * @param manager Object whose properties are being stored
 *
 * @exception Exception if an exception occurs while storing
 */
private void storeManager(PrintWriter writer, int indent,
                          Manager manager) throws Exception {

    if (isDefaultManager(manager)) {
        return;
    }

    // Store the beginning of this element
    for (int i = 0; i < indent; i++) {
        writer.print(' ');
    }
    writer.print("<Manager");
    storeAttributes(writer, manager);
    writer.println(">");

    // Store nested <Store> element
    if (manager instanceof PersistentManager) {
        Store store = ((PersistentManager) manager).getStore();
        if (store != null) {
            storeStore(writer, indent + 2, store);
        }
    }

    // Store the ending of this element
    for (int i = 0; i < indent; i++) {
        writer.print(' ');
    }
    writer.println("</Manager>");

}
 
开发者ID:c-rainstorm,项目名称:jerrydog,代码行数:40,代码来源:StandardServer.java

示例2: storeStore

import org.apache.catalina.Store; //导入依赖的package包/类
/**
 * Store the specified Store properties.
 *
 * @param writer PrintWriter to which we are storing
 * @param indent Number of spaces to indent this element
 * @param store Object whose properties are being stored
 *
 * @exception Exception if an exception occurs while storing
 */
private void storeStore(PrintWriter writer, int indent,
                         Store store) throws Exception {

    for (int i = 0; i < indent; i++) {
        writer.print(' ');
    }
    writer.print("<Store");
    storeAttributes(writer, store);
    writer.println("/>");

}
 
开发者ID:c-rainstorm,项目名称:jerrydog,代码行数:21,代码来源:StandardServer.java

示例3: getStore

import org.apache.catalina.Store; //导入依赖的package包/类
/**
 * Returns the store used when flushing the session
 *
 * @return the store used when flushing the session
 */
public Store getStore() {
    return this.lockTemplate.withReadLock(new LockTemplate.LockedOperation<Store>() {

        @Override
        public Store invoke() {
            return SessionFlushValve.this.store;
        }

    });
}
 
开发者ID:pivotalsoftware,项目名称:session-managers,代码行数:16,代码来源:SessionFlushValve.java

示例4: setStore

import org.apache.catalina.Store; //导入依赖的package包/类
/**
 * Sets the store to use when flushing the session
 *
 * @param store the store to use when flushing the session
 */
public void setStore(final Store store) {
    this.lockTemplate.withWriteLock(new LockTemplate.LockedOperation<Void>() {

        @Override
        public Void invoke() {
            SessionFlushValve.this.store = store;
            return null;
        }

    });
}
 
开发者ID:pivotalsoftware,项目名称:session-managers,代码行数:17,代码来源:SessionFlushValve.java

示例5: getStore

import org.apache.catalina.Store; //导入依赖的package包/类
public Store getStore() {
  return this.store;
}
 
开发者ID:GoogleCloudPlatform,项目名称:tomcat-runtime,代码行数:4,代码来源:DatastoreManager.java

示例6: setStore

import org.apache.catalina.Store; //导入依赖的package包/类
/**
 * Set the Store object which will manage persistent Session
 * storage for this Manager.
 *
 * @param store the associated Store
 */
public void setStore(Store store) {

    this.store = store;
    store.setManager(this);

}
 
开发者ID:c-rainstorm,项目名称:jerrydog,代码行数:13,代码来源:PersistentManagerBase.java

示例7: setStore

import org.apache.catalina.Store; //导入依赖的package包/类
/**
 * Set the Store object which will manage persistent Session
 * storage for this Manager.
 *
 * @param store the associated Store
 */
public void setStore(Store store) {
    this.store = store;
    store.setManager(this);
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:11,代码来源:PersistentManagerBase.java

示例8: getStore

import org.apache.catalina.Store; //导入依赖的package包/类
/**
 * @return the Store object which manages persistent Session
 * storage for this Manager.
 */
public Store getStore() {
    return this.store;
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:8,代码来源:PersistentManagerBase.java

示例9: setStore

import org.apache.catalina.Store; //导入依赖的package包/类
/**
 * Set the Store object which will manage persistent Session
 * storage for this Manager.
 *
 * @param store the associated Store
 */
public void setStore(Store store) {
    this.store = store;
    store.setManager(this);

}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:12,代码来源:PersistentManagerBase.java

示例10: getStore

import org.apache.catalina.Store; //导入依赖的package包/类
/**
 * Return the Store object which manages persistent Session
 * storage for this Manager.
 */
public Store getStore() {

    return (this.store);

}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:10,代码来源:PersistentManagerBase.java

示例11: setStore

import org.apache.catalina.Store; //导入依赖的package包/类
/**
 * Set the Store object which will manage persistent Session storage for
 * this Manager.
 *
 * @param store
 *            the associated Store
 */
public void setStore(Store store) {
	this.store = store;
	store.setManager(this);
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:12,代码来源:PersistentManagerBase.java

示例12: getStore

import org.apache.catalina.Store; //导入依赖的package包/类
/**
 * @return the Store object which manages persistent Session storage for
 *         this Manager.
 */
public Store getStore() {
	return this.store;
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:8,代码来源:PersistentManagerBase.java

示例13: setStore

import org.apache.catalina.Store; //导入依赖的package包/类
/**
 * The store will be injected by Tomcat on startup.
 *
 * <p>See distributed-sessions.xml for the configuration.</p>
 */
public void setStore(Store store) {
  this.store = store;
  store.setManager(this);
}
 
开发者ID:GoogleCloudPlatform,项目名称:tomcat-runtime,代码行数:10,代码来源:DatastoreManager.java


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