java.lang.StringBuilder Java Examples

The following examples show how to use java.lang.StringBuilder. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ControllerC07CreatorImpl.java    From nalu with Apache License 2.0 6 votes vote down vote up
@Override
public void onFinishCreating(Object object) throws RoutingInterceptionException {
  ControllerC07 controller = (ControllerC07) object;
  StringBuilder sb01 = new StringBuilder();
  IComponent07 component = new Component07();
  sb01.setLength(0);
  sb01.append("component >>com.github.nalukit.nalu.processor.controllerCreator.controllerCreatorOkWithTwoParameter04.Component07<< --> created using new");
  ClientLogger.get().logDetailed(sb01.toString(), 4);
  component.setController(controller);
  sb01.setLength(0);
  sb01.append("component >>").append(component.getClass().getCanonicalName()).append("<< --> created and controller instance injected");
  ClientLogger.get().logDetailed(sb01.toString(), 4);
  controller.setComponent(component);
  sb01.setLength(0);
  sb01.append("controller >>").append(controller.getClass().getCanonicalName()).append("<< --> instance of >>").append(component.getClass().getCanonicalName()).append("<< injected");
  ClientLogger.get().logDetailed(sb01.toString(), 4);
  component.render();
  sb01.setLength(0);
  sb01.append("component >>").append(component.getClass().getCanonicalName()).append("<< --> rendered");
  ClientLogger.get().logDetailed(sb01.toString(), 4);
  component.bind();
  sb01.setLength(0);
  sb01.append("component >>").append(component.getClass().getCanonicalName()).append("<< --> bound");
  ClientLogger.get().logDetailed(sb01.toString(), 4);
  ClientLogger.get().logSimple("controller >>com.github.nalukit.nalu.processor.controllerCreator.controllerCreatorOkWithTwoParameter04.Component07<< created for route >>/mockShell/route01/*/*<<", 3);
}
 
Example #2
Source File: generateDataset.java    From ecosys with Apache License 2.0 6 votes vote down vote up
public void batchPost(String target_host, String rest_endpoint, StringBuilder payload) {
  // String requestUrl = "http://" + host + ":9000/dumpfile?filename=/tmp/data.csv";
  String requestUrl = target_host + "/ddl?sep=,&tag=" + rest_endpoint + "&eol=%0A";
  String response = sendPostRequest(requestUrl, payload.toString());
  JSONObject res_json;
  try {
    res_json = new JSONObject(response);
    if (res_json.has("error") && res_json.optBoolean("error", true) == true) {
      logWarning("Response has error: " + response);
    } else {
      logInfo("Response: " + response);
    }
  } catch (JSONException e) {
     e.printStackTrace();
  }
  payload.setLength(0);
}
 
Example #3
Source File: Utilities.java    From algorithms with MIT License 6 votes vote down vote up
public static String toString(int[][] a) {
    if (a == null) return "[[]]";
    StringBuilder b = new StringBuilder();

    b.append("\n[\n");
    for (int i = 0; i < a.length; i ++) {
        b.append("\t[");
        for (int j = 0; j < a[i].length; j ++) {
            b.append(a[i][j]);
            if (j < a[i].length - 1) b.append(", ");
        }
        b.append("]\n");
    }
    b.append("]");

    return b.toString();
}
 
Example #4
Source File: CqlCount.java    From cassandra-count with Apache License 2.0 6 votes vote down vote up
private PreparedStatement prepareStatement() {
List<ColumnMetadata> partkeys = cluster.getMetadata().getKeyspace(keyspaceName).getTable(tableName).getPartitionKey();
StringBuilder sb = new StringBuilder();
sb.append("SELECT COUNT(*) FROM ");
sb.append(keyspaceName).append(".").append(tableName);
sb.append(" WHERE Token(");
sb.append(partkeys.get(0).getName());
for (int i = 1; i < partkeys.size(); i++)
    sb.append(", ").append(partkeys.get(i).getName());
sb.append(") > ? AND Token(");
sb.append(partkeys.get(0).getName());
for (int i = 1; i < partkeys.size(); i++)
    sb.append(",").append(partkeys.get(i).getName());
sb.append(") <= ?");

debugPrint("Query: " + sb.toString(), true, 2);

return session.prepare(sb.toString()).setConsistencyLevel(consistencyLevel);
   }
 
