public abstract class AbstractBindingTargetFactory<T> extends Object implements BindingTargetFactory
BindingTargetFactory implementation that restricts the type of binding target
to a specified class and its supertypes.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBindingTargetFactory(Class<T> bindingTargetType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreate(Class<?> clazz)
Checks whether a specific binding target type can be created by this factory.
|
abstract T |
createInput(String name)
Create an input binding target that will be bound via a corresponding
Binder. |
abstract T |
createOutput(String name)
Create an output binding target that will be bound via a corresponding
Binder. |
public final boolean canCreate(Class<?> clazz)
BindingTargetFactorycanCreate in interface BindingTargetFactoryclazz - the binding target typepublic abstract T createInput(String name)
BindingTargetFactoryBinder.createInput in interface BindingTargetFactoryname - name of the binding targetpublic abstract T createOutput(String name)
BindingTargetFactoryBinder.createOutput in interface BindingTargetFactoryname - name of the binding targetCopyright © 2018 Pivotal Software, Inc.. All rights reserved.