stella
Class AbstractTargetProvider<T extends TargetDefinition>

java.lang.Object
  extended by util.PropertyContainer
      extended by stella.AbstractTargetProvider<T>
All Implemented Interfaces:
Cloneable, TargetProviding<T>, Initializable, PropertyBearing

public abstract class AbstractTargetProvider<T extends TargetDefinition>
extends PropertyContainer
implements TargetProviding<T>

Class to provide basic methods.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyContainer
PropertyContainer.URLResource
 
Field Summary
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR, KEY_NOINITONCREATE, KEY_RESOURCEBUNDLES
 
Fields inherited from interface stella.TargetProviding
SERIAL, XML
 
Fields inherited from interface util.PropertyBearing
CONFIG, KEY_CLASS, KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Constructor Summary
protected AbstractTargetProvider(Map<String,String> prop)
          Constructor chain.
 
Method Summary
static
<T extends TargetDefinition>
T
getTargetByName(Collection<T> targetlist, String name)
          Returns the ParsedTarget-definition of the target with the given name.
static Collection<String> getTargetNames(Collection<? extends TargetDefinition> list)
          Takes a collection of targets and returns a collection of their names.
 
Methods inherited from class util.PropertyContainer
augment, augment, augment, clone, createFrom, createFrom, createFrom, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getLocalClassLoader, getLocalized, getLocalized, getLocalizedString, getLocalizedString, getProperties, getPropertiesToKey, getPropertiesToKey, getProperty, getResource, getResourceAsStream, getResourceFromKey, getResources, has, init, isNew, keyCreate, keyCreate, parseObject, reload, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface stella.TargetProviding
addTarget, clear, getActiveTargets, getAllTargets, getCompletedTargets, getFromActive, getFromAll, removeTarget, restore
 

Constructor Detail

AbstractTargetProvider

protected AbstractTargetProvider(Map<String,String> prop)
Constructor chain.

Method Detail

getTargetByName

public static <T extends TargetDefinition> T getTargetByName(Collection<T> targetlist,
                                                             String name)
Returns the ParsedTarget-definition of the target with the given name.


getTargetNames

public static Collection<String> getTargetNames(Collection<? extends TargetDefinition> list)
Takes a collection of targets and returns a collection of their names. This is useful for logging, where no merit is needed.