Example #5
Source File: ApplicationAnnotationOkWithoutLoaderImpl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void loadDefaultRoutes() {
  StringBuilder sb01 = new StringBuilder();
  this.startRoute = "/mockShell/route01";
  sb01.append("found startRoute >>/mockShell/route01<<");
  ClientLogger.get().logDetailed(sb01.toString(), 2);
  sb01.setLength(0);
  ClientLogger.get().logDetailed(sb01.toString(), 2);
}
 
Example #6
Source File: ControllerWithComposite01CreatorImpl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public ControllerInstance create() {
  StringBuilder sb01 = new StringBuilder();
  ControllerInstance controllerInstance = new ControllerInstance();
  controllerInstance.setControllerClassName("com.github.nalukit.nalu.processor.common.ui.controllerWithComposite01.ControllerWithComposite01");
  AbstractComponentController<?, ?, ?> storedController = ControllerFactory.get().getControllerFormStore("com.github.nalukit.nalu.processor.common.ui.controllerWithComposite01.ControllerWithComposite01");
  if (storedController == null) {
    sb01.append("controller >>com.github.nalukit.nalu.processor.common.ui.controllerWithComposite01.ControllerWithComposite01<< --> will be created");
    ClientLogger.get().logSimple(sb01.toString(), 3);
    ControllerWithComposite01 controller = new ControllerWithComposite01();
    controllerInstance.setController(controller);
    controllerInstance.setCached(false);
    controller.setContext(context);
    controller.setEventBus(eventBus);
    controller.setRouter(router);
    controller.setCached(false);
    controller.setRelatedRoute("/mockShell/route01/*");
    controller.setRelatedSelector("selector01");
    sb01.setLength(0);
    sb01.append("controller >>").append(controller.getClass().getCanonicalName()).append("<< --> created and data injected");
    ClientLogger.get().logDetailed(sb01.toString(), 4);
  } else {
    sb01.append("controller >>").append(storedController.getClass().getCanonicalName()).append("<< --> found in cache -> REUSE!");
    ClientLogger.get().logDetailed(sb01.toString(), 4);
    controllerInstance.setController(storedController);
    controllerInstance.setCached(true);
    controllerInstance.getController().setCached(true);
  }
  return controllerInstance;
}
 
Example #7
Source File: ApplicationWithComposite03Impl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void loadShells() {
  StringBuilder sb01 = new StringBuilder();
  sb01.append("load shell references");
  ClientLogger.get().logDetailed(sb01.toString(), 2);
  super.shellConfiguration.getShells().add(new ShellConfig("/mockShell", "com.github.nalukit.nalu.processor.common.MockShell"));
  sb01.setLength(0);
  sb01.append("register shell >>/mockShell<< with class >>com.github.nalukit.nalu.processor.common.MockShell<<");
  ClientLogger.get().logDetailed(sb01.toString(), 3);
}
 
Example #8
Source File: ControllerWithComposite02CreatorImpl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void setParameter(Object object, String... params) throws RoutingInterceptionException {
  ControllerWithComposite02 controller = (ControllerWithComposite02) object;
  StringBuilder sb01 = new StringBuilder();
  if (params != null) {
    if (params.length >= 1) {
      sb01.setLength(0);
      sb01.append("controller >>").append(controller.getClass().getCanonicalName()).append("<< --> using method >>setParameter02<< to set value >>").append(params[0]).append("<<");
      ClientLogger.get().logDetailed(sb01.toString(), 4);
      controller.setParameter02(params[0]);
    }
  }
}
 
Example #9
Source File: ErrorPopUpAnnotationOkImpl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void logProcessorVersion() {
  ClientLogger.get().logDetailed("", 0);
  ClientLogger.get().logDetailed("=================================================================================", 0);
  StringBuilder sb01 = new StringBuilder();
  sb01.append("Nalu processor version  >>2.0.1<< used to generate this source");
  ClientLogger.get().logDetailed(sb01.toString(), 0);
  ClientLogger.get().logDetailed("=================================================================================", 0);
  ClientLogger.get().logDetailed("", 0);
}
 
