public class DefaultRelationBuilder extends java.lang.Object implements RelationBuilder
RelationBuilder
RelationBuilder.WithName
Constructor and Description |
---|
DefaultRelationBuilder(Router router,
Proxifier proxifier) |
Modifier and Type | Method and Description |
---|---|
void |
add(Relation relation)
adds a relation
|
java.util.List<Relation> |
getRelations() |
<T> T |
relation(java.lang.Class<T> type)
Creates a relation using default name
|
RelationBuilder.WithName |
relation(java.lang.String name)
Creates a named relation
|
public void add(Relation relation)
RelationBuilder
add
in interface RelationBuilder
public RelationBuilder.WithName relation(java.lang.String name)
RelationBuilder
relation
in interface RelationBuilder
public java.util.List<Relation> getRelations()
getRelations
in interface RelationBuilder
public <T> T relation(java.lang.Class<T> type)
RelationBuilder
relation
in interface RelationBuilder
Copyright © 2013 Caelum. All Rights Reserved.