⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imarkupcache.java

📁 Wicket一个开发Java Web应用程序框架。它使得开发web应用程序变得容易而轻松。 Wicket利用一个POJO data beans组件使得它可以与任何持久层技术相结合。
💻 JAVA
字号:
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.  See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License.  You may obtain a copy of the License at * *      http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package org.apache.wicket.markup;import org.apache.wicket.MarkupContainer;import org.apache.wicket.settings.IMarkupSettings;/** * Each Wicket application has a single IMarkupCache associated with it (see {@link IMarkupSettings}). * The markup cache is used by every Component to get its associated markup stream. Note that it is * the markup caches responsibility to load the markup, if not yet done. *  * @author Juergen Donnerstag */public interface IMarkupCache{	/**	 * Clear markup cache and force reload of all markup data	 */	void clear();	/**	 * Gets any (immutable) markup resource for the container or any of its parent classes (markup	 * inheritance)	 * 	 * @param container	 *            The original requesting markup container	 * @param clazz	 *            The class to get the associated markup for. If null, the container's class is	 *            used, but it can be a parent class of the container as well (markup inheritance)	 * @param enforceReload	 *            The cache will be ignored and all, including inherited markup files, will be	 *            reloaded. Whatever is in the cache, it will be ignored	 * @return Markup resource	 */	Markup getMarkup(final MarkupContainer container, final Class clazz, final boolean enforceReload);	/**	 * Gets a fresh markup stream that contains the (immutable) markup resource for this class.	 * 	 * @param container	 *            The container the markup should be associated with	 * @param enforceReload	 *            The cache will be ignored and all, including inherited markup files, will be	 *            reloaded. Whatever is in the cache, it will be ignored	 * @param throwException	 *            If true, throw an exception, if markup could not be found	 * @return A stream of MarkupElement elements	 */	MarkupStream getMarkupStream(final MarkupContainer container, final boolean enforceReload,			final boolean throwException);	/**	 * Check if container has associated markup	 * 	 * @param container	 *            The container the markup should be associated with	 * @return True if this markup container has associated markup	 */	boolean hasAssociatedMarkup(final MarkupContainer container);	/**	 * Remove the markup associated with the cache key from the cache including all dependent	 * markups (markup inheritance)	 * 	 * @see MarkupResourceStream#getCacheKey()	 * 	 * @param cacheKey	 * @return The markup removed from the cache. Null, if nothing was found.	 */	Markup removeMarkup(final String cacheKey);	/**	 * @return the number of elements currently in the cache.	 */	int size();	/**	 * Will be called by the application while shutting down. It allows the markup cache to cleanup	 * if necessary.	 */	void shutdown();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -