View Javadoc

1   package com.atlassian.plugins.rest.common.multipart.jersey;
2   
3   import com.atlassian.plugins.rest.common.multipart.MultipartHandler;
4   import com.sun.jersey.spi.inject.SingletonTypeInjectableProvider;
5   
6   import javax.ws.rs.core.Context;
7   import javax.ws.rs.ext.Provider;
8   
9   @Provider
10  public class MultipartHandlerInjectableProvider extends SingletonTypeInjectableProvider<Context, MultipartHandler>
11  {
12      /**
13       * Construct a new instance with the Type and the instance.
14       * @param handler the instance.
15       */
16      public MultipartHandlerInjectableProvider(MultipartHandler handler)
17      {
18          super(MultipartHandler.class, handler);
19      }
20  }