Class PentahoSpringComponentProvider

java.lang.Object
org.glassfish.jersey.server.spring.SpringComponentProvider
org.pentaho.platform.web.servlet.PentahoSpringComponentProvider
All Implemented Interfaces:
org.glassfish.jersey.server.spi.ComponentProvider, org.glassfish.jersey.spi.ComponentProvider

@Priority(5001) public class PentahoSpringComponentProvider extends org.glassfish.jersey.server.spring.SpringComponentProvider
This component will be created per plugin and will be resolved by jersey through Java SPI API.

This component acts as a bridge between Jersey's HK2 and Plugin Spring cotext. So that the jersey resources defined in spring context will be identified by Jersey.

The priority of this class should be greater than
invalid reference
jakarta.ws.rs.Priorities.USER
. So that Plugin Context will be considered to resolve the
invalid @link
{@link @Autowired
} components in the jersey resources
  • Field Details

  • Constructor Details

    • PentahoSpringComponentProvider

      public PentahoSpringComponentProvider()
  • Method Details

    • initialize

      public void initialize(org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
      Specified by:
      initialize in interface org.glassfish.jersey.spi.ComponentProvider
      Overrides:
      initialize in class org.glassfish.jersey.server.spring.SpringComponentProvider
    • bind

      public boolean bind(Class<?> component, Set<Class<?>> providerContracts)
      Specified by:
      bind in interface org.glassfish.jersey.spi.ComponentProvider
      Overrides:
      bind in class org.glassfish.jersey.server.spring.SpringComponentProvider