34 lines
1.8 KiB
Java
34 lines
1.8 KiB
Java
|
|
package love.distributedrebirth.bassboonyd.info;
|
||
|
|
|
||
|
|
import love.distributedrebirth.bassboonyd.BãßBȍőn;
|
||
|
|
import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreKeyʸᴰ;
|
||
|
|
import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕ;
|
||
|
|
import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ;
|
||
|
|
import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInit注;
|
||
|
|
|
||
|
|
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||
|
|
@BãßBȍőnAnnotation注(optional = {BãßBȍőnName注.class})
|
||
|
|
public interface BãßBȍőnNameʸᴰ<T, K extends BãßBȍőnCoffinStoreKeyʸᴰ> 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注(phase = BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ.BOON_PRE_BOOT)
|
||
|
|
private static void init(BãßBȍőn<?,?> boon) {
|
||
|
|
BãßBȍőnName注 anno = boon.getClass().getAnnotation(BãßBȍőnName注.class);
|
||
|
|
boon.GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_BEAN_NAME, anno!=null?anno.name():boon.getClass().getSimpleName());
|
||
|
|
boon.GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_BEAN_PURPOSE, anno!=null?anno.purpose():DEFAULT_BEAN_PURPOSE);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
default String BãßClassNaam() {
|
||
|
|
return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_BEAN_NAME);
|
||
|
|
}
|
||
|
|
|
||
|
|
default String BãßClassPurpose() {
|
||
|
|
return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_BEAN_PURPOSE);
|
||
|
|
}
|
||
|
|
}
|