public static void setContainer(Object context,
TilesContainer container) throws TilesException {
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);
}
Configures the container to be used in the application. |