/** * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT USE IT. * * @return The markup cache associated with the application * @deprecated please use {@link IMarkupSettings#getMarkupCache()} instead */ @Deprecated public final IMarkupCache getMarkupCache() { return getMarkupSettings().getMarkupCache(); }
/** * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT USE IT. * * @return The markup cache associated with the application * @deprecated please use {@link IMarkupSettings#getMarkupCache()} instead */ public final IMarkupCache getMarkupCache() { return getMarkupSettings().getMarkupCache(); }
/** * @return True if this markup container has associated markup */ public boolean hasAssociatedMarkup() { return getApplication().getMarkupSettings().getMarkupCache().hasAssociatedMarkup(this); }
/** * @return True if this markup container has associated markup */ public boolean hasAssociatedMarkup() { return getApplication().getMarkupSettings().getMarkupCache().hasAssociatedMarkup(this); }
/** * @param container * @param markup * @param enforceReload * @return the base markup */ private Markup getBaseMarkup(final MarkupContainer container, final Markup markup, final boolean enforceReload) { // get the base markup Markup baseMarkup = Application.get() .getMarkupSettings() .getMarkupCache() .getMarkup(container, markup.getMarkupResourceData().getResource().getMarkupClass().getSuperclass(), enforceReload); return baseMarkup; }
/** * Gets a fresh markup stream that contains the (immutable) markup resource for this class. * * @param throwException * If true, throw an exception, if markup could not be found * @return A stream of MarkupElement elements */ public MarkupStream getAssociatedMarkupStream(final boolean throwException) { try { return getApplication().getMarkupSettings().getMarkupCache().getMarkupStream(this, false, throwException); } catch (MarkupException ex) { // re-throw it. The exception contains already all the information // required. throw ex; } catch (WicketRuntimeException ex) { // throw exception since there is no associated markup throw new MarkupNotFoundException( exceptionMessage("Markup of type '" + getMarkupType() + "' for component '" + getClass().getName() + "' not found." + " Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried"), ex); } }
.getMarkupCache() .getMarkupStream(this, false, throwException);
/** * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT. */ protected void internalDestroy() { // Clear caches of Class keys so the classloader can be garbage // collected (WICKET-625) PropertyResolver.destroy(this); getMarkupSettings().getMarkupCache().shutdown(); onDestroy(); callDestroyers(); applicationKeyToApplication.remove(getApplicationKey()); Session.unset(); RequestContext.unset(); RequestCycle.set(null); }
/** * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT. */ protected void internalDestroy() { // destroy detach listener final IDetachListener detachListener = getFrameworkSettings().getDetachListener(); if (detachListener != null) { detachListener.onDestroyListener(); } // Clear caches of Class keys so the classloader can be garbage // collected (WICKET-625) PropertyResolver.destroy(this); getMarkupSettings().getMarkupCache().shutdown(); onDestroy(); callDestroyers(); applicationKeyToApplication.remove(getApplicationKey()); Session.unset(); RequestContext.unset(); RequestCycle.set(null); }
final Markup baseMarkup = Application.get().getMarkupSettings().getMarkupCache().getMarkup( container, markup.getMarkupResourceData().getResource().getMarkupClass().getSuperclass(),