com.bemoko.live.platform.mwc.config.elements.site
Class LiveConfigTweaker

java.lang.Object
  extended by com.bemoko.live.platform.mwc.config.elements.AbstractNamedLiveConfig<T>
      extended by com.bemoko.live.platform.mwc.config.elements.AbstractNamedLiveConfigWithExpression<LiveConfigPlugin>
          extended by com.bemoko.live.platform.mwc.config.elements.site.LiveConfigPlugin
              extended by com.bemoko.live.platform.mwc.config.elements.site.LiveConfigTweaker
All Implemented Interfaces:
InheritableConfig<InheritableConfig<?>>, NamedLiveConfig, NamedLiveConfigWithExpression

public class LiveConfigTweaker
extends LiveConfigPlugin


Nested Class Summary
 
Nested classes/interfaces inherited from class com.bemoko.live.platform.mwc.config.elements.site.LiveConfigPlugin
LiveConfigPlugin.PHASE, LiveConfigPlugin.TYPE
 
Field Summary
 
Fields inherited from class com.bemoko.live.platform.mwc.config.elements.site.LiveConfigPlugin
plugin
 
Constructor Summary
LiveConfigTweaker()
           
 
Method Summary
 String getName()
          If the plugin is not set then the name value is the plugin value.
 LiveConfigPlugin.TYPE getType()
           
 
Methods inherited from class com.bemoko.live.platform.mwc.config.elements.site.LiveConfigPlugin
addInitParam, addInitParam, assertValid, getInitParams, getIntentContainer, getPhaseAsEnum, getPlugin, getRoot, getScopeAsEnum, isEscape, setEscape, setIntentContainer, setPhase, setPlugin, setRoot, setScope, toString
 
Methods inherited from class com.bemoko.live.platform.mwc.config.elements.AbstractNamedLiveConfigWithExpression
alwaysTrue, getExpr, isExprSet, refreshIdIfNotExplictlySet, setExpr, setName
 
Methods inherited from class com.bemoko.live.platform.mwc.config.elements.AbstractNamedLiveConfig
generateAutoName, getId, getIdExplicitlySet, getNameExplicitlySet, internalSetName, isInherit, refreshNameIfNotExplictlySet, setId, setIdExplicitySet, setInherit, setNameExplicitySet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.bemoko.live.platform.mwc.config.elements.NamedLiveConfig
getId, setId
 
Methods inherited from interface com.bemoko.live.platform.mwc.config.elements.InheritableConfig
isInherit, setInherit
 

Constructor Detail

LiveConfigTweaker

public LiveConfigTweaker()
Method Detail

getType

public LiveConfigPlugin.TYPE getType()
Overrides:
getType in class LiveConfigPlugin

getName

public String getName()
If the plugin is not set then the name value is the plugin value. Name is used to identify the tweaker to allow overriding / replacement TODO : Consolidate tweakers and plugins logic. Currently a plugin name of null means the default plugin so we don't want the getName logic below applied to plugins in general - however it isn't ideal that plugins and tweakers have this subtle difference in behaviour so we should try to remove differences where we can.

Specified by:
getName in interface NamedLiveConfig
Overrides:
getName in class AbstractNamedLiveConfig<LiveConfigPlugin>
Returns:
the name