org.apache.qpid.configuration
Class QpidProperty<T>

java.lang.Object
  extended by org.apache.qpid.configuration.QpidProperty<T>
Direct Known Subclasses:
QpidProperty.QpidBooleanProperty, QpidProperty.QpidIntProperty, QpidProperty.QpidLongProperty, QpidProperty.QpidStringProperty

abstract class QpidProperty<T>
extends Object


Nested Class Summary
(package private) static class QpidProperty.QpidBooleanProperty
           
(package private) static class QpidProperty.QpidIntProperty
           
(package private) static class QpidProperty.QpidLongProperty
           
(package private) static class QpidProperty.QpidStringProperty
           
 
Field Summary
protected  Accessor accessor
           
 
Constructor Summary
QpidProperty(Accessor accessor, T defValue, String... names)
           
QpidProperty(T defValue, String... names)
           
 
Method Summary
static QpidProperty<Boolean> booleanProperty(Accessor accessor, Boolean defaultValue, String... names)
           
static QpidProperty<Boolean> booleanProperty(Boolean defaultValue, String... names)
           
(package private)  T get()
           
protected abstract  T getByName(String name)
           
static QpidProperty<Integer> intProperty(Accessor accessor, Integer defaultValue, String... names)
           
static QpidProperty<Integer> intProperty(Integer defaultValue, String... names)
           
static QpidProperty<Long> longProperty(Accessor accessor, Long defaultValue, String... names)
           
static QpidProperty<Long> longProperty(Long defaultValue, String... names)
           
static QpidProperty<String> stringProperty(Accessor accessor, String defaultValue, String... names)
           
static QpidProperty<String> stringProperty(String defaultValue, String... names)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

accessor

protected Accessor accessor
Constructor Detail

QpidProperty

QpidProperty(T defValue,
             String... names)

QpidProperty

QpidProperty(Accessor accessor,
             T defValue,
             String... names)
Method Detail

get

T get()

getByName

protected abstract T getByName(String name)

booleanProperty

public static QpidProperty<Boolean> booleanProperty(Boolean defaultValue,
                                                    String... names)

booleanProperty

public static QpidProperty<Boolean> booleanProperty(Accessor accessor,
                                                    Boolean defaultValue,
                                                    String... names)

intProperty

public static QpidProperty<Integer> intProperty(Integer defaultValue,
                                                String... names)

intProperty

public static QpidProperty<Integer> intProperty(Accessor accessor,
                                                Integer defaultValue,
                                                String... names)

longProperty

public static QpidProperty<Long> longProperty(Long defaultValue,
                                              String... names)

longProperty

public static QpidProperty<Long> longProperty(Accessor accessor,
                                              Long defaultValue,
                                              String... names)

stringProperty

public static QpidProperty<String> stringProperty(String defaultValue,
                                                  String... names)

stringProperty

public static QpidProperty<String> stringProperty(Accessor accessor,
                                                  String defaultValue,
                                                  String... names)


Licensed to the Apache Software Foundation