classycle.dependency
Class DefaultPreferenceFactory

java.lang.Object
  extended by classycle.dependency.DefaultPreferenceFactory
All Implemented Interfaces:
PreferenceFactory

public class DefaultPreferenceFactory
extends java.lang.Object
implements PreferenceFactory

Factory of Preferences known by the DefaultResultRenderer.

Preference KeyDescription
onlyShortestPaths Only the shortest paths are reported in the case of unwanted dependencies.
allPaths All paths are reported in the case of unwanted dependencies.
onlyFailures Only results are reported which are not ok.
allResults All results are reported.

Author:
Franz-Josef Elmer

Field Summary
static Preference ALL_PATHS
           
static Preference ALL_RESULTS
           
static Preference ONLY_FAILURES
           
static Preference ONLY_SHORTEST_PATHS
           
 
Constructor Summary
DefaultPreferenceFactory()
           
 
Method Summary
 Preference get(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONLY_SHORTEST_PATHS

public static final Preference ONLY_SHORTEST_PATHS

ALL_PATHS

public static final Preference ALL_PATHS

ALL_RESULTS

public static final Preference ALL_RESULTS

ONLY_FAILURES

public static final Preference ONLY_FAILURES
Constructor Detail

DefaultPreferenceFactory

public DefaultPreferenceFactory()
Method Detail

get

public Preference get(java.lang.String key)
Specified by:
get in interface PreferenceFactory