public <S> S getSPI(Class<S> spiType) { if (components == null) return null; for (Component c : components) { S s = c.getSPI(spiType); if (s != null) return s; } return null; }
public <S> S getSPI(Class<S> spiType) { if (components == null) return null; for (Component c : components) { S s = c.getSPI(spiType); if (s != null) return s; } return null; }
@Override public <S> S getSPI(Class<S> spiType) { for (Component c : components) { S spi = c.getSPI(spiType); if (spi != null) { return spi; } } return null; }
@Override public <S> S getSPI(Class<S> spiType) { for (Component c : components) { S spi = c.getSPI(spiType); if (spi != null) { return spi; } } return null; }
public <S> S getSPI(Class<S> spiType) { if (components == null) return null; for (Component c : components) { S s = c.getSPI(spiType); if (s != null) return s; } return null; }
public <S> S getSPI(Class<S> spiType) { return component.getSPI(spiType); }
@Override public <S> S getSPI(Class<S> spiType) { for (Component c : components) { S spi = c.getSPI(spiType); if (spi != null) { return spi; } } return null; }
public <S> S getSPI(Class<S> spiType) { return component.getSPI(spiType); }
public <S> S getSPI(Class<S> spiType) { return component.getSPI(spiType); }
public <S> S getSPI(Class<S> spiType) { return component.getSPI(spiType); }
@Override public <S> S getSPI(Class<S> spiType) { for (Component c : components) { S s = c.getSPI(spiType); if (s != null) { return s; } } return owner.getSPI(spiType); }
@Override public <S> S getSPI(Class<S> spiType) { for (Component c : components) { S s = c.getSPI(spiType); if (s != null) { return s; } } return owner.getSPI(spiType); }
@Override public <S> S getSPI(Class<S> spiType) { for (Component c : components) { S s = c.getSPI(spiType); if (s != null) { return s; } } return owner.getSPI(spiType); }
/** * Endpoints within a EndpointContext get the same container. */ private Container getContainer() { if (endpointContext != null) { if (endpointContext instanceof Component) { Container c = ((Component) endpointContext).getSPI(Container.class); if (c != null) return c; } for(Endpoint e : endpointContext.getEndpoints()) { if (e.isPublished() && e != this) { return ((EndpointImpl)e).container; } } } return new ServerContainer(); }
public @Nullable <S> S getSPI(@NotNull Class<S> spiType) { for (Component c : components) { S s = c.getSPI(spiType); if (s != null) return s; } return getContainer().getSPI(spiType); }
public @Nullable <S> S getSPI(@NotNull Class<S> spiType) { for (Component c : components) { S s = c.getSPI(spiType); if (s != null) return s; } return getContainer().getSPI(spiType); }
public @Nullable <S> S getSPI(@NotNull Class<S> spiType) { for (Component c : components) { S s = c.getSPI(spiType); if (s != null) return s; } return getContainer().getSPI(spiType); }
public @Nullable <S> S getSPI(@NotNull Class<S> spiType) { Set<Component> componentRegistry = getComponents(); if (componentRegistry != null) { for (Component c : componentRegistry) { S s = c.getSPI(spiType); if (s != null) return s; } } return getContainer().getSPI(spiType); }
public @Nullable <S> S getSPI(@NotNull Class<S> spiType) { Set<Component> componentRegistry = getComponents(); if (componentRegistry != null) { for (Component c : componentRegistry) { S s = c.getSPI(spiType); if (s != null) return s; } } return getContainer().getSPI(spiType); }
public @Nullable <S> S getSPI(@NotNull Class<S> spiType) { Set<Component> componentRegistry = getComponents(); if (componentRegistry != null) { for (Component c : componentRegistry) { S s = c.getSPI(spiType); if (s != null) return s; } } return getContainer().getSPI(spiType); }