2022-02-06 17:19:05 +01:00
|
|
|
package love.distributedrebirth.bassboonyd.jmx;
|
|
|
|
|
|
|
|
|
|
import java.lang.management.ManagementFactory;
|
|
|
|
|
|
|
|
|
|
import javax.management.MBeanServer;
|
|
|
|
|
import javax.management.ObjectName;
|
|
|
|
|
|
|
|
|
|
import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreKeyʸᴰ;
|
|
|
|
|
import love.distributedrebirth.bassboonyd.BãßBȍőnConstantsʸᴰ;
|
2022-10-14 01:35:53 +02:00
|
|
|
import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕ;
|
|
|
|
|
import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ;
|
2022-10-15 02:34:58 +02:00
|
|
|
import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInit注;
|
2022-02-06 17:19:05 +01:00
|
|
|
import love.distributedrebirth.bassboonyd.DefaultEnumSetʸᴰ;
|
2022-10-15 02:34:58 +02:00
|
|
|
import love.distributedrebirth.bassboonyd.info.BãßBȍőnAnnotation注;
|
|
|
|
|
import love.distributedrebirth.bassboonyd.info.BãßBȍőnAuthor注;
|
|
|
|
|
import love.distributedrebirth.bassboonyd.info.BãßBȍőnName注;
|
2022-02-06 17:19:05 +01:00
|
|
|
|
2022-10-15 02:34:58 +02:00
|
|
|
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
|
|
|
|
@BãßBȍőnAnnotation注(required = {BãßBȍőnName注.class, BãßBȍőnAuthor注.class})
|
2022-10-14 01:35:53 +02:00
|
|
|
public interface DefaultEnumSetᴶᴹˣ<T,K extends BãßBȍőnCoffinStoreKeyʸᴰ> extends DefaultEnumBaseᴶᴹˣ<T,K>,DefaultEnumSetʸᴰ<T,K> {
|
2022-02-06 17:19:05 +01:00
|
|
|
|
2022-10-14 01:35:53 +02:00
|
|
|
public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ {
|
|
|
|
|
|
2022-10-15 02:34:58 +02:00
|
|
|
@BãßBȍőnꝐŕḯṿª₮ḕInit注(phase = BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ.BOON_PRE_SERVICE)
|
|
|
|
|
private static void init(DefaultEnumBaseᴶᴹˣ<?,?> boon) {
|
2022-10-14 01:35:53 +02:00
|
|
|
try {
|
|
|
|
|
StringBuilder name = new StringBuilder();
|
|
|
|
|
name.append(boon.BãßPackageNaam());
|
|
|
|
|
name.append(BãßBȍőnConstantsʸᴰ.STR_COLON);
|
|
|
|
|
name.append(BãßBȍőnConstantsʸᴰ.STR_TYPE);
|
|
|
|
|
name.append(BãßBȍőnConstantsʸᴰ.STR_IS);
|
|
|
|
|
name.append(boon.BãßClassNaam());
|
|
|
|
|
name.append(BãßBȍőnConstantsʸᴰ.STR_COMMA);
|
|
|
|
|
name.append(BãßBȍőnConstantsʸᴰ.STR_NAME);
|
|
|
|
|
name.append(BãßBȍőnConstantsʸᴰ.STR_IS);
|
|
|
|
|
name.append(boon.BȍőnNaam());
|
|
|
|
|
|
|
|
|
|
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
|
|
|
|
|
ObjectName objectName1 = new ObjectName(name.toString());
|
2022-10-15 02:34:58 +02:00
|
|
|
server.registerMBean(new MBeanDynamicᴶᴹˣ(boon.BãßClassPurpose(), DefaultEnumBaseᴶᴹˣ.GHOST_MAP(boon.GET_BBC())), objectName1);
|
2022-10-14 01:35:53 +02:00
|
|
|
} catch (Exception e) {
|
|
|
|
|
throw new RuntimeException(e);
|
|
|
|
|
}
|
2022-02-06 17:19:05 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|