// Enables other components to reconfigure this adapter
endpoint.getComponents().add(getEndpointComponent());
}
protected Component getEndpointComponent() {
return new Component() {
public <S> S getSPI(Class<S> spiType) {
if (spiType.isAssignableFrom(Reconfigurable.class)) {
return spiType.cast(Adapter.this);
}
return null;