/** * @return Gets the markup factory registered with the Wicket application */ public static MarkupFactory get() { return Application.get().getMarkupSettings().getMarkupFactory(); }
/** * @return Gets the markup factory registered with the Wicket application */ public static MarkupFactory get() { return Application.get().getMarkupSettings().getMarkupFactory(); }
/** * A convenient helper to get the markup cache registered with the application. * * @see {@link Application#getMarkupSettings()} * @see {@link MarkupFactory#getMarkupCache()} * * @return The markup cache registered with the {@link Application} */ public static IMarkupCache get() { return Application.get().getMarkupSettings().getMarkupFactory().getMarkupCache(); }
/** * A convenient helper to get the markup cache registered with the application. * * @see {@link Application#getMarkupSettings()} * @see {@link MarkupFactory#getMarkupCache()} * * @return The markup cache registered with the {@link Application} */ public static IMarkupCache get() { return Application.get().getMarkupSettings().getMarkupFactory().getMarkupCache(); }
/** * @see org.apache.wicket.jmx.ApplicationMBean#clearMarkupCache() */ @Override public void clearMarkupCache() throws IOException { application.getMarkupSettings().getMarkupFactory().getMarkupCache().clear(); }
/** * @see org.apache.wicket.jmx.ApplicationMBean#getMarkupCacheSize() */ @Override public int getMarkupCacheSize() throws IOException { return application.getMarkupSettings().getMarkupFactory().getMarkupCache().size(); }
.getMarkupFactory().getMarkupCache().removeMarkup(absolutePath); } finally { ThreadContext.setApplication(null);
.getMarkupFactory().getMarkupCache().removeMarkup(absolutePath); } finally { ThreadContext.setApplication(null);
@Override protected void onConfigure() { super.onConfigure(); // Do not cache pages in development mode - allows us to make changes to the HMTL without // having to reload the application if (RuntimeConfigurationType.DEVELOPMENT.equals(getApplication().getConfigurationType())) { getApplication().getMarkupSettings().getMarkupFactory().getMarkupCache().clear(); getApplication().getResourceSettings() .setCachingStrategy(NoOpResourceCachingStrategy.INSTANCE); } }
@Override protected void onConfigure() { super.onConfigure(); // Do not cache pages in development mode - allows us to make changes to the HMTL without // having to reload the application if (RuntimeConfigurationType.DEVELOPMENT.equals(getApplication().getConfigurationType())) { getApplication().getMarkupSettings().getMarkupFactory().getMarkupCache().clear(); getApplication().getResourceSettings() .setCachingStrategy(NoOpResourceCachingStrategy.INSTANCE); } }
.getMarkupFactory() .newMarkupParser(markupResourceStream); pageMarkup = markupParser.parse();
/** * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT. */ public void internalDestroy() { applicationListeners.onBeforeDestroyed(this); // 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); MarkupFactory markupFactory = getMarkupSettings().getMarkupFactory(); if (markupFactory.hasMarkupCache()) { markupFactory.getMarkupCache().shutdown(); } onDestroy(); destroyInitializers(); internalGetPageManager().destroy(); getSessionStore().destroy(); applicationKeyToApplication.remove(getApplicationKey()); }
/** * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT. */ public void internalDestroy() { applicationListeners.onBeforeDestroyed(this); // 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); MarkupFactory markupFactory = getMarkupSettings().getMarkupFactory(); if (markupFactory.hasMarkupCache()) { markupFactory.getMarkupCache().shutdown(); } onDestroy(); destroyInitializers(); internalGetPageManager().destroy(); getSessionStore().destroy(); applicationKeyToApplication.remove(getApplicationKey()); }
.getMarkupFactory() .newMarkupParser(markupResourceStream); pageMarkup = markupParser.parse();
.getMarkupFactory() .newMarkupParser(markupResourceStream); pageMarkup = markupParser.parse();