42 lines
1.9 KiB
Java
42 lines
1.9 KiB
Java
package love.distributedrebirth.bassboonyd.clazz;
|
||
|
||
import love.distributedrebirth.bassboonyd.BãßBȍőnʸᴰ;
|
||
import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinNail;
|
||
import love.distributedrebirth.bassboonyd.BãßBȍőnPhaseBarrierʸᴰ;
|
||
import love.distributedrebirth.bassboonyd.sinit.BãßBȍőnꝐŕḯṿª₮ḕ;
|
||
import love.distributedrebirth.bassboonyd.sinit.BãßBȍőnꝐŕḯṿª₮ḕInit注;
|
||
|
||
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||
@BãßBȍőnAnnotation注(optional = {BãßBȍőnInfo注.class})
|
||
public interface BãßBȍőnInfoʸᴰ<T, K extends BãßBȍőnCoffinNail> extends BãßBȍőnʸᴰ<T, K> {
|
||
|
||
public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ {
|
||
private static final String GHOST_KEY_BEAN_NAME = "beanName";
|
||
private static final String GHOST_KEY_BEAN_PURPOSE = "beanPurpose";
|
||
private static final String DEFAULT_BEAN_PURPOSE = "Undefined";
|
||
|
||
@BãßBȍőnꝐŕḯṿª₮ḕInit注(dependencies = {BãßBȍőnPhaseBarrierʸᴰ.βrahmanBoonLaw.class})
|
||
private static void init(BãßBȍőnʸᴰ<?,?> boon) {
|
||
BãßBȍőnInfo注 anno = boon.getClass().getAnnotation(BãßBȍőnInfo注.class);
|
||
String beanName = boon.getClass().getSimpleName();
|
||
String beanPurpose = DEFAULT_BEAN_PURPOSE;
|
||
if (anno != null && !anno.name().isBlank()) {
|
||
beanName = anno.name();
|
||
}
|
||
if (anno != null && !anno.purpose().isBlank()) {
|
||
beanPurpose = anno.purpose();
|
||
}
|
||
boon.toBBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_BEAN_NAME, beanName);
|
||
boon.toBBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_BEAN_PURPOSE, beanPurpose);
|
||
}
|
||
}
|
||
|
||
default String BãßInfoNaam() {
|
||
return toBBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_BEAN_NAME);
|
||
}
|
||
|
||
default String BãßInfoDoel() {
|
||
return toBBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_BEAN_PURPOSE);
|
||
}
|
||
}
|