colesico.framework.ioc.ioclet.Factory.get()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(104)

本文整理了Java中colesico.framework.ioc.ioclet.Factory.get()方法的一些代码示例,展示了Factory.get()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Factory.get()方法的具体详情如下:
包路径:colesico.framework.ioc.ioclet.Factory
类名称:Factory
方法名:get

Factory.get介绍

[英]Returns instance to be injected
[中]返回要注入的实例

代码示例

代码示例来源:origin: net.colesico.framework/colesico-ioc

@Override
  public final T get(Object message) {
    final Scope scope = scopeFac.get(message);
    return (T) scope.get(instanceKey, this, message);
  }
}

代码示例来源:origin: net.colesico.framework/colesico-ioc

@Override
public <T> T instance(Key<T> key, Object message) {
  Factory<T> factory = (Factory<T>) factories.get(key);
  if (factory == null) {
    throw new UnsatisfiedInjectionException(key);
  }
  activate(factory, key);
  return factory.get(message);
}

代码示例来源:origin: net.colesico.framework/colesico-profile

@Override
  public final ProfileKit create(final Object message) {
    return producer.get().getProfileKit(this.implFac.get(message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-profile

@Override
  public final Profile get(final Object message) {
    return producer.get().getProfile(this.kitFac.get(message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-weblet

@Override
  public final WebletTeleWriter create(final Object message) {
    return producer.get().getTextResponseWriter(this.implFac.get(message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-resource

@Override
  public final ResourceKit create(final Object message) {
    return producer.get().getResourcesKit(this.implFac.get(message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-weblet

@Override
  public final WebletTeleReader create(final Object message) {
    return producer.get().getProfileReader(this.implFac.get(message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-weblet

@Override
  public final WebletTeleReader create(final Object message) {
    return producer.get().getPrincipalReader(this.implFac.get(message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-validation

@Override
  public final ValidatorMessages get(final Object message) {
    return producer.get().getValidatorMessages0(this.implFac.get(message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-restlet

@Override
  public final RestletTeleReader create(final Object message) {
    return producer.get().getByteReader(this.implFac.get(message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-restlet

@Override
  public final RestletTeleReader create(final Object message) {
    return producer.get().getDoubleReader(this.implFac.get(message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-restlet

@Override
  public final RestletTeleReader create(final Object message) {
    return producer.get().getLocalDateTimeReader(this.implFac.get(message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-restlet

@Override
  public final RestletTeleReader create(final Object message) {
    return producer.get().getProfileReader(this.implFac.get(message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-restlet

@Override
  public final JsonConverter create(final Object message) {
    return producer.get().getJsonConverter(this.implFac.get(message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-restlet

@Override
  public final RestletTeleWriter create(final Object message) {
    return producer.get().getProfileWriter(this.implFac.get(message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-translation

@Override
  public final TranslationKit create(final Object message) {
    return producer.get().getTranslationKit(this.implFac.get(message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-weblet

@Override
  public final NavigationWriter get(final Object message) {
    return new NavigationWriter(this.routerFac.get(message),new DefaultProvider(this.httpContextProvFac,message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-weblet

@Override
  public final ProfileWriter create(final Object message) {
    return new ProfileWriter(new DefaultProvider(this.httpContextProvFac,message),this.configFac.get(message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-profile

@Override
  public final DefaultProfileKit get(final Object message) {
    return new DefaultProfileKit(this.threadScopeFac.get(message),new DefaultProvider(this.dataPortProvFac,message));
  }
};

代码示例来源:origin: net.colesico.framework/colesico-router

@Override
  public final RouterImpl create(final Object message) {
    final Factory<TeleFacade> teleFacadesSuppVar=ioc.factoryOrNull(new ClassedKey(TeleFacade.class,Router.class));
    return new RouterImpl(new DefaultPolysupplier(teleFacadesSuppVar),this.threadScopeFac.get(message));
  }
};

相关文章

Factory类方法