40 lines
1.8 KiB
Java
40 lines
1.8 KiB
Java
package love.distributedrebirth.bassboonyd.jmx;
|
||
|
||
import java.lang.management.ManagementFactory;
|
||
|
||
import javax.management.MBeanServer;
|
||
import javax.management.ObjectName;
|
||
|
||
import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinNailʸᴰ;
|
||
import love.distributedrebirth.bassboonyd.BãßBȍőnConstantsʸᴰ;
|
||
import love.distributedrebirth.bassboonyd.BãßBȍőnPhaseBarrierʸᴰ;
|
||
import love.distributedrebirth.bassboonyd.DefaultEnumInstanceʸᴰ;
|
||
import love.distributedrebirth.bassboonyd.clazz.BãßBȍőnAuthor注;
|
||
import love.distributedrebirth.bassboonyd.sinit.BãßBȍőnꝐŕḯṿª₮ḕ;
|
||
import love.distributedrebirth.bassboonyd.sinit.BãßBȍőnꝐŕḯṿª₮ḕInit注;
|
||
|
||
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||
public interface DefaultEnumInstanceᴶᴹˣ<T,K extends BãßBȍőnCoffinNailʸᴰ> extends DefaultEnumBaseᴶᴹˣ<T,K>,DefaultEnumInstanceʸᴰ<T,K> {
|
||
|
||
public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ {
|
||
|
||
@BãßBȍőnꝐŕḯṿª₮ḕInit注(dependencies = {BãßBȍőnPhaseBarrierʸᴰ.βrahmanBoonMarriage.class})
|
||
private static void init(DefaultEnumBaseᴶᴹˣ<?,?> boon) {
|
||
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());
|
||
|
||
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
|
||
ObjectName objectName1 = new ObjectName(name.toString());
|
||
server.registerMBean(new MBeanDynamicᴶᴹˣ(boon.BãßClassPurpose(), DefaultEnumBaseᴶᴹˣ.jmxGhosts(boon.toBBC())), objectName1);
|
||
} catch (Exception e) {
|
||
throw new RuntimeException(e);
|
||
}
|
||
}
|
||
}
|
||
}
|