/******************************************************************************************************************* * * {@inheritDoc} * ******************************************************************************************************************/ @Override @Nonnull // TODO: push up to CompositeSupport public <Type> Type accept (final @Nonnull Visitor<Layout, Type> visitor) throws NotFoundException { visitor.preVisit(this); visitor.visit(this); for (final Layout child : children) { child.accept(visitor); } visitor.postVisit(this); return visitor.getValue(); }
appendUrl(builder, siteNode, null); layout.accept(new VisitorSupport<Layout, Void>()
/******************************************************************************************************************* * * Creates a new instance with the given configuration file and mapped to the given URI. * * @param file the file with the configuration * @param relativeUri the bound URI * ******************************************************************************************************************/ public DefaultSiteNode (final @Nonnull FileObject file) throws IOException, NotFoundException { resource = new DefaultResource(file); layout = loadLayout(); if (site.isLogConfigurationEnabled() || log.isDebugEnabled()) { log.info(">>>> layout for /{}:", resource.getFile().getPath()); layout.accept(new LayoutLoggerVisitor(LayoutLoggerVisitor.Level.INFO)); } }
layout.accept(new LayoutLoggerVisitor(LayoutLoggerVisitor.Level.INFO));