public interface ObjectConstructor
Modifier and Type | Method and Description |
---|---|
<T,C extends Connection> |
tryToFindOrConstructAllObjects(java.lang.Class<T> type,
java.lang.Class<C> connectionType,
java.lang.String role,
java.lang.Object... input)
Finds as many objects of the given type as can be found through the
connections of the other given type.
|
<T,C extends Connection> |
tryToFindOrConstructFirstNamedObject(java.lang.Class<T> type,
java.lang.String name,
java.lang.Class<C> connectionType,
java.lang.String role,
java.lang.Object... input)
Returns the first object of the given type as can be found through the
connections of the other given type.
|
<T,C extends Connection> |
tryToFindOrConstructFirstObject(java.lang.Class<T> type,
java.lang.Class<C> connectionType,
java.lang.String role,
java.lang.Object... input)
Returns the first object of the given type as can be found through the
connections of the other given type.
|
<T,C extends Connection> java.util.Collection<T> tryToFindOrConstructAllObjects(java.lang.Class<T> type, java.lang.Class<C> connectionType, java.lang.String role, java.lang.Object... input) throws ConnectionCannotBeObtained
T
- The type of the return object required. - extends Connection> The type of the connections to use when
trying to find the objects.
type
- the type of the return object required.connectionType
- the type of the connections to use when trying to find the
objects.role
- the assumed role of the object in the connection. Given a
connection, the object can be retrieved through the role.input
- the input on which the plugin should workConnectionCannotBeObtained
<T,C extends Connection> T tryToFindOrConstructFirstObject(java.lang.Class<T> type, java.lang.Class<C> connectionType, java.lang.String role, java.lang.Object... input) throws ConnectionCannotBeObtained
T
- The type of the return object required. - extends Connection> The type of the connections to use when
trying to find the objects.
type
- the type of the return object required.connectionType
- the type of the connections to use when trying to find the
objects.role
- the assumed role of the object in the connection. Given a
connection, the object can be retrieved through the role.input
- the input on which the plugin should workConnectionCannotBeObtained
<T,C extends Connection> T tryToFindOrConstructFirstNamedObject(java.lang.Class<T> type, java.lang.String name, java.lang.Class<C> connectionType, java.lang.String role, java.lang.Object... input) throws ConnectionCannotBeObtained
T
- The type of the return object required. - extends Connection> The type of the connections to use when
trying to find the objects.
type
- the type of the return object required.name
- the name of the plugin to use.connectionType
- the type of the connections to use when trying to find the
objects.role
- the assumed role of the object in the connection. Given a
connection, the object can be retrieved through the role.input
- the input on which the plugin should workConnectionCannotBeObtained