Example #10
Source File: ApplicationAnnotationOkWithoutLoaderImpl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void logProcessorVersion() {
  ClientLogger.get().logDetailed("", 0);
  ClientLogger.get().logDetailed("=================================================================================", 0);
  StringBuilder sb01 = new StringBuilder();
  sb01.append("Nalu processor version  >>2.0.1<< used to generate this source");
  ClientLogger.get().logDetailed(sb01.toString(), 0);
  ClientLogger.get().logDetailed("=================================================================================", 0);
  ClientLogger.get().logDetailed("", 0);
}
 
Example #11
Source File: ApplicationWithComposite06Impl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void logProcessorVersion() {
  ClientLogger.get().logDetailed("", 0);
  ClientLogger.get().logDetailed("=================================================================================", 0);
  StringBuilder sb01 = new StringBuilder();
  sb01.append("Nalu processor version  >>2.0.1<< used to generate this source");
  ClientLogger.get().logDetailed(sb01.toString(), 0);
  ClientLogger.get().logDetailed("=================================================================================", 0);
  ClientLogger.get().logDetailed("", 0);
}
 
Example #12
Source File: ApplicationWithComposite08Impl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void loadShells() {
  StringBuilder sb01 = new StringBuilder();
  sb01.append("load shell references");
  ClientLogger.get().logDetailed(sb01.toString(), 2);
  super.shellConfiguration.getShells().add(new ShellConfig("/mockShell", "com.github.nalukit.nalu.processor.common.MockShell"));
  sb01.setLength(0);
  sb01.append("register shell >>/mockShell<< with class >>com.github.nalukit.nalu.processor.common.MockShell<<");
  ClientLogger.get().logDetailed(sb01.toString(), 3);
}
 
Example #13
Source File: ApplicationWithTrackerImpl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void loadShells() {
  StringBuilder sb01 = new StringBuilder();
  sb01.append("load shell references");
  ClientLogger.get().logDetailed(sb01.toString(), 2);
  super.shellConfiguration.getShells().add(new ShellConfig("/mockShell", "com.github.nalukit.nalu.processor.common.MockShell"));
  sb01.setLength(0);
  sb01.append("register shell >>/mockShell<< with class >>com.github.nalukit.nalu.processor.common.MockShell<<");
  ClientLogger.get().logDetailed(sb01.toString(), 3);
}
 
Example #14
Source File: MovieEntity.java    From SVGAPlayer-Android with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
  StringBuilder builder = new StringBuilder();
  if (version != null) builder.append(", version=").append(version);
  if (params != null) builder.append(", params=").append(params);
  if (!images.isEmpty()) builder.append(", images=").append(images);
  if (!sprites.isEmpty()) builder.append(", sprites=").append(sprites);
  if (!audios.isEmpty()) builder.append(", audios=").append(audios);
  return builder.replace(0, 2, "MovieEntity{").append('}').toString();
}
 
Example #15
Source File: ErrorPopUpAnnotationOkImpl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void loadRoutes() {
  StringBuilder sb01 = new StringBuilder();
  sb01.append("load routes");
  ClientLogger.get().logDetailed(sb01.toString(), 2);
  super.routerConfiguration.getRouters().add(new RouteConfig("/mockShell/route01/*", Arrays.asList(new String[]{"parameter01"}), "selector01", "com.github.nalukit.nalu.processor.common.ui.component01.Controller01"));
  sb01.setLength(0);
  sb01.append("register route >>/mockShell/route01/*<< with parameter >>parameter01<< for selector >>selector01<< for controller >>com.github.nalukit.nalu.processor.common.ui.component01.Controller01<<");
  ClientLogger.get().logDetailed(sb01.toString(), 3);
}
 
Example #16
Source File: StartRouteOKImpl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void loadDefaultRoutes() {
  StringBuilder sb01 = new StringBuilder();
  this.startRoute = "/mockShell/route01";
  sb01.append("found startRoute >>/mockShell/route01<<");
  ClientLogger.get().logDetailed(sb01.toString(), 2);
  sb01.setLength(0);
  ClientLogger.get().logDetailed(sb01.toString(), 2);
}
 
