diff options
Diffstat (limited to 'extensions/grapher/src/com/google')
13 files changed, 25 insertions, 3 deletions
diff --git a/extensions/grapher/src/com/google/inject/grapher/AbstractInjectorGrapher.java b/extensions/grapher/src/com/google/inject/grapher/AbstractInjectorGrapher.java index da90ba3c..940caab6 100644 --- a/extensions/grapher/src/com/google/inject/grapher/AbstractInjectorGrapher.java +++ b/extensions/grapher/src/com/google/inject/grapher/AbstractInjectorGrapher.java @@ -32,6 +32,7 @@ import java.util.Set; * Abstract injector grapher that builds the dependency graph but doesn't render it. * * @author bojand@google.com (Bojan Djordjevic) + * @since 4.0 */ public abstract class AbstractInjectorGrapher implements InjectorGrapher { private final RootKeySetCreator rootKeySetCreator; @@ -39,7 +40,10 @@ public abstract class AbstractInjectorGrapher implements InjectorGrapher { private final NodeCreator nodeCreator; private final EdgeCreator edgeCreator; - /** Parameters used to override default settings of the grapher. */ + /** + * Parameters used to override default settings of the grapher. + * @since 4.0 + */ public static final class GrapherParameters { private RootKeySetCreator rootKeySetCreator = new DefaultRootKeySetCreator(); private AliasCreator aliasCreator = new ProviderAliasCreator(); diff --git a/extensions/grapher/src/com/google/inject/grapher/Alias.java b/extensions/grapher/src/com/google/inject/grapher/Alias.java index eb687369..bc20ca9c 100644 --- a/extensions/grapher/src/com/google/inject/grapher/Alias.java +++ b/extensions/grapher/src/com/google/inject/grapher/Alias.java @@ -21,6 +21,7 @@ package com.google.inject.grapher; * that the 'from' node is not rendered and all edges going to it instead go to the 'to' node. * * @author bojand@google.com (Bojan Djordjevic) + * @since 4.0 */ public final class Alias { private final NodeId fromId; diff --git a/extensions/grapher/src/com/google/inject/grapher/AliasCreator.java b/extensions/grapher/src/com/google/inject/grapher/AliasCreator.java index db9751ef..cd428acf 100644 --- a/extensions/grapher/src/com/google/inject/grapher/AliasCreator.java +++ b/extensions/grapher/src/com/google/inject/grapher/AliasCreator.java @@ -23,6 +23,7 @@ import com.google.inject.Binding; * into a single node on the rendered graph. * * @author bojand@google.com (Bojan Djordjevic) + * @since 4.0 */ public interface AliasCreator { /** diff --git a/extensions/grapher/src/com/google/inject/grapher/DefaultRootKeySetCreator.java b/extensions/grapher/src/com/google/inject/grapher/DefaultRootKeySetCreator.java index ce73f175..cf44d46d 100644 --- a/extensions/grapher/src/com/google/inject/grapher/DefaultRootKeySetCreator.java +++ b/extensions/grapher/src/com/google/inject/grapher/DefaultRootKeySetCreator.java @@ -29,6 +29,7 @@ import java.util.logging.Logger; * {@link Logger} type. * * @author bojand@google.com (Bojan Djordjevic) + * @since 4.0 */ public class DefaultRootKeySetCreator implements RootKeySetCreator { private static final Key<Logger> loggerKey = Key.get(Logger.class); diff --git a/extensions/grapher/src/com/google/inject/grapher/Edge.java b/extensions/grapher/src/com/google/inject/grapher/Edge.java index 52a13143..40a3df05 100644 --- a/extensions/grapher/src/com/google/inject/grapher/Edge.java +++ b/extensions/grapher/src/com/google/inject/grapher/Edge.java @@ -22,6 +22,7 @@ import com.google.common.base.Objects; * Edge in a guice dependency graph. * * @author bojand@google.com (Bojan Djordjevic) + * @since 4.0 */ public abstract class Edge { private final NodeId fromId; diff --git a/extensions/grapher/src/com/google/inject/grapher/EdgeCreator.java b/extensions/grapher/src/com/google/inject/grapher/EdgeCreator.java index 3c015b6d..f14e71f8 100644 --- a/extensions/grapher/src/com/google/inject/grapher/EdgeCreator.java +++ b/extensions/grapher/src/com/google/inject/grapher/EdgeCreator.java @@ -23,6 +23,7 @@ import com.google.inject.Binding; * performed. * * @author bojand@google.com (Bojan Djordjevic) + * @since 4.0 */ public interface EdgeCreator { diff --git a/extensions/grapher/src/com/google/inject/grapher/InjectorGrapher.java b/extensions/grapher/src/com/google/inject/grapher/InjectorGrapher.java index 91fd92c4..37bd6e13 100644 --- a/extensions/grapher/src/com/google/inject/grapher/InjectorGrapher.java +++ b/extensions/grapher/src/com/google/inject/grapher/InjectorGrapher.java @@ -30,12 +30,16 @@ import java.util.Set; */ public interface InjectorGrapher { - /** Graphs the guice dependency graph for the given injector using default starting keys. */ + /** + * Graphs the guice dependency graph for the given injector using default starting keys. + * @since 4.0 + */ void graph(Injector injector) throws IOException; /** * Graphs the guice dependency graph for the given injector using the given starting keys and * their transitive dependencies. + * @since 4.0 */ void graph(Injector injector, Set<Key<?>> root) throws IOException; } diff --git a/extensions/grapher/src/com/google/inject/grapher/InstanceNode.java b/extensions/grapher/src/com/google/inject/grapher/InstanceNode.java index cda56bcb..0aaa19b1 100644 --- a/extensions/grapher/src/com/google/inject/grapher/InstanceNode.java +++ b/extensions/grapher/src/com/google/inject/grapher/InstanceNode.java @@ -23,6 +23,7 @@ import java.lang.reflect.Member; * Node for instances. Used when a type is bound to an instance. * * @author bojand@google.com (Bojan Djordjevic) + * @since 4.0 */ public class InstanceNode extends Node { private final Object instance; diff --git a/extensions/grapher/src/com/google/inject/grapher/Node.java b/extensions/grapher/src/com/google/inject/grapher/Node.java index 870f8050..ace85a50 100644 --- a/extensions/grapher/src/com/google/inject/grapher/Node.java +++ b/extensions/grapher/src/com/google/inject/grapher/Node.java @@ -22,6 +22,7 @@ import com.google.common.base.Objects; * Node in a guice dependency graph. * * @author bojand@google.com (Bojan Djordjevic) + * @since 4.0 */ public abstract class Node { /** diff --git a/extensions/grapher/src/com/google/inject/grapher/NodeCreator.java b/extensions/grapher/src/com/google/inject/grapher/NodeCreator.java index e22688f0..d4483701 100644 --- a/extensions/grapher/src/com/google/inject/grapher/NodeCreator.java +++ b/extensions/grapher/src/com/google/inject/grapher/NodeCreator.java @@ -22,6 +22,7 @@ import com.google.inject.Binding; * Creator of graph nodes. * * @author bojand@google.com (Bojan Djordjevic) + * @since 4.0 */ public interface NodeCreator { diff --git a/extensions/grapher/src/com/google/inject/grapher/NodeId.java b/extensions/grapher/src/com/google/inject/grapher/NodeId.java index eaf3f159..d29d3f59 100644 --- a/extensions/grapher/src/com/google/inject/grapher/NodeId.java +++ b/extensions/grapher/src/com/google/inject/grapher/NodeId.java @@ -27,10 +27,14 @@ import com.google.inject.Key; * {@link Key} and value of 42. * * @author bojand@google.com (Bojan Djordjevic) + * @since 4.0 */ public final class NodeId { - /** Type of node. */ + /** + * Type of node. + * @since 4.0 + */ public enum NodeType { /** Type or class node. */ TYPE, diff --git a/extensions/grapher/src/com/google/inject/grapher/RootKeySetCreator.java b/extensions/grapher/src/com/google/inject/grapher/RootKeySetCreator.java index f9e37d3e..12114d8b 100644 --- a/extensions/grapher/src/com/google/inject/grapher/RootKeySetCreator.java +++ b/extensions/grapher/src/com/google/inject/grapher/RootKeySetCreator.java @@ -25,6 +25,7 @@ import java.util.Set; * dependencies will be graphed. * * @author bojand@google.com (Bojan Djordjevic) + * @since 4.0 */ public interface RootKeySetCreator { diff --git a/extensions/grapher/src/com/google/inject/grapher/graphviz/GraphvizGrapher.java b/extensions/grapher/src/com/google/inject/grapher/graphviz/GraphvizGrapher.java index ff8f8b58..71edd09d 100644 --- a/extensions/grapher/src/com/google/inject/grapher/graphviz/GraphvizGrapher.java +++ b/extensions/grapher/src/com/google/inject/grapher/graphviz/GraphvizGrapher.java @@ -44,6 +44,7 @@ import java.util.Map.Entry; * Specify the {@link PrintWriter} to output to with {@link #setOut(PrintWriter)}. * * @author phopkins@gmail.com (Pete Hopkins) + * @since 4.0 */ public class GraphvizGrapher extends AbstractInjectorGrapher { private final Map<NodeId, GraphvizNode> nodes = Maps.newHashMap(); |