public interface MountDecorator
A mount decorator can decorate a ContextualizableMount
to act like a preview Mount
. If the ContextualizableMount
is already a preview,
it returns the ContextualizableMount
as is. If the is. If the ContextualizableMount
it must decorate is a live Mount
, then it returns a preview version of it
Modifier and Type | Method and Description |
---|---|
ContextualizableMount |
decorateMountAsPreview(ContextualizableMount mount)
This method decorates the
mount to a preview Mount . |
ContextualizableMount decorateMountAsPreview(ContextualizableMount mount)
mount
to a preview Mount
. If the mount
in the argument is already a preview mount according Mount.isPreview()
,
then the mount
from the argument is returned without decorating it.mount
- the mount to decorateMount
Copyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.