annotations

Annotation Processor for generating creator classes

Лицензия

Лицензия

The MIT License
Категории

Категории

Сеть
Группа

Группа

net.octyl.apt-creator
Идентификатор

Идентификатор

apt-creator-annotations
Последняя версия

Последняя версия

0.1.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

annotations
Annotation Processor for generating creator classes
Ссылка на сайт

Ссылка на сайт

https://github.com/kenzierocks/apt-creator
Система контроля версий

Система контроля версий

https://github.com/kenzierocks/apt-creator

Скачать apt-creator-annotations

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/net.octyl.apt-creator/apt-creator-annotations/ -->
<dependency>
    <groupId>net.octyl.apt-creator</groupId>
    <artifactId>apt-creator-annotations</artifactId>
    <version>0.1.4</version>
</dependency>
// https://jarcasting.com/artifacts/net.octyl.apt-creator/apt-creator-annotations/
implementation 'net.octyl.apt-creator:apt-creator-annotations:0.1.4'
// https://jarcasting.com/artifacts/net.octyl.apt-creator/apt-creator-annotations/
implementation ("net.octyl.apt-creator:apt-creator-annotations:0.1.4")
'net.octyl.apt-creator:apt-creator-annotations:jar:0.1.4'
<dependency org="net.octyl.apt-creator" name="apt-creator-annotations" rev="0.1.4">
  <artifact name="apt-creator-annotations" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.octyl.apt-creator', module='apt-creator-annotations', version='0.1.4')
)
libraryDependencies += "net.octyl.apt-creator" % "apt-creator-annotations" % "0.1.4"
[net.octyl.apt-creator/apt-creator-annotations "0.1.4"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

apt-creator

Annotation processor for making factory/creator implementations, like Auto Factory. Supports less features, but was written since Auto Factory had not updated to JDK 9+ in many months.

Usage

apt-creator is very similar to Auto Factory. Simply annotate your class with @GenerateCreator, and any parameters that should be injected (via JSR 330) with @Provided.

Multiple constructors are supported as long as they don't create duplicate signatures after any @Provided arguments are dropped.

The generated class will be named the same way that Auto Factory names factories. A top-level class Foo will generate FooCreator. A class Bar nested inside Biz will generate Biz_BarCreator. You may override the name like with Auto Factory by setting className, e.g. @GenerateCreator(className = "FezFactory") will generate a class named FezFactory. This allows for full control over the name if needed.

Версии библиотеки

Версия
0.1.4
0.1.3
0.1.1