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)
BindingTargetFactory
canCreate
in interface BindingTargetFactory
clazz
- the binding target typepublic abstract T createInput(String name)
BindingTargetFactory
Binder
.createInput
in interface BindingTargetFactory
name
- name of the binding targetpublic abstract T createOutput(String name)
BindingTargetFactory
Binder
.createOutput
in interface BindingTargetFactory
name
- name of the binding targetCopyright © 2019 Pivotal Software, Inc.. All rights reserved.