@Test public void testCreateJsr160Component() throws Exception { final BootstrapProperties p = new BootstrapProperties(); final int port = PortManager.nextUnusedPort(5555); try { p.setProperty(Constants.CFG_KEY_MANAGEMENT_COMPONENT, "jmx"); p.setProperty(Constants.CFG_KEY_JMX_SERVICE_URL_KEY, "service:jmx:jmxmp: final List<ManagementComponentInfo> list = ManagementComponentFactory.create(p); assertEquals(1, list.size()); testLifecycle(list, p, false); } finally { PortManager.release(port); } }
public static List<ManagementComponentInfo> create(final BootstrapProperties p) throws Exception { if (!INSTANCE.getManagementComponents().containsKey(p)) { List<ManagementComponentInfo> manCompInfo = INSTANCE.createComponents(p); INSTANCE.getManagementComponents().put(p,manCompInfo ); } return INSTANCE.getManagementComponents().get(p); }
ManagementComponentFactory { public static List<ManagementComponentInfo> create(final BootstrapProperties p) throws Exception { if (!INSTANCE.getManagementComponents().containsKey(p)) { List<ManagementComponentInfo> manCompInfo = INSTANCE.createComponents(p); INSTANCE.getManagementComponents().put(p,manCompInfo ); } return INSTANCE.getManagementComponents().get(p); } }
ManagementComponentFactory { public static List<ManagementComponentInfo> create(final BootstrapProperties p) throws Exception { if (!INSTANCE.getManagementComponents().containsKey(p)) { List<ManagementComponentInfo> manCompInfo = INSTANCE.createComponents(p); INSTANCE.getManagementComponents().put(p,manCompInfo ); } return INSTANCE.getManagementComponents().get(p); } private  ManagementComponentFactory(); }
ManagementComponentFactory { public static List<ManagementComponentInfo> create(final BootstrapProperties p) throws Exception { if (!INSTANCE.getManagementComponents().containsKey(p)) { List<ManagementComponentInfo> manCompInfo = INSTANCE.createComponents(p); INSTANCE.getManagementComponents().put(p,manCompInfo ); } return INSTANCE.getManagementComponents().get(p); } private  ManagementComponentFactory(); static List<ManagementComponentInfo> create(final BootstrapProperties p); static void initCreated(BootstrapProperties bootstrapProperties); static void startCreated(BootstrapProperties bootstrapProperties); static void stopCreated(BootstrapProperties bootstrapProperties, boolean reverseOrder); static void closeCreated(BootstrapProperties bootstrapProperties, boolean reverseOrder); }
ManagementComponentFactory { public static List<ManagementComponentInfo> create(final BootstrapProperties p) throws Exception { if (!INSTANCE.getManagementComponents().containsKey(p)) { List<ManagementComponentInfo> manCompInfo = INSTANCE.createComponents(p); INSTANCE.getManagementComponents().put(p,manCompInfo ); } return INSTANCE.getManagementComponents().get(p); } private  ManagementComponentFactory(); static List<ManagementComponentInfo> create(final BootstrapProperties p); static void initCreated(BootstrapProperties bootstrapProperties); static void startCreated(BootstrapProperties bootstrapProperties); static void stopCreated(BootstrapProperties bootstrapProperties, boolean reverseOrder); static void closeCreated(BootstrapProperties bootstrapProperties, boolean reverseOrder);  }