001    package org.cumulus4j.keymanager.front.webapp;
002    
003    import javax.ws.rs.core.Context;
004    import javax.ws.rs.ext.Provider;
005    
006    import com.sun.jersey.spi.inject.SingletonTypeInjectableProvider;
007    
008    /**
009     * Jersey provider making {@link KeyStoreManager} injectable.
010     * @author Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de
011     */
012    @Provider
013    public class KeyStoreManagerProvider
014    extends SingletonTypeInjectableProvider<Context, KeyStoreManager>
015    {
016            /**
017             * Create a provider instance with the specified {@link KeyStoreManager}-singleton.
018             * @param keyStoreManager the singleton to be provided via {@link Context}.
019             */
020            public KeyStoreManagerProvider(KeyStoreManager keyStoreManager) {
021                    super(KeyStoreManager.class, keyStoreManager);
022            }
023    }