public class BindRuleBuilder extends Object
| Constructor and Description |
|---|
BindRuleBuilder() |
| Modifier and Type | Method and Description |
|---|---|
BindRuleBuilder |
addFlag(BindingFlag flag)
Add a flag to the constructed bind rule.
|
BindRule |
build() |
static BindRuleBuilder |
create() |
CachePolicy |
getCachePolicy()
Get the cache policy.
|
Class<?> |
getDependencyType()
Get the dependency type to match.
|
Class<?> |
getImplementation()
Get the target implementation.
|
QualifierMatcher |
getQualifierMatcher()
Get the configured qualifer matcher.
|
Satisfaction |
getSatisfaction()
Get the target satisfaction.
|
boolean |
isTerminal()
Query whether the binding will be terminal.
|
BindRuleBuilder |
setCachePolicy(CachePolicy policy)
Set the cache policy.
|
BindRuleBuilder |
setDependencyType(Class<?> type)
Set the dependency type to match.
|
BindRuleBuilder |
setFlags(EnumSet<BindingFlag> fs)
Set the flags on this bind rule.
|
BindRuleBuilder |
setImplementation(Class<?> type)
Set the target implementation.
|
BindRuleBuilder |
setQualifierMatcher(QualifierMatcher qm)
Set the qualifier matcher.
|
BindRuleBuilder |
setSatisfaction(Satisfaction sat)
Set the satisfaction to bind to.
|
BindRuleBuilder |
setTerminal(boolean term)
Set whether the binding will be terminal.
|
public static BindRuleBuilder create()
public Class<?> getDependencyType()
public BindRuleBuilder setDependencyType(Class<?> type)
type - The dependency type to match.public QualifierMatcher getQualifierMatcher()
Qualifiers.matchAny().public BindRuleBuilder setQualifierMatcher(QualifierMatcher qm)
qm - The qualifier matcher.public Satisfaction getSatisfaction()
null if none is configured.public BindRuleBuilder setSatisfaction(Satisfaction sat)
sat - The satisfaction.public Class<?> getImplementation()
null if none is configured.public BindRuleBuilder setImplementation(Class<?> type)
type - The implementation class.public boolean isTerminal()
true if the binding will be terminal.public BindRuleBuilder setTerminal(boolean term)
term - true to create a terminal binding.BindingFlag.TERMINALpublic BindRuleBuilder setFlags(EnumSet<BindingFlag> fs)
fs - The flags.public BindRuleBuilder addFlag(BindingFlag flag)
flag - The flag to add.public CachePolicy getCachePolicy()
public BindRuleBuilder setCachePolicy(CachePolicy policy)
policy - The cache policy.public BindRule build()
Copyright © 2016 GroupLens Research. All rights reserved.