Examples of autoConfig()


Examples of ch.qos.logback.classic.util.ContextInitializer.autoConfig()

              StatusPrinter.print(loggerContext);
            }
          } else {
            try {
              ContextInitializer ctxInit = new ContextInitializer(loggerContext);
              ctxInit.autoConfig();
            } catch (JoranException je) {
              StatusPrinter.print(loggerContext);
            }
          }
          if (debug) {
View Full Code Here

Examples of org.apache.felix.dm.DependencyService.autoConfig()

            } else {
                if (m_debug) {
                    m_logger.log(Logger.LOG_DEBUG, "[" + m_debugKey + "] dependency added (was available): " + ref);
                }
                // First, inject the added service in autoconfig field, if any.
                ds.autoConfig(this);
               
                // At this point, either the dependency is optional (meaning that the service has been started,
                // because if not, then our dependency would not be active); or the dependency is required,
                // meaning that either the service is not yet started, or already started.
                // In all cases, we have to inject the required dependency.
View Full Code Here

Examples of org.apache.felix.dm.DependencyService.autoConfig()

        synchronized (this) {
            services = m_services.toArray();
        }
        for (int i = 0; i < services.length; i++) {
            DependencyService ds = (DependencyService) services[i];
            ds.autoConfig(this);
            if (ds.isInstantiated()) {
                if (invokeChanged(ds, ref, service)) {
                    // The "change" or "swap" callback has been invoked (if not it means that the modified service
                    // is for a lower ranked aspect to which we are not interested in).
                    // Now, propagate (if needed) changed properties to dependency service properties.
View Full Code Here

Examples of org.apache.felix.dm.DependencyService.autoConfig()

                    invokeRemoved(ds, ref, service);
                }
            } else {
                // Some dependencies are still available: first inject the remaining highest ranked dependency
                // in component class field, if the dependency is configured in autoconfig mode.
                ds.autoConfig(this);
                // Next, invoke "removed" callback. If the dependency is aspect aware, we only invoke removed cb
                // if the removed service is the highest ranked service. Note that if the cb is not called, we don't
                // propagate the remaining dependency properties.
                if (invokeRemoved(ds, ref, service)) {
                    // Finally, since we have lost one dependency, we have to possibly propagate the highest ranked
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.