Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for InjectorImpl (0.28 sec)

  1. maven-di/src/main/java/org/apache/maven/di/impl/InjectorImpl.java

    import org.apache.maven.di.Key;
    import org.apache.maven.di.Scope;
    
    public class InjectorImpl implements Injector {
    
        private final Map<Key<?>, Set<Binding<?>>> bindings = new HashMap<>();
        private final Map<Class<? extends Annotation>, Supplier<Scope>> scopes = new HashMap<>();
    
        public InjectorImpl() {
            bindScope(Singleton.class, new SingletonScope());
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  2. maven-di/src/main/java/org/apache/maven/di/Injector.java

    package org.apache.maven.di;
    
    import java.lang.annotation.Annotation;
    import java.util.function.Supplier;
    
    import org.apache.maven.di.impl.InjectorImpl;
    
    public interface Injector {
    
        //
        // Builder API
        //
    
        static Injector create() {
            return new InjectorImpl();
        }
    
        Injector discover(ClassLoader classLoader);
    
        Injector bindScope(Class<? extends Annotation> scopeAnnotation, Scope scope);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java

    @Named
    class SisuDiBridgeModule extends AbstractModule {
    
        @Override
        protected void configure() {
            Provider<PlexusContainer> containerProvider = getProvider(PlexusContainer.class);
    
            InjectorImpl injector = new InjectorImpl() {
                @Override
                public <Q> Supplier<Q> getCompiledBinding(Key<Q> key) {
                    Set<Binding<Q>> res = getBindings(key);
                    if (res != null && !res.isEmpty()) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top