org.eclipse.gemini.blueprint.blueprint.reflect.internal.support
Class OrderedManagedProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by org.springframework.beans.factory.support.ManagedProperties
                  extended by org.eclipse.gemini.blueprint.blueprint.reflect.internal.support.OrderedManagedProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>, org.springframework.beans.BeanMetadataElement, org.springframework.beans.Mergeable

public class OrderedManagedProperties
extends org.springframework.beans.factory.support.ManagedProperties

Extension that adds ordering to ManagedProperties class intended for preserving declaration order.

Author:
Costin Leau
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
OrderedManagedProperties()
           
 
Method Summary
 void clear()
           
 boolean contains(Object value)
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Enumeration<Object> elements()
           
 Set<Map.Entry<Object,Object>> entrySet()
           
 boolean equals(Object o)
           
 Object get(Object key)
           
 String getProperty(String key)
           
 String getProperty(String key, String defaultValue)
           
 int hashCode()
           
 boolean isEmpty()
           
 Enumeration<Object> keys()
           
 Set<Object> keySet()
           
 Object merge(Object parent)
           
 Enumeration<?> propertyNames()
           
 Object put(Object key, Object value)
           
 void putAll(Map<? extends Object,? extends Object> t)
           
 Object remove(Object key)
           
 Object setProperty(String key, String value)
           
 int size()
           
 String toString()
           
 Collection<Object> values()
           
 
Methods inherited from class org.springframework.beans.factory.support.ManagedProperties
getSource, isMergeEnabled, setMergeEnabled, setSource
 
Methods inherited from class java.util.Properties
list, list, load, load, loadFromXML, save, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clone, rehash
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrderedManagedProperties

public OrderedManagedProperties()
Method Detail

clear

public void clear()
Specified by:
clear in interface Map<Object,Object>
Overrides:
clear in class Hashtable<Object,Object>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<Object,Object>
Overrides:
containsKey in class Hashtable<Object,Object>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<Object,Object>
Overrides:
containsValue in class Hashtable<Object,Object>

entrySet

public Set<Map.Entry<Object,Object>> entrySet()
Specified by:
entrySet in interface Map<Object,Object>
Overrides:
entrySet in class Hashtable<Object,Object>

equals

public boolean equals(Object o)
Specified by:
equals in interface Map<Object,Object>
Overrides:
equals in class Hashtable<Object,Object>

get

public Object get(Object key)
Specified by:
get in interface Map<Object,Object>
Overrides:
get in class Hashtable<Object,Object>

hashCode

public int hashCode()
Specified by:
hashCode in interface Map<Object,Object>
Overrides:
hashCode in class Hashtable<Object,Object>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<Object,Object>
Overrides:
isEmpty in class Hashtable<Object,Object>

keySet

public Set<Object> keySet()
Specified by:
keySet in interface Map<Object,Object>
Overrides:
keySet in class Hashtable<Object,Object>

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map<Object,Object>
Overrides:
put in class Hashtable<Object,Object>

putAll

public void putAll(Map<? extends Object,? extends Object> t)
Specified by:
putAll in interface Map<Object,Object>
Overrides:
putAll in class Hashtable<Object,Object>

remove

public Object remove(Object key)
Specified by:
remove in interface Map<Object,Object>
Overrides:
remove in class Hashtable<Object,Object>

size

public int size()
Specified by:
size in interface Map<Object,Object>
Overrides:
size in class Hashtable<Object,Object>

values

public Collection<Object> values()
Specified by:
values in interface Map<Object,Object>
Overrides:
values in class Hashtable<Object,Object>

getProperty

public String getProperty(String key,
                          String defaultValue)
Overrides:
getProperty in class Properties

getProperty

public String getProperty(String key)
Overrides:
getProperty in class Properties

propertyNames

public Enumeration<?> propertyNames()
Overrides:
propertyNames in class Properties

setProperty

public Object setProperty(String key,
                          String value)
Overrides:
setProperty in class Properties

contains

public boolean contains(Object value)
Overrides:
contains in class Hashtable<Object,Object>

elements

public Enumeration<Object> elements()
Overrides:
elements in class Hashtable<Object,Object>

keys

public Enumeration<Object> keys()
Overrides:
keys in class Hashtable<Object,Object>

toString

public String toString()
Overrides:
toString in class Hashtable<Object,Object>

merge

public Object merge(Object parent)
Specified by:
merge in interface org.springframework.beans.Mergeable
Overrides:
merge in class org.springframework.beans.factory.support.ManagedProperties


Copyright © 2006-2012. All Rights Reserved.