Example #17
Source File: ApplicationWithComposite01Impl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void loadDefaultRoutes() {
  StringBuilder sb01 = new StringBuilder();
  this.startRoute = "/mockShell/route01";
  sb01.append("found startRoute >>/mockShell/route01<<");
  ClientLogger.get().logDetailed(sb01.toString(), 2);
  sb01.setLength(0);
  ClientLogger.get().logDetailed(sb01.toString(), 2);
}
 
Example #18
Source File: ApplicationWithComposite04Impl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void loadCompositeReferences() {
  StringBuilder sb01 = new StringBuilder();
  sb01.append("load composite references");
  ClientLogger.get().logDetailed(sb01.toString(), 2);
  this.compositeControllerReferences.add(new CompositeControllerReference("com.github.nalukit.nalu.processor.common.ui.controllerWithComposite04.ControllerWithComposite04", "testComposite03", "com.github.nalukit.nalu.processor.common.ui.controllerWithComposite04.composite.CompositeController03", "selector", false));
  sb01.setLength(0);
  sb01.append("register composite >>testComposite03<< for controller >>com.github.nalukit.nalu.processor.common.ui.controllerWithComposite04.ControllerWithComposite04<< in selector >>selector<<");
  ClientLogger.get().logDetailed(sb01.toString(), 3);
  this.compositeControllerReferences.add(new CompositeControllerReference("com.github.nalukit.nalu.processor.common.ui.controllerWithComposite04.ControllerWithComposite04", "testComposite04", "com.github.nalukit.nalu.processor.common.ui.controllerWithComposite04.composite.CompositeController04", "selector", false));
  sb01.setLength(0);
  sb01.append("register composite >>testComposite04<< for controller >>com.github.nalukit.nalu.processor.common.ui.controllerWithComposite04.ControllerWithComposite04<< in selector >>selector<<");
  ClientLogger.get().logDetailed(sb01.toString(), 3);
}
 
Example #19
Source File: ApplicationWithComposite08Impl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void loadCompositeReferences() {
  StringBuilder sb01 = new StringBuilder();
  sb01.append("load composite references");
  ClientLogger.get().logDetailed(sb01.toString(), 2);
  this.compositeControllerReferences.add(new CompositeControllerReference("com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.ControllerWithComposite05", "testComposite01", "com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.composite.CompositeController03", "selector", false));
  sb01.setLength(0);
  sb01.append("register composite >>testComposite01<< for controller >>com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.ControllerWithComposite05<< in selector >>selector<<");
  ClientLogger.get().logDetailed(sb01.toString(), 3);
  this.compositeControllerReferences.add(new CompositeControllerReference("com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.ControllerWithComposite05", "testComposite02", "com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.composite.CompositeController04", "selector", false));
  sb01.setLength(0);
  sb01.append("register composite >>testComposite02<< for controller >>com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.ControllerWithComposite05<< in selector >>selector<<");
  ClientLogger.get().logDetailed(sb01.toString(), 3);
  this.compositeControllerReferences.add(new CompositeControllerReference("com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.ControllerWithComposite05", "testComposite03", "com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.composite.CompositeController05", "selector", false));
  sb01.setLength(0);
  sb01.append("register composite >>testComposite03<< for controller >>com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.ControllerWithComposite05<< in selector >>selector<<");
  ClientLogger.get().logDetailed(sb01.toString(), 3);
  this.compositeControllerReferences.add(new CompositeControllerReference("com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.ControllerWithComposite06", "testComposite01", "com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.composite.CompositeController03", "selector", false));
  sb01.setLength(0);
  sb01.append("register composite >>testComposite01<< for controller >>com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.ControllerWithComposite06<< in selector >>selector<<");
  ClientLogger.get().logDetailed(sb01.toString(), 3);
  this.compositeControllerReferences.add(new CompositeControllerReference("com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.ControllerWithComposite06", "testComposite02", "com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.composite.CompositeController04", "selector", false));
  sb01.setLength(0);
  sb01.append("register composite >>testComposite02<< for controller >>com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.ControllerWithComposite06<< in selector >>selector<<");
  ClientLogger.get().logDetailed(sb01.toString(), 3);
  this.compositeControllerReferences.add(new CompositeControllerReference("com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.ControllerWithComposite06", "testComposite03", "com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.composite.CompositeController03", "selector", false));
  sb01.setLength(0);
  sb01.append("register composite >>testComposite03<< for controller >>com.github.nalukit.nalu.processor.common.ui.controllerWithComposite07.ControllerWithComposite06<< in selector >>selector<<");
  ClientLogger.get().logDetailed(sb01.toString(), 3);
}
 
