Examples of UidGenerator


Examples of net.fortuna.ical4j.util.UidGenerator

    meeting.getProperties().add(new Sequence(1));

    // generate unique identifier (if not submitted)
    Uid ui = null;
    if (uid == null || uid.length() < 1) {
      ui = new UidGenerator("uidGen").generateUid();
      log.debug("Generating Meeting UID : " + ui.getValue());
    } else {
      ui = new Uid(uid);
      log.debug("Using Meeting UID : " + ui.getValue());
    }
View Full Code Here

Examples of net.fortuna.ical4j.util.UidGenerator

    // add timezone info..
    meeting.getProperties().add(tz.getTimeZoneId());

    // generate unique identifier..
    UidGenerator ug;
    try {
      ug = new UidGenerator("uidGen");

      Uid uid = ug.generateUid();
      meeting.getProperties().add(uid);
    } catch (SocketException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
View Full Code Here

Examples of org.apache.uima.aae.UIDGenerator

  private AtomicBoolean stopping = new AtomicBoolean(false);

  public VmTransport(UimaAsContext aContext, AnalysisEngineController aController) {
    context = aContext;
    UIDGenerator idGenerator = new UIDGenerator();
    controller = aController;
    threadGroup = new ThreadGroup("VmThreadGroup" + idGenerator.nextId() + "_"
            + controller.getComponentName());
  }
View Full Code Here

Examples of org.apache.uima.aae.UIDGenerator

      if (ctx instanceof FileSystemXmlApplicationContext) {
        ((FileSystemXmlApplicationContext) ctx).destroy();
      }
      throw e;
    }
    String containerId = new UIDGenerator().nextId();
    if (springContainerRegistry != null) {
      // Register each container in a global map. When stopping the
      // client, each container in the map will be stopped.
      springContainerRegistry.put(containerId, springAdminContext);
    }
View Full Code Here

Examples of org.apache.uima.aae.UIDGenerator

      if (ctx instanceof FileSystemXmlApplicationContext) {
        ((FileSystemXmlApplicationContext) ctx).destroy();
      }
      throw e;
    }
    String containerId = new UIDGenerator().nextId();
    if (springContainerRegistry != null) {
      // Register each container in a global map. When stopping the
      // client, each container in the map will be stopped.
      springContainerRegistry.put(containerId, springAdminContext);
    }
View Full Code Here

Examples of org.apache.uima.aae.UIDGenerator

  private AtomicBoolean stopping = new AtomicBoolean(false);

  public VmTransport(UimaAsContext aContext, AnalysisEngineController aController) {
    context = aContext;
    UIDGenerator idGenerator = new UIDGenerator();
    controller = aController;
    threadGroup = new ThreadGroup("VmThreadGroup" + idGenerator.nextId() + "_"
            + controller.getComponentName());
  }
View Full Code Here

Examples of org.apache.uima.aae.UIDGenerator

      if (ctx instanceof FileSystemXmlApplicationContext) {
        ((FileSystemXmlApplicationContext) ctx).destroy();
      }
      throw e;
    }
    String containerId = new UIDGenerator().nextId();
    if (springContainerRegistry != null) {
      // Register each container in a global map. When stopping the
      // client, each container in the map will be stopped.
      springContainerRegistry.put(containerId, springAdminContext);
    }
View Full Code Here

Examples of org.apache.uima.aae.UIDGenerator

      if (ctx instanceof FileSystemXmlApplicationContext) {
        ((FileSystemXmlApplicationContext) ctx).destroy();
      }
      throw e;
    }
    String containerId = new UIDGenerator().nextId();
    if ( springContainerRegistry != null )
    {
      // Register each container in a global map. When stopping the
      // client, each container in the map will be stopped.
      synchronized (springContainerRegistry) {
View Full Code Here

Examples of org.apache.uima.aae.UIDGenerator

      if (ctx instanceof FileSystemXmlApplicationContext) {
        ((FileSystemXmlApplicationContext) ctx).destroy();
      }
      throw e;
    }
    String containerId = new UIDGenerator().nextId();
    if (springContainerRegistry != null) {
      // Register each container in a global map. When stopping the
      // client, each container in the map will be stopped.
      springContainerRegistry.put(containerId, springAdminContext);
    }
View Full Code Here

Examples of org.springside.examples.showcase.common.dao.UIDGenerator

public class UIDGeneratorTest {

  @Test
  public void generateId() {
    UIDGenerator generator = new UIDGenerator();
    String id = (String) generator.generate(null, null);
    assertTrue(id.length() == 16);
    System.out.println(id);
  }
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.