org.rhq.helpers.perftest.support.jpa
Class ConfigurableDependencyInclusionResolver

java.lang.Object
  extended by org.rhq.helpers.perftest.support.jpa.ConfigurableDependencyInclusionResolver
All Implemented Interfaces:
DependencyInclusionResolver

public class ConfigurableDependencyInclusionResolver
extends Object
implements DependencyInclusionResolver

An implementation of DependencyInclusionResolver interface that can be configured to include/exclude relationships by being provided a dependency graph in the form of ExportConfiguration instance.

Author:
Lukas Krejci

Constructor Summary
ConfigurableDependencyInclusionResolver(ExportConfiguration edg)
           
 
Method Summary
 boolean isValid(Edge edge)
          An edge (relationship) is considered valid based on the dependency graph provided in this instance's constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurableDependencyInclusionResolver

public ConfigurableDependencyInclusionResolver(ExportConfiguration edg)
Parameters:
edg - the dependency graph of allowed entities and relations among them.
Method Detail

isValid

public boolean isValid(Edge edge)
An edge (relationship) is considered valid based on the dependency graph provided in this instance's constructor. These are the naming conventions used in the rules below:

An edge is considered valid if at least one of the following conditions is true:

Specified by:
isValid in interface DependencyInclusionResolver
Parameters:
edge - the edge from the full entity dependency graph to check the validity of.
Returns:
true if valid (i.e. to be included in the output), false otherwise.


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.