@Override public Map<Class<? extends Annotation>, Scope> getScopeBindings() { return delegateInjector.getScopeBindings(); }
public Map<Class<? extends Annotation>, Scope> getScopeBindings() { return resolve().getScopeBindings(); }
@Override public Map<Class<? extends Annotation>, Scope> getScopeBindings() { return delegateInjector.getScopeBindings(); }
public Map<Class<? extends Annotation>, Scope> getScopeBindings() { return delegateInjector.getScopeBindings(); } public Set<TypeConverterBinding> getTypeConverterBindings() {
@Override public Map<Class<? extends Annotation>, Scope> getScopeBindings() { return delegateInjector.getScopeBindings(); }
@Override public Map<Class<? extends Annotation>, Scope> getScopeBindings() { return injector.getScopeBindings(); }
public Map<Class<? extends Annotation>, Scope> getScopeBindings() { return delegateInjector.getScopeBindings(); } public Set<TypeConverterBinding> getTypeConverterBindings() {
public Map<Class<? extends Annotation>, Scope> getScopeBindings() { return delegateInjector.getScopeBindings(); } public Set<TypeConverterBinding> getTypeConverterBindings() {
public Map<Class<? extends Annotation>, Scope> getScopeBindings() { return delegateInjector.getScopeBindings(); }
@Override public Boolean visitScopeAnnotation(Class<? extends Annotation> scopeAnnotation) { return injector.getScopeBindings().get(scopeAnnotation) == scope; } });
@Override public Boolean visitScope(Scope guiceScope) { return injector.getScopeBindings().get(scope) == guiceScope; }
public Map<Class<? extends Annotation>, Scope> getScopeBindings() { return resolve().getScopeBindings(); }
@Override public Map<Class<? extends Annotation>, Scope> getScopeBindings() { return injector().getScopeBindings(); }
@Override public Map<Class<? extends Annotation>, Scope> getScopeBindings() { return injector().getScopeBindings(); }
@Override public Map<Class<? extends Annotation>, Scope> getScopeBindings() { return injector().getScopeBindings(); }
/** * This constructor is usually never called directly. * <p>Instead use an existing {@link com.google.inject.Injector} instance * to fetch an instance of this class.</p> * @param injector * Usually injected via Guice. * @param fxmlLoadingScope * Usually injected via Guice. * @throws IllegalArgumentException * if you try to pass a {@code null} value as * injector instance. * @throws IllegalStateException * if the injector has no binding for the {@link FXMLController} * loading scope. */ @Inject public GuiceFXMLLoader(final Injector injector, final FXMLLoadingScope fxmlLoadingScope) { super(); if (injector == null) { throw new IllegalArgumentException("The Injector instance must not be null."); } if (!injector.getScopeBindings().containsKey(FXMLController.class)) { throw new IllegalStateException("FXMLController loading scope is not bound in your Injector."); } this.injector = injector; this.fxmlLoadingScope = fxmlLoadingScope; }
@Override public void call(Injector injector) { this.resourceMapper.setInjector(injector); this.preDestroyMonitor.addScopeBindings(injector.getScopeBindings()); } }
@Override public Map<Class<? extends Annotation>, Scope> getScopeBindings() { //System.out.println("in getScopeBindings"); synchronized (ContextScope.class) { scope.enter(context, scopedObjects); try { return delegate.getScopeBindings(); } finally { scope.exit(context); } } }
@Inject public static void initialize( final Injector injector, OptionalArgs args, LifecycleManager manager, LifecycleProvisionListener provisionListener, Set<LifecycleFeature> features) { provisionListener.features = features; provisionListener.shutdownOnFailure = args.hasShutdownOnFailure(); ValidationMode validationMode = args.getJsr250ValidationMode(); provisionListener.postConstructFeature = new PostConstructLifecycleFeature(validationMode); provisionListener.preDestroyFeature = new PreDestroyLifecycleFeature(validationMode); provisionListener.preDestroyMonitor = new PreDestroyMonitor(injector.getScopeBindings()); LOG.debug("LifecycleProvisionListener initialized with features {}", features); }
@Inject public LifecycleManager(LifecycleManagerArguments arguments, Injector injector) { if (injector != null) { preDestroyMonitor = new PreDestroyMonitor(injector.getScopeBindings()); } else { preDestroyMonitor = null; } configurationMapper = arguments.getConfigurationMapper(); newLifecycleManager = arguments.getLifecycleManager(); listeners = arguments.getLifecycleListeners().toArray(new LifecycleListener[0]); resourceMapper = new ResourceMapper(injector, ImmutableSet.copyOf(arguments.getResourceLocators())); configurationDocumentation = arguments.getConfigurationDocumentation(); configurationProvider = arguments.getConfigurationProvider(); }