public class DependencyInjection extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static org.slf4j.Logger |
log |
(package private) static boolean |
PARTITIONED_STREAMS |
(package private) List<Reference> |
refs |
(package private) Map<String,List<String>> |
remapping |
| Constructor and Description |
|---|
DependencyInjection() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Reference ref) |
void |
addAll(Collection<Reference> refs) |
protected String |
getNextPartition(String streamId) |
protected boolean |
hasPartitions(String streamId) |
static Class<? extends Service> |
hasServiceSetter(String name,
Object o) |
static Class<? extends Sink> |
hasSinkSetter(String name,
Object o) |
private boolean |
inject(ComputeGraph.ServiceRef ref,
ComputeGraph graph,
NamingService namingService) |
private boolean |
inject(ComputeGraph.SinkRef ref,
ComputeGraph graph) |
private boolean |
inject(ComputeGraph.SourceRef ref,
ComputeGraph graph) |
private boolean |
inject(Reference ref,
ComputeGraph graph,
NamingService namingService) |
void |
injectDependencies(ComputeGraph graph,
NamingService namingService) |
boolean |
injectResolvedReferences(Object o,
String property,
Object[] resolvedRefs) |
static boolean |
isArraySetter(Method m,
Class<?> type) |
static boolean |
isServiceImplementation(Class<?> clazz)
This method checks whether the given class implements the Service
interface.
|
static boolean |
isServiceSetter(Method m)
This method checks whether the provided method is a service setter, i.e.
|
static boolean |
isSetter(Method m,
Class<?> type) |
static boolean |
isSinkArraySetter(Method m) |
static boolean |
isSinkSetter(Method m) |
static boolean |
isSourceSetter(Method m) |
static org.slf4j.Logger log
static final boolean PARTITIONED_STREAMS
public void add(Reference ref)
public void addAll(Collection<Reference> refs)
protected boolean hasPartitions(String streamId)
public void injectDependencies(ComputeGraph graph, NamingService namingService) throws Exception
Exceptionprivate boolean inject(Reference ref, ComputeGraph graph, NamingService namingService) throws Exception
Exceptionprivate boolean inject(ComputeGraph.SinkRef ref, ComputeGraph graph) throws Exception
Exceptionprivate boolean inject(ComputeGraph.SourceRef ref, ComputeGraph graph) throws Exception
Exceptionprivate boolean inject(ComputeGraph.ServiceRef ref, ComputeGraph graph, NamingService namingService) throws Exception
Exceptionpublic boolean injectResolvedReferences(Object o, String property, Object[] resolvedRefs) throws Exception
Exceptionpublic static boolean isServiceSetter(Method m)
set and provides additional
characters, i.e. set alone is not enough.m - public static boolean isSourceSetter(Method m)
public static boolean isSinkSetter(Method m)
public static boolean isSinkArraySetter(Method m)
public static boolean isServiceImplementation(Class<?> clazz)
clazz - Copyright © 2018. All rights reserved.