Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for qualified (0.5 sec)

  1. api/maven-api-di/src/main/java/org/apache/maven/api/di/Qualifier.java

    import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
    import static java.lang.annotation.RetentionPolicy.RUNTIME;
    
    @Target(ANNOTATION_TYPE)
    @Retention(RUNTIME)
    @Documented
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Feb 05 09:45:47 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScope.java

        @Override
        public <T> Supplier<T> scope(org.apache.maven.di.Key<T> key, Annotation scope, Supplier<T> unscoped) {
            Object qualifier = key.getQualifier();
            Key k = qualifier != null
                    ? Key.get(key.getType(), qualifier instanceof String s ? Names.named(s) : (Annotation) qualifier)
                    : Key.get(key.getType());
            Provider<T> up = unscoped::get;
            Provider<T> p = scope(k, up);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. maven-di/src/main/java/org/apache/maven/di/Key.java

        private final Type type;
        private final @Nullable Object qualifier;
    
        private int hash;
    
        protected Key() {
            this(null);
        }
    
        protected Key(@Nullable Object qualifier) {
            this.type = Types.simplifyType(getTypeParameter());
            this.qualifier = qualifier;
        }
    
        protected Key(Type type, @Nullable Object qualifier) {
            this.type = Types.simplifyType(type);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Feb 09 17:13:31 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RemoteSnapshotMetadata.java

                String version = artifact.getVersion();
    
                if (version.endsWith(SNAPSHOT)) {
                    String qualifier = snapshot.getTimestamp() + '-' + snapshot.getBuildNumber();
                    version = version.substring(0, version.length() - SNAPSHOT.length()) + qualifier;
                }
    
                SnapshotVersion sv = new SnapshotVersion();
                sv.setClassifier(artifact.getClassifier());
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 10:10:21 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. maven-di/src/test/java/org/apache/maven/di/impl/InjectorImplTest.java

            assertNotNull(mojo);
            assertInstanceOf(QualifierTest.MyQualifiedServiceImpl.class, mojo.service);
        }
    
        static class QualifierTest {
            @Qualifier
            @Retention(RUNTIME)
            @interface MyQualifier {}
    
            interface MyService {}
    
            @Named
            @Priority(10)
            static class MyNamedServiceImpl implements MyService {}
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Feb 09 17:13:31 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/RemoteSnapshotMetadata.java

                String version = artifact.getVersion();
    
                if (version.endsWith(SNAPSHOT)) {
                    String qualifier = snapshot.getTimestamp() + '-' + snapshot.getBuildNumber();
                    version = version.substring(0, version.length() - SNAPSHOT.length()) + qualifier;
                }
    
                SnapshotVersion sv = SnapshotVersion.newBuilder()
                        .classifier(artifact.getClassifier())
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 10:10:21 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScope.java

        @Override
        public <T> Supplier<T> scope(org.apache.maven.di.Key<T> key, Annotation scope, Supplier<T> unscoped) {
            Object qualifier = key.getQualifier();
            Key<?> k = qualifier != null
                    ? Key.get(key.getType(), qualifier instanceof String s ? Names.named(s) : (Annotation) qualifier)
                    : Key.get(key.getType());
            Provider<T> up = unscoped::get;
            Provider<T> p = scope((Key<T>) k, up);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  8. api/maven-api-di/src/main/java/org/apache/maven/api/di/Named.java

    import java.lang.annotation.Documented;
    import java.lang.annotation.Retention;
    
    import static java.lang.annotation.ElementType.*;
    import static java.lang.annotation.RetentionPolicy.RUNTIME;
    
    @Qualifier
    @Retention(RUNTIME)
    @Documented
    public @interface Named {
        String value() default "";
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Feb 05 09:45:47 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top