本文整理了Java中org.apache.cayenne.di.Inject.<init>()
方法的一些代码示例,展示了Inject.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Inject.<init>()
方法的具体详情如下:
包路径:org.apache.cayenne.di.Inject
类名称:Inject
方法名:<init>
暂无
代码示例来源:origin: org.apache.cayenne/cayenne-di
/**
* @since 4.0
*/
public DefaultAdhocObjectFactory(@Inject Injector injector, @Inject ClassLoaderManager classLoaderManager) {
this.injector = injector;
this.classLoaderManager = classLoaderManager;
}
代码示例来源:origin: org.apache.cayenne/cayenne-server
public Oracle8Adapter(@Inject RuntimeProperties runtimeProperties,
@Inject(Constants.SERVER_DEFAULT_TYPES_LIST) List<ExtendedType> defaultExtendedTypes,
@Inject(Constants.SERVER_USER_TYPES_LIST) List<ExtendedType> userExtendedTypes,
@Inject(Constants.SERVER_TYPE_FACTORIES_LIST) List<ExtendedTypeFactory> extendedTypeFactories,
@Inject(Constants.SERVER_RESOURCE_LOCATOR) ResourceLocator resourceLocator,
@Inject ValueObjectTypeRegistry valueObjectTypeRegistry) {
super(runtimeProperties, defaultExtendedTypes, userExtendedTypes, extendedTypeFactories, resourceLocator, valueObjectTypeRegistry);
}
代码示例来源:origin: org.apache.cayenne/cayenne-server
public DefaultDataRowStoreFactory(@Inject Provider<EventBridge> eventBridgeProvider,
@Inject EventManager eventManager,
@Inject RuntimeProperties properties) {
this.eventBridgeProvider = eventBridgeProvider;
this.eventManager = eventManager;
this.properties = properties;
}
代码示例来源:origin: agrestio/agrest
public CreateResourceEntityStage(
@Inject IMetadataService metadataService,
@Inject IIncludeMerger includeMerger,
@Inject IExcludeMerger excludeMerger) {
this.metadataService = metadataService;
this.includeMerger = includeMerger;
this.excludeMerger = excludeMerger;
}
代码示例来源:origin: agrestio/agrest
public IncludeParser(@Inject IJacksonService jsonParser,
@Inject ICayenneExpParser expParser,
@Inject ISortParser sortParser,
@Inject IMapByParser mapByParser,
@Inject ISizeParser sizeParser) {
this.jsonParser = jsonParser;
this.expParser = expParser;
this.sortParser = sortParser;
this.mapByParser = mapByParser;
this.sizeParser = sizeParser;
}
代码示例来源:origin: org.apache.cayenne.modeler/cayenne-modeler
public ModelerDbImportAction(@Inject Logger logger,
@Inject ProjectSaver projectSaver,
@Inject DataSourceFactory dataSourceFactory,
@Inject DbAdapterFactory adapterFactory,
@Inject MapLoader mapLoader,
@Inject MergerTokenFactoryProvider mergerTokenFactoryProvider) {
super(logger, projectSaver, dataSourceFactory, adapterFactory, mapLoader, mergerTokenFactoryProvider);
}
代码示例来源:origin: org.apache.cayenne/cayenne-server
public FrontBaseAdapter(@Inject RuntimeProperties runtimeProperties,
@Inject(Constants.SERVER_DEFAULT_TYPES_LIST) List<ExtendedType> defaultExtendedTypes,
@Inject(Constants.SERVER_USER_TYPES_LIST) List<ExtendedType> userExtendedTypes,
@Inject(Constants.SERVER_TYPE_FACTORIES_LIST) List<ExtendedTypeFactory> extendedTypeFactories,
@Inject(Constants.SERVER_RESOURCE_LOCATOR) ResourceLocator resourceLocator,
@Inject ValueObjectTypeRegistry valueObjectTypeRegistry) {
super(runtimeProperties, defaultExtendedTypes, userExtendedTypes, extendedTypeFactories, resourceLocator, valueObjectTypeRegistry);
setSupportsBatchUpdates(true);
}
代码示例来源:origin: org.apache.cayenne/cayenne-server
public DB2Adapter(@Inject RuntimeProperties runtimeProperties,
@Inject(Constants.SERVER_DEFAULT_TYPES_LIST) List<ExtendedType> defaultExtendedTypes,
@Inject(Constants.SERVER_USER_TYPES_LIST) List<ExtendedType> userExtendedTypes,
@Inject(Constants.SERVER_TYPE_FACTORIES_LIST) List<ExtendedTypeFactory> extendedTypeFactories,
@Inject(Constants.SERVER_RESOURCE_LOCATOR) ResourceLocator resourceLocator,
@Inject ValueObjectTypeRegistry valueObjectTypeRegistry) {
super(runtimeProperties, defaultExtendedTypes, userExtendedTypes, extendedTypeFactories, resourceLocator, valueObjectTypeRegistry);
setSupportsGeneratedKeys(true);
}
代码示例来源:origin: com.nhl.link.move/link-move
public ExtractorService(
@Inject IExtractorModelService modelService,
@Inject IConnectorService connectorService,
@Inject Map<String, IExtractorFactory> factories) {
this.factories = factories;
this.modelService = modelService;
this.connectorService = connectorService;
this.extractors = new ConcurrentHashMap<>();
}
代码示例来源:origin: org.apache.cayenne/cayenne-server
public OpenBaseAdapter(@Inject RuntimeProperties runtimeProperties,
@Inject(Constants.SERVER_DEFAULT_TYPES_LIST) List<ExtendedType> defaultExtendedTypes,
@Inject(Constants.SERVER_USER_TYPES_LIST) List<ExtendedType> userExtendedTypes,
@Inject(Constants.SERVER_TYPE_FACTORIES_LIST) List<ExtendedTypeFactory> extendedTypeFactories,
@Inject(Constants.SERVER_RESOURCE_LOCATOR) ResourceLocator resourceLocator,
@Inject ValueObjectTypeRegistry valueObjectTypeRegistry) {
super(runtimeProperties, defaultExtendedTypes, userExtendedTypes, extendedTypeFactories, resourceLocator, valueObjectTypeRegistry);
// init defaults
this.setSupportsUniqueConstraints(false);
}
代码示例来源:origin: org.apache.cayenne/cayenne-server
public H2Adapter(@Inject RuntimeProperties runtimeProperties,
@Inject(Constants.SERVER_DEFAULT_TYPES_LIST) List<ExtendedType> defaultExtendedTypes,
@Inject(Constants.SERVER_USER_TYPES_LIST) List<ExtendedType> userExtendedTypes,
@Inject(Constants.SERVER_TYPE_FACTORIES_LIST) List<ExtendedTypeFactory> extendedTypeFactories,
@Inject(Constants.SERVER_RESOURCE_LOCATOR) ResourceLocator resourceLocator,
@Inject ValueObjectTypeRegistry valueObjectTypeRegistry) {
super(runtimeProperties, defaultExtendedTypes, userExtendedTypes, extendedTypeFactories, resourceLocator, valueObjectTypeRegistry);
setSupportsGeneratedKeys(true);
}
代码示例来源:origin: org.apache.cayenne/cayenne-server
public OracleAdapter(@Inject RuntimeProperties runtimeProperties,
@Inject(Constants.SERVER_DEFAULT_TYPES_LIST) List<ExtendedType> defaultExtendedTypes,
@Inject(Constants.SERVER_USER_TYPES_LIST) List<ExtendedType> userExtendedTypes,
@Inject(Constants.SERVER_TYPE_FACTORIES_LIST) List<ExtendedTypeFactory> extendedTypeFactories,
@Inject(Constants.SERVER_RESOURCE_LOCATOR) ResourceLocator resourceLocator,
@Inject ValueObjectTypeRegistry valueObjectTypeRegistry) {
super(runtimeProperties, defaultExtendedTypes, userExtendedTypes, extendedTypeFactories, resourceLocator, valueObjectTypeRegistry);
// enable batch updates by default
setSupportsBatchUpdates(true);
}
代码示例来源:origin: com.nhl.link.move/link-move
public ConnectorService(
@Inject Map<String, IConnectorFactory> factories,
@Inject Map<String, Connector> connectors) {
this.factories = factories;
this.connectors = new ConcurrentHashMap<>(connectors);
}
代码示例来源:origin: com.nhl.link.move/link-move
public ExtractorModelService(
@Inject ResourceResolver modelLoader,
@Inject IExtractorModelParser parser) {
this.parser = parser;
this.modelLoader = modelLoader;
this.containers = new ConcurrentHashMap<>();
}
代码示例来源:origin: org.apache.cayenne/cayenne-server
public DefaultDbAdapterFactory(@Inject(Constants.SERVER_ADAPTER_DETECTORS_LIST) List<DbAdapterDetector> detectors) {
if (detectors == null) {
throw new NullPointerException("Null detectors list");
}
this.detectors = detectors;
}
代码示例来源:origin: org.apache.cayenne/cayenne-server
public SQLServerAdapter(@Inject RuntimeProperties runtimeProperties,
@Inject(Constants.SERVER_DEFAULT_TYPES_LIST) List<ExtendedType> defaultExtendedTypes,
@Inject(Constants.SERVER_USER_TYPES_LIST) List<ExtendedType> userExtendedTypes,
@Inject(Constants.SERVER_TYPE_FACTORIES_LIST) List<ExtendedTypeFactory> extendedTypeFactories,
@Inject(Constants.SERVER_RESOURCE_LOCATOR) ResourceLocator resourceLocator,
@Inject ValueObjectTypeRegistry valueObjectTypeRegistry) {
super(runtimeProperties, defaultExtendedTypes, userExtendedTypes, extendedTypeFactories, resourceLocator, valueObjectTypeRegistry);
// TODO: i wonder if Sybase supports generated keys...
// in this case we need to move this to the super.
this.setSupportsGeneratedKeys(true);
this.setSupportsBatchUpdates(true);
}
代码示例来源:origin: org.apache.cayenne/cayenne-cache-invalidation
public CacheInvalidationFilter(@Inject Provider<QueryCache> cacheProvider, @Inject List<InvalidationHandler> handlers) {
this.mappedHandlers = new ConcurrentHashMap<>();
this.skipHandler = new InvalidationFunction() {
@Override
public Collection<CacheGroupDescriptor> apply(Persistent p) {
return Collections.emptyList();
}
};
this.groups = new ThreadLocal<>();
this.cacheProvider = cacheProvider;
this.handlers = handlers;
}
代码示例来源:origin: org.apache.cayenne/cayenne-commitlog
public AnnotationCommitLogEntityFactory(@Inject Provider<DataChannel> channelProvider) {
this.entities = new ConcurrentHashMap<>();
// injecting provider instead of DataChannel, as otherwise we end up
// with circular dependency.
this.channelProvider = channelProvider;
}
代码示例来源:origin: org.apache.cayenne/cayenne-server
public IngresAdapter(@Inject RuntimeProperties runtimeProperties,
@Inject(Constants.SERVER_DEFAULT_TYPES_LIST) List<ExtendedType> defaultExtendedTypes,
@Inject(Constants.SERVER_USER_TYPES_LIST) List<ExtendedType> userExtendedTypes,
@Inject(Constants.SERVER_TYPE_FACTORIES_LIST) List<ExtendedTypeFactory> extendedTypeFactories,
@Inject(Constants.SERVER_RESOURCE_LOCATOR) ResourceLocator resourceLocator,
@Inject ValueObjectTypeRegistry valueObjectTypeRegistry) {
super(runtimeProperties, defaultExtendedTypes, userExtendedTypes, extendedTypeFactories, resourceLocator, valueObjectTypeRegistry);
setSupportsUniqueConstraints(true);
setSupportsGeneratedKeys(true);
}
代码示例来源:origin: org.apache.cayenne/cayenne-server
public PostgresAdapter(@Inject RuntimeProperties runtimeProperties,
@Inject(Constants.SERVER_DEFAULT_TYPES_LIST) List<ExtendedType> defaultExtendedTypes,
@Inject(Constants.SERVER_USER_TYPES_LIST) List<ExtendedType> userExtendedTypes,
@Inject(Constants.SERVER_TYPE_FACTORIES_LIST) List<ExtendedTypeFactory> extendedTypeFactories,
@Inject(Constants.SERVER_RESOURCE_LOCATOR) ResourceLocator resourceLocator,
@Inject ValueObjectTypeRegistry valueObjectTypeRegistry) {
super(runtimeProperties, defaultExtendedTypes, userExtendedTypes, extendedTypeFactories, resourceLocator, valueObjectTypeRegistry);
setSupportsBatchUpdates(true);
setSupportsGeneratedKeys(true);
}
内容来源于网络,如有侵权,请联系作者删除!