com.netflix.config
Class DynamicBooleanProperty

java.lang.Object
  extended by com.netflix.config.PropertyWrapper<java.lang.Boolean>
      extended by com.netflix.config.DynamicBooleanProperty

public class DynamicBooleanProperty
extends PropertyWrapper<java.lang.Boolean>

A dynamic property that contains boolean value.

Use APIs in DynamicPropertyFactory to create instance of this class.


Field Summary
 
Fields inherited from class com.netflix.config.PropertyWrapper
defaultValue, prop
 
Constructor Summary
DynamicBooleanProperty(java.lang.String propName, boolean defaultValue)
           
 
Method Summary
 boolean get()
          Get the current value from the underlying DynamicProperty
 java.lang.Boolean getValue()
          Get current typed value of the property.
 
Methods inherited from class com.netflix.config.PropertyWrapper
addCallback, addValidator, getChangedTimestamp, getDynamicProperty, getName, propertyChanged, propertyChanged, registerSubClassWithNoCallback, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicBooleanProperty

public DynamicBooleanProperty(java.lang.String propName,
                              boolean defaultValue)
Method Detail

get

public boolean get()
Get the current value from the underlying DynamicProperty


getValue

public java.lang.Boolean getValue()
Description copied from class: PropertyWrapper
Get current typed value of the property.

Specified by:
getValue in class PropertyWrapper<java.lang.Boolean>