Package org.openntf.domino.xots.annotations

Examples of org.openntf.domino.xots.annotations.Persistent


  public void loaderCallback(final LoaderRunnable runner) {
    NSFComponentModule referenceMod = runner.getModule();

    Set<Class<?>> classes = runner.getClasses();
    for (Class<?> clazz : classes) {
      Persistent persistent = clazz.getAnnotation(Persistent.class);
      Persistent.Context ctx = persistent.appContext();
      Persistent.Scope scope = persistent.scope();
      // TODO de-dupe based on replica ID to handle faux text ".nsf" redirection files
      if (scope == Persistent.Scope.APPLICATION) {
        if (ctx == Persistent.Context.XSPFORCED) {
          try {
            NSFComponentModule forcedMod = getNsfService().loadModule(referenceMod.getDatabasePath());
View Full Code Here


      sb.append(e.getKey().getDatabasePath());
      sb.append('\n');
      for (Class<?> cls : e.getValue()) {
        sb.append('\t');
        sb.append(cls.getName());
        Persistent persistent = cls.getAnnotation(Persistent.class);
        if (persistent != null) {
          sb.append(", Scope:");
          sb.append(persistent.scope());
          sb.append(", AppContext:");
          sb.append(persistent.appContext());
        }
        Schedule schedule = cls.getAnnotation(Schedule.class);
        if (schedule != null) {
          sb.append(", Freq:");
          sb.append(schedule.frequency());
View Full Code Here

TOP

Related Classes of org.openntf.domino.xots.annotations.Persistent

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.