Example #20
Source File: ApplicationWithComposite01Impl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void loadRoutes() {
  StringBuilder sb01 = new StringBuilder();
  sb01.append("load routes");
  ClientLogger.get().logDetailed(sb01.toString(), 2);
  super.routerConfiguration.getRouters().add(new RouteConfig("/mockShell/route01/*", Arrays.asList(new String[]{"parameter01"}), "selector01", "com.github.nalukit.nalu.processor.common.ui.controllerWithComposite01.ControllerWithComposite01"));
  sb01.setLength(0);
  sb01.append("register route >>/mockShell/route01/*<< with parameter >>parameter01<< for selector >>selector01<< for controller >>com.github.nalukit.nalu.processor.common.ui.controllerWithComposite01.ControllerWithComposite01<<");
  ClientLogger.get().logDetailed(sb01.toString(), 3);
}
 
Example #21
Source File: FrameEntity.java    From SVGAPlayer-Android with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
  StringBuilder builder = new StringBuilder();
  if (alpha != null) builder.append(", alpha=").append(alpha);
  if (layout != null) builder.append(", layout=").append(layout);
  if (transform != null) builder.append(", transform=").append(transform);
  if (clipPath != null) builder.append(", clipPath=").append(clipPath);
  if (!shapes.isEmpty()) builder.append(", shapes=").append(shapes);
  return builder.replace(0, 2, "FrameEntity{").append('}').toString();
}
 
Example #22
Source File: ErrorPopUpAnnotationOkImpl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void loadErrorPopUpController() {
  StringBuilder sb01 = new StringBuilder();
  sb01.append("ErrorPopUpController found!");
  sb01.append("create ErrorPopUpController >>com.github.nalukit.nalu.processor.common.ui.errorPopUp01.ErrorEventController01<<");
  ErrorEventController01 errorPopUpController = new ErrorEventController01();
  errorPopUpController.setContext(context);
  errorPopUpController.setEventBus(eventBus);
  errorPopUpController.setRouter(router);
  sb01.setLength(0);
  sb01.append("controller >>").append(errorPopUpController.getClass().getCanonicalName()).append("<< --> created and data injected");
  ClientLogger.get().logDetailed(sb01.toString(), 4);
  IErrorEventComponent01 component = new ErrorEventComponent01();
  sb01.setLength(0);
  sb01.append("component >>com.github.nalukit.nalu.processor.common.ui.errorPopUp01.ErrorEventComponent01<< --> created using new");
  ClientLogger.get().logDetailed(sb01.toString(), 4);
  component.setController(errorPopUpController);
  sb01.setLength(0);
  sb01.append("component >>").append(component.getClass().getCanonicalName()).append("<< --> created and controller instance injected");
  ClientLogger.get().logDetailed(sb01.toString(), 4);
  errorPopUpController.setComponent(component);
  sb01.setLength(0);
  sb01.append("controller >>").append(errorPopUpController.getClass().getCanonicalName()).append("<< --> instance of >>").append(component.getClass().getCanonicalName()).append("<< injected");
  ClientLogger.get().logDetailed(sb01.toString(), 4);
  component.render();
  sb01.setLength(0);
  sb01.append("component >>").append(component.getClass().getCanonicalName()).append("<< --> rendered");
  ClientLogger.get().logDetailed(sb01.toString(), 4);
  component.bind();
  sb01.setLength(0);
  sb01.append("component >>").append(component.getClass().getCanonicalName()).append("<< --> bound");
  ClientLogger.get().logDetailed(sb01.toString(), 4);
  ClientLogger.get().logSimple("controller >>com.github.nalukit.nalu.processor.common.ui.errorPopUp01.ErrorEventController01<< created", 3);
  errorPopUpController.onLoad();
}
 
