- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 315 for singleton (0.12 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/scopes/Maven4ScopeManagerConfiguration.java
DependencyScope.COMPILE_ONLY.isTransitive(), singleton(CommonBuilds.PROJECT_PATH_MAIN, CommonBuilds.BUILD_PATH_COMPILE))); result.add(internalScopeManager.createDependencyScope( DependencyScope.TEST_RUNTIME.id(), DependencyScope.TEST_RUNTIME.isTransitive(), singleton(CommonBuilds.PROJECT_PATH_TEST, CommonBuilds.BUILD_PATH_RUNTIME)));
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 9.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractorTest.java
super.setUp(); StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("emlExtractor", EmlExtractor.class); container.singleton("mimeTypeHelper", MimeTypeHelperImpl.class).singleton("tikaExtractor", TikaExtractor.class) .singleton("zipExtractor", ZipExtractor.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 - 4.5K bytes - Viewed (0)