- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 351 for Singleton (0.05 seconds)
-
api/maven-api-di/src/main/java/org/apache/maven/api/di/Singleton.java
/** * Denotes that a bean should be created as a singleton instance. * <p> * Singleton-scoped beans are instantiated once and reused throughout the entire * Maven execution. This scope should be used for stateless services or components * that can be safely shared across the entire build process. * <p> * Example usage: * <pre> * {@literal @}Singleton * public class GlobalConfiguration { * // Implementation
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Jan 30 23:28:59 GMT 2025 - 1.5K bytes - Click Count (0) -
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
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Aug 15 12:04:40 GMT 2024 - 952 bytes - Click Count (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)));
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 9.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/SetViewTest.java
.addEqualityGroup( singleton(1), union(singleton(1), singleton(1)), intersection(newHashSet(1, 2), newHashSet(1, 3)), difference(newHashSet(1, 2), newHashSet(2, 3)), symmetricDifference(newHashSet(1, 2, 3), newHashSet(2, 3))) .addEqualityGroup( singleton(2), union(singleton(2), singleton(2)),
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 29.9K bytes - Click Count (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionSchemeProvider.java
import javax.inject.Provider; import javax.inject.Singleton; import org.eclipse.aether.util.version.GenericVersionScheme; import org.eclipse.aether.version.VersionScheme; /** * Default version scheme provider: provides singleton {@link GenericVersionScheme} instance. * * @deprecated since 4.0.0, use {@code maven-api-impl} jar instead */ @Singleton @Named @Deprecated(since = "4.0.0")Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.6K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/DefaultProjectDependenciesResolver.java
* specific language governing permissions and limitations * under the License. */ package org.apache.maven; import javax.inject.Inject; import javax.inject.Named; import javax.inject.Singleton; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.Set;
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 8.4K bytes - Click Count (1) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java
import static com.google.common.collect.testing.features.CollectionSize.ZERO; import static com.google.common.collect.testing.google.MultisetFeature.ENTRIES_ARE_VIEWS; import static java.util.Collections.singleton; import com.google.common.annotations.GwtCompatible; import com.google.common.collect.Multiset; import com.google.common.collect.Multisets; import com.google.common.collect.testing.features.CollectionFeature;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 9.6K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/TestMavenRepositorySystem.java
*/ package org.apache.maven.project; import javax.inject.Inject; import javax.inject.Named; import javax.inject.Singleton; import org.apache.maven.artifact.resolver.ArtifactResolver; import org.apache.maven.repository.legacy.LegacyRepositorySystem; @Named("classpath") @Singleton @Deprecated public class TestMavenRepositorySystem extends LegacyRepositorySystem { @InjectCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.2K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/DefaultConflictResolver.java
import javax.inject.Named; import javax.inject.Singleton; /** * The default conflict resolver that delegates to the nearest strategy. * * @see NearestConflictResolver * @deprecated As of 3.0, use a specific implementation instead, e.g. {@link NearestConflictResolver} */ @Deprecated @Named @SingletonCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.2K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/execution/DefaultBuildResumptionDataRepositoryTest.java
import java.util.List; import java.util.Properties; import org.apache.maven.model.Build; import org.apache.maven.project.MavenProject; import org.junit.jupiter.api.Test; import static java.util.Collections.singleton; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; class DefaultBuildResumptionDataRepositoryTest {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 4.2K bytes - Click Count (0)