Interface WiringHarness<T extends Annotation, W>
- Type Parameters:
T- the type ofAnnotationthat this harness consumes.W- the type of component that this harness knows how to wire.
- All Known Implementing Classes:
CheckBoxListSelectionWiringHarness, JCheckBoxWiringHarness, JComboBoxSelectionWiringHarness, JComboBoxWiringHarness, JLabelWiringHarness, JListSelectionWiringHarness, JListWiringHarness, JPasswordFieldWiringHarness, JProgressBarWiringHarness, JSliderWiringHarness, JSpinnerWiringHarness, JTextComponentWiringHarness, JToggleButtonWiringHarness, PasswordEditorWiringHarness
public interface WiringHarness<T extends Annotation, W>
Interface for classes that actually perform a specific wiring.
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends Binding> wire(T bound, BindingContext context, W toWire) Performs the wiring of a specific component based on the passed binding annotation.
-
Method Details
-
wire
Collection<? extends Binding> wire(T bound, BindingContext context, W toWire) throws IllegalAccessException, IntrospectionException Performs the wiring of a specific component based on the passed binding annotation.- Parameters:
bound- annotation containing the data needed to wire this component to the context.context- metadata about the context for wiring.toWire- the component to be wired by this harness.- Returns:
- one or more
Bindingobjects represent the wirings performed by this harness. - Throws:
IllegalAccessExceptionIntrospectionException
-