public class ComponentDescriptor extends Object
| Constructor and Description |
|---|
ComponentDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
<T> ComponentDescriptor |
addDependency(Class<T> requiredInterface,
IBinder<T> binder)
Add a simple (Cardinality.One) dependency.
|
<T> ComponentDescriptor |
addDependency(Class<T> requiredInterface,
IBinder<T> binder,
Cardinality cardinality)
Add a dependency.
|
ComponentDescriptor |
addProvidedInterface(Class<?> providedInterface)
Add an interface which this component implements and which can
be provided to other components.
|
ComponentDescriptor |
addStart(Runnable handler) |
ComponentDescriptor |
addStop(Runnable handler) |
List<Dependency<?>> |
getDependencies() |
Set<Class<?>> |
getProvidedInterfaces() |
List<Runnable> |
getStartHandlers() |
List<Runnable> |
getStopHandlers() |
ComponentDescriptor |
removeProvidedInterface(Class<?> providedInterface) |
public <T> ComponentDescriptor addDependency(Class<T> requiredInterface, IBinder<T> binder)
requiredInterface - The interface of which an implementation is required.public <T> ComponentDescriptor addDependency(Class<T> requiredInterface, IBinder<T> binder, Cardinality cardinality)
requiredInterface - The interface of which an implementation is required.cardinality - The number of instances which is required.binder - public ComponentDescriptor addProvidedInterface(Class<?> providedInterface)
providedInterface - An interface which is provided.public ComponentDescriptor addStart(Runnable handler)
public ComponentDescriptor addStop(Runnable handler)
public List<Dependency<?>> getDependencies()
public ComponentDescriptor removeProvidedInterface(Class<?> providedInterface)
Copyright © 2018 Symphony Software Foundation. All rights reserved.