Package eu.mosaic_cloud.components.core

Examples of eu.mosaic_cloud.components.core.ComponentCallbacksProvider


      throws Throwable
  {
    Preconditions.checkNotNull (environment);
    Preconditions.checkNotNull (arguments);
    BasicComponentHarnessMain.prepareLogger (environment, arguments);
    final ComponentCallbacksProvider callbacksProvider = BasicComponentHarnessMain.prepareCallbacks (environment, arguments);
    final BasicChannel channel = BasicComponentHarnessMain.prepareChannel (environment, arguments);
    final BasicComponent component = BasicComponentHarnessMain.prepareComponent (environment, arguments, channel, callbacksProvider);
    environment.transcript.traceInformation ("joining component...");
    component.await ();
    environment.transcript.traceInformation ("joined component.");
View Full Code Here


      Preconditions.checkNotNull (callbacksClassName, "missing callbacks class...");
      environment.transcript.traceDebugging ("resolving callbacks class `%s`...", callbacksClassName);
      callbacksClass = environment.classLoader.loadClass (callbacksClassName);
      Preconditions.checkArgument (ComponentCallbacks.class.isAssignableFrom (callbacksClass) ^ ComponentCallbacksProvider.class.isAssignableFrom (callbacksClass), "invalid callbacks class `%s` (not an instance of `ComponentCallbacks` or `ComponentCallbacksProvider`)", callbacksClass.getName ());
    }
    final ComponentCallbacksProvider callbacksProvider;
    if (ComponentCallbacks.class.isAssignableFrom (callbacksClass))
      callbacksProvider = new Provider (callbacksClass);
    else
      try {
        callbacksProvider = (ComponentCallbacksProvider) callbacksClass.newInstance ();
View Full Code Here

TOP

Related Classes of eu.mosaic_cloud.components.core.ComponentCallbacksProvider

Copyright © 2018 www.massapicom. 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.