Example #23
Source File: EfficientEquals.java    From dataenum with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
  StringBuilder builder = new StringBuilder();
  builder.append("Value{param1=").append(this.param1);
  builder.append(", param2=").append(this.param2);
  builder.append(", param3=").append(this.param3);
  builder.append(", param4=").append(this.param4);
  return builder.append('}').toString();
}
 
Example #24
Source File: PrimitiveValue.java    From dataenum with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
  StringBuilder builder = new StringBuilder();
  builder.append("Value{param1=").append(this.param1);
  builder.append(", param2=").append(this.param2);
  builder.append(", param3=").append(this.param3);
  builder.append(", param4=").append(this.param4);
  return builder.append('}').toString();
}
 
Example #25
Source File: GenerateWithoutIsComponentCreatorImpl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void loadShells() {
  StringBuilder sb01 = new StringBuilder();
  sb01.append("load shell references");
  ClientLogger.get().logDetailed(sb01.toString(), 2);
  super.shellConfiguration.getShells().add(new ShellConfig("/mockShell", "com.github.nalukit.nalu.processor.common.MockShell"));
  sb01.setLength(0);
  sb01.append("register shell >>/mockShell<< with class >>com.github.nalukit.nalu.processor.common.MockShell<<");
  ClientLogger.get().logDetailed(sb01.toString(), 3);
}
 
Example #26
Source File: ApplicationWithComposite05Impl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void loadDefaultRoutes() {
  StringBuilder sb01 = new StringBuilder();
  this.startRoute = "/mockShell/route05";
  sb01.append("found startRoute >>/mockShell/route05<<");
  ClientLogger.get().logDetailed(sb01.toString(), 2);
  sb01.setLength(0);
  ClientLogger.get().logDetailed(sb01.toString(), 2);
}
 
Example #27
Source File: GenerateWithIsComponentCreatorImpl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void loadDefaultRoutes() {
  StringBuilder sb01 = new StringBuilder();
  this.startRoute = "/mockShell/route01";
  sb01.append("found startRoute >>/mockShell/route01<<");
  ClientLogger.get().logDetailed(sb01.toString(), 2);
  sb01.setLength(0);
  ClientLogger.get().logDetailed(sb01.toString(), 2);
}
 
Example #28
Source File: ControllerWithComposite01CreatorImpl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void setParameter(Object object, String... params) throws RoutingInterceptionException {
  ControllerWithComposite01 controller = (ControllerWithComposite01) object;
  StringBuilder sb01 = new StringBuilder();
  if (params != null) {
    if (params.length >= 1) {
      sb01.setLength(0);
      sb01.append("controller >>").append(controller.getClass().getCanonicalName()).append("<< --> using method >>setParameter01<< to set value >>").append(params[0]).append("<<");
      ClientLogger.get().logDetailed(sb01.toString(), 4);
      controller.setParameter01(params[0]);
    }
  }
}
 
Example #29
Source File: ErrorPopUpAnnotationOkImpl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void loadDefaultRoutes() {
  StringBuilder sb01 = new StringBuilder();
  this.startRoute = "/mockShell/route01";
  sb01.append("found startRoute >>/mockShell/route01<<");
  ClientLogger.get().logDetailed(sb01.toString(), 2);
  sb01.setLength(0);
  ClientLogger.get().logDetailed(sb01.toString(), 2);
}
 
Example #30
Source File: GenerateWithIsComponentCreatorImpl.java    From nalu with Apache License 2.0 5 votes vote down vote up
@Override
public void logProcessorVersion() {
  ClientLogger.get().logDetailed("", 0);
  ClientLogger.get().logDetailed("=================================================================================", 0);
  StringBuilder sb01 = new StringBuilder();
  sb01.append("Nalu processor version  >>2.0.1<< used to generate this source");
  ClientLogger.get().logDetailed(sb01.toString(), 0);
  ClientLogger.get().logDetailed("=================================================================================", 0);
  ClientLogger.get().logDetailed("", 0);
}