/** * Configures the default container to be used in the application. * * @param context The (application) context object to use. * @param container The container object to set. * @throws TilesAccessException If something goes wrong during manipulation of the * context. * @deprecated Use {@link #setContainer(TilesApplicationContext, TilesContainer)}. */ @Deprecated public static void setContainer(Object context, TilesContainer container) { Log log = LogFactory.getLog(TilesAccess.class); if (container == null) { if (log.isInfoEnabled()) { log.info("Removing TilesContext for context: " + context.getClass().getName()); } removeAttribute(context, CONTAINER_ATTRIBUTE); } if (container != null && log.isInfoEnabled()) { log.info("Publishing TilesContext for context: " + context.getClass().getName()); } setAttribute(context, CONTAINER_ATTRIBUTE, container); }