com.hammurapi.flow.runtime.impl
Class PropertySubSet

java.lang.Object
  extended by com.hammurapi.flow.runtime.impl.PropertySubSet
All Implemented Interfaces:
PropertySet

public class PropertySubSet
extends Object
implements PropertySet

Property set backed by another (master) and operating only on properties with names starting with specified prefix.

Author:
Pavel Vlasov

Constructor Summary
PropertySubSet(PropertySet master, String prefix)
           
 
Method Summary
 void cancel(String name)
           
 void clear()
           
 boolean compareProperties(PropertySet otherSet)
           
 boolean containsAll(PropertySet subSet)
           
 void cook(String name, Callable<?> callable)
           
 void cook(String name, Callable<?> callable, long delay, TimeUnit timeUnit)
           
 void cooking(String name, Future<?> future)
           
 Object get(String name)
           
 Object get(String name, Object defaultValue)
           
 Set<String> getPropertyNames()
           
 PropertySet getSubset(String prefix)
           
 void lazy(String name, Callable<?> callable)
           
 void mount(String prefix, PropertySet source)
           
 void remove(String name)
           
 void set(String name, Object value)
           
 void setAll(PropertySet source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertySubSet

public PropertySubSet(PropertySet master,
                      String prefix)
Method Detail

cancel

public void cancel(String name)
Specified by:
cancel in interface PropertySet

clear

public void clear()
Specified by:
clear in interface PropertySet

compareProperties

public boolean compareProperties(PropertySet otherSet)
Specified by:
compareProperties in interface PropertySet

containsAll

public boolean containsAll(PropertySet subSet)
Specified by:
containsAll in interface PropertySet

cook

public void cook(String name,
                 Callable<?> callable)
Specified by:
cook in interface PropertySet

cook

public void cook(String name,
                 Callable<?> callable,
                 long delay,
                 TimeUnit timeUnit)
Specified by:
cook in interface PropertySet

get

public Object get(String name)
Specified by:
get in interface PropertySet

get

public Object get(String name,
                  Object defaultValue)
Specified by:
get in interface PropertySet

getPropertyNames

public Set<String> getPropertyNames()
Specified by:
getPropertyNames in interface PropertySet

getSubset

public PropertySet getSubset(String prefix)
Specified by:
getSubset in interface PropertySet

lazy

public void lazy(String name,
                 Callable<?> callable)
Specified by:
lazy in interface PropertySet

mount

public void mount(String prefix,
                  PropertySet source)
Specified by:
mount in interface PropertySet

remove

public void remove(String name)
Specified by:
remove in interface PropertySet

set

public void set(String name,
                Object value)
Specified by:
set in interface PropertySet

setAll

public void setAll(PropertySet source)
Specified by:
setAll in interface PropertySet

cooking

public void cooking(String name,
                    Future<?> future)
Specified by:
cooking in interface PropertySet