Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 297 for Singleton (0.09 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. 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)
  4. 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)
  5. src/main/resources/crawler/transformer.xml

    	<component name="fessFileTransformer" class="org.codelibs.fess.crawler.transformer.FessFileTransformer" instance="singleton">
    		<property name="name">"fessFileTransformer"</property>
    	</component>
    
    	<component name="fessStandardTransformer" class="org.codelibs.fess.crawler.transformer.FessStandardTransformer" instance="singleton">
    		<property name="name">"fessStandardTransformer"</property>
    	</component>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jan 10 03:35:10 UTC 2019
    - 1.6K bytes
    - Viewed (0)
  6. 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")
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/project/ClasspathArtifactResolver.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.project;
    
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.io.FileNotFoundException;
    import java.net.URISyntaxException;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.List;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. compat/maven-compat/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java

            Set<Artifact> artifactDependencies =
                resolver.resolve( project, Collections.singleton( Artifact.SCOPE_COMPILE ), session );
            assertEquals( 0, artifactDependencies.size() );
    
            artifactDependencies = resolver.resolve( project, Collections.singleton( Artifact.SCOPE_RUNTIME ), session );
            assertEquals( 1, artifactDependencies.size() );
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  9. 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;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. compat/maven-compat/src/test/java/org/apache/maven/project/TestArtifactResolver.java

     */
    package org.apache.maven.project;
    
    import javax.inject.Inject;
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import org.apache.maven.artifact.metadata.ArtifactMetadataSource;
    import org.apache.maven.artifact.resolver.DefaultArtifactResolver;
    
    @Named("classpath")
    @Singleton
    @Deprecated
    public class TestArtifactResolver extends DefaultArtifactResolver {
        private ArtifactMetadataSource source;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.3K bytes
    - Viewed (0)
Back to top