Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 343 for singleton (0.05 sec)

  1. internal/once/singleton.go

    package once
    
    // Singleton contains a pointer to T that must be set once.
    // Until the value is set all Get() calls will block.
    type Singleton[T any] struct {
    	v   *T
    	set chan struct{}
    }
    
    // NewSingleton creates a new unset singleton.
    func NewSingleton[T any]() *Singleton[T] {
    	return &Singleton[T]{set: make(chan struct{}), v: nil}
    }
    
    // Get will return the singleton value.
    func (s *Singleton[T]) Get() *T {
    	<-s.set
    	return s.v
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 952 bytes
    - Viewed (0)
  2. api/maven-api-di/src/main/java/org/apache/maven/api/di/Singleton.java

    import java.lang.annotation.Documented;
    import java.lang.annotation.Retention;
    
    import static java.lang.annotation.RetentionPolicy.RUNTIME;
    
    @Scope
    @Documented
    @Retention(RUNTIME)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Mon Feb 05 09:45:47 UTC 2024
    - 1K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TarExtractorTest.java

            container.singleton("archiveStreamFactory", ArchiveStreamFactory.class)
                    .singleton("compressorStreamFactory", CompressorStreamFactory.class).singleton("mimeTypeHelper", MimeTypeHelperImpl.class)
                    .singleton("tikaExtractor", TikaExtractor.class).singleton("tarExtractor", TarExtractor.class)
                    .<ExtractorFactory> singleton("extractorFactory", ExtractorFactory.class, factory -> {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/context/SingletonContext.java

    import jcifs.config.PropertyConfiguration;
    
    
    /**
     * Global singleton context
     * 
     * @author mbechler
     *
     */
    public class SingletonContext extends BaseContext implements CIFSContext {
    
        private static final Logger log = LoggerFactory.getLogger(SingletonContext.class);
        private static SingletonContext INSTANCE;
    
    
        /**
         * Initialize singleton context using custom properties
         * 
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jun 01 08:53:08 UTC 2019
    - 4.2K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/filter/impl/CustomUrlFilterImplTest.java

            StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("dataHelper", MemoryDataHelper.class)//
                    .singleton("urlFilterService", UrlFilterServiceImpl.class)//
                    .singleton("includeFilter", UrlFilterImpl.class)//
                    .singleton("excludeFilter", UrlFilterImpl.class)//
                    .singleton("domainFilter", UrlFilterImpl.class)//
            ;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. fess-crawler-lasta/src/main/resources/crawler/transformer_basic.xml

    		<property name="name">"htmlTransformer"</property>
    		<property name="featureMap">defaultFeatureMap</property>
    		<property name="propertyMap">defaultPropertyMap</property>
    		<property name="childUrlRuleMap">htmlUrlRuleMap</property>
    	</component>
    
    	<component name="textTransformer"
    		class="org.codelibs.fess.crawler.transformer.impl.TextTransformer" instance="singleton">
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sun Sep 30 21:21:24 UTC 2018
    - 3.3K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/ExtractorFactoryTest.java

                    .singleton("pdfExtractor", PdfExtractor.class)//
                    .singleton("lhaExtractor", LhaExtractor.class)//
                    .singleton("mimeTypeHelper", MimeTypeHelperImpl.class)//
                    .singleton("contentLengthHelper", ContentLengthHelper.class)//
                    .singleton("extractorFactory", ExtractorFactory.class);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Tue Jun 18 05:49:13 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/CrawlerClientFactoryTest.java

                    .singleton("httpClient", FaultTolerantClient.class)//
                    .singleton("fsClient", FileSystemClient.class)//
                    .singleton("smbClient", SmbClient.class)//
                    .singleton("smb1Client", org.codelibs.fess.crawler.client.smb1.SmbClient.class)//
                    .singleton("ftpClient", FtpClient.class)//
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

                    .singleton("urlConvertHelper", UrlConvertHelper.class).singleton("intervalController", DefaultIntervalController.class)
                    .singleton("sitemapsHelper", SitemapsHelper.class).singleton("logHelper", LogHelperImpl.class)
                    .singleton("encodingHelper", EncodingHelper.class).singleton("contentLengthHelper", ContentLengthHelper.class)
                    .singleton("mimeTypeHelper", MimeTypeHelperImpl.class)
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 18K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/container/StandardCrawlerContainer.java

            return this;
        }
    
        public <T> StandardCrawlerContainer singleton(final String name, final Class<T> cls, final Consumer<T> initializer) {
            return singleton(name, cls, initializer, (Consumer<T>) null);
        }
    
        public <T> StandardCrawlerContainer singleton(final String name, final Class<T> cls) {
            return singleton(name, cls, (Consumer<T>) null, (Consumer<T>) null);
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top