@Init public void init() { System.setProperty(LOGGING_PROVIDER_KEY, "slf4j"); } }
@Init public void init() { System.setProperty(LOGGING_PROVIDER_KEY, "slf4j"); } }
@Init public void init() throws NoSuchMethodException { method = SecureClassLoader.class.getDeclaredMethod("defineClass", String.class, byte[].class, Integer.TYPE, Integer.TYPE, CodeSource.class); method.setAccessible(true); }
@Init public void init() throws IOException { if (tempDir.exists()) { FileHelper.deleteDirectory(tempDir); } tempDir.mkdirs(); }
@Init public void orderProviders() { if (strategy != null) { strategy.order(providers); } }
@Init public void init() { MultiParentClassLoader jndiClassLoader = (MultiParentClassLoader) registry.getClassLoader(URI.create("f3-jndi")); if (jndiClassLoader == null) { return; } MultiParentClassLoader extensionClassLoader = (MultiParentClassLoader) getClass().getClassLoader(); extensionClassLoader.getParents().forEach(jndiClassLoader::addParent); } }
@Init public void init() throws IOException { destinations = new AtomicReference<>(); destinations.set(new MonitorDestination[0]); eventService.subscribe(RuntimeDestroyed.class, new MonitorEventListener()); }
@Init public void init() { messagePump = new MessagePump(); executorService.execute(messagePump); executorRegistry.register(DeploymentCommand.class, this); }
@Init public void init() { // introspect the interface once contract = contractProcessor.introspect(ExecutorService.class, new DefaultIntrospectionContext()); }
@Init public void init() { // register under both namespaces registry.registerLoader(F3_TYPE, this); registry.registerLoader(SCA_TYPE, this); }
@Init public void init() throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException { initializeKeyStore(); initializeTrustStore(); }
@Init public void init() { // register under both namespaces registry.registerLoader(F3_TYPE, this); registry.registerLoader(SCA_TYPE, this); }
@Init public void init() { // introspect the interface once contract = contractProcessor.introspect(DataSource.class, new DefaultIntrospectionContext()); }
@Init public void init() { // introspect the interface once contract = contractProcessor.introspect(DataSource.class, new DefaultIntrospectionContext()); }
@Init public void init() { // register under both namespaces registry.registerLoader(F3_TYPE, this); registry.registerLoader(SCA_TYPE, this); }
@SuppressWarnings({"unchecked"}) @Init public void init() { eventService.subscribe(ExtensionsInitialized.class, this); // Register to be notified when the runtime starts to perform the following: // 1. Contributions installed to deployment directories when the runtime is offline are deployed to the domain // 2. The scanner thread is initialized eventService.subscribe(RuntimeStart.class, this); }
@Init public void init() { if (bytecodeGeneration) { BytecodeMonitorProxyService byteCodeDelegate = new BytecodeMonitorProxyService(router, monitorable); byteCodeDelegate.setEnabled(enabled); delegate = byteCodeDelegate; } else { JDKRingBufferMonitorProxyService jdkDelegate = new JDKRingBufferMonitorProxyService(router, monitorable); jdkDelegate.setEnabled(enabled); delegate = jdkDelegate; } }
@Init public void init() { // Windows requires the ZMQ library to be loaded as the JZMQ library is linked to it and Windows is unable to resolve it relative to the JZMQ library // System.loadLibrary("zmq"); ZMQLibraryInitializer.loadLibrary(hostInfo); context = ZMQ.context(1); controlSocket = context.socket(ZMQ.PUB); controlSocket.bind("inproc://fabric3"); }
@Init public void start() throws WSDLException { WSDLFactory factory = WSDLFactory.newInstance(); reader = factory.newWSDLReader(); ExtensionRegistry extensionRegistry = factory.newPopulatedExtensionRegistry(); for (Class<? extends ExtensibilityElement> type : extensionHandlers.keySet()) { ExtensionHandler<?> extensionHandler = extensionHandlers.get(type); extensionRegistry.registerSerializer(Definition.class, extensionHandler.getQualifiedName(), extensionHandler); extensionRegistry.registerDeserializer(Definition.class, extensionHandler.getQualifiedName(), extensionHandler); } reader.setExtensionRegistry(extensionRegistry); }
@Init public void init() throws FileNotFoundException { if (!enabled) { return; } WaitStrategy waitStrategy = createWaitStrategy(); MonitorEventEntryFactory factory = new MonitorEventEntryFactory(capacity); disruptor = new Disruptor<MonitorEventEntry>(factory, ringSize, executorService, ProducerType.MULTI, waitStrategy); MonitorEventHandler handler = new MonitorEventHandler(registry); disruptor.handleEventsWith(handler); disruptor.start(); }