Tabnine Logo
IdGenerator.generateSanitizedId
Code IndexAdd Tabnine to your IDE (free)

How to use
generateSanitizedId
method
in
org.apache.servicemix.id.IdGenerator

Best Java code snippets using org.apache.servicemix.id.IdGenerator.generateSanitizedId (Showing top 5 results out of 315)

origin: org.apache.servicemix/servicemix-camel

protected String createEndpointName() {
  if (idGenerator == null) {
    idGenerator = new IdGenerator("camel");
  }
  return idGenerator.generateSanitizedId();
}
origin: org.apache.servicemix/servicemix-cxf-se

  public void doWith(Field field) throws IllegalArgumentException, IllegalAccessException {
    if (field.getAnnotation(WebServiceRef.class) != null) {
      ServiceImpl s = new ServiceImpl(getBus(), null, null, field.getType());
      s.addPort(new QName("port"), JBITransportFactory.TRANSPORT_ID, "jbi://" + ID_GENERATOR.generateSanitizedId());
      Object o = s.getPort(new QName("port"), field.getType());
      field.setAccessible(true);
      field.set(getPojo(), o);
    }
  }
});
origin: org.apache.servicemix/servicemix-core

/**
 * Create a RemoteServiceMixClient
 * @param uri 
 * @param activationSpec 
 */
public RemoteServiceMixClient(String uri, ActivationSpec activationSpec) {
  container = new JBIContainer();
  container.setEmbedded(true);
  container.setUseMBeanServer(false);
  container.setName(new IdGenerator().generateSanitizedId());
  this.uri = uri;
  this.activationSpec = activationSpec;
}
origin: org.apache.servicemix/servicemix-cxf-se

cf.setAddress("jbi://" + new IdGenerator().generateSanitizedId());
if (isUseJBIWrapper()) {
  cf.setBindingId(org.apache.servicemix.cxf.binding.jbi.JBIConstants.NS_JBI_BINDING);
origin: org.apache.servicemix/servicemix-cxf-se

String address = "jbi://" + ID_GENERATOR.generateSanitizedId();
org.apache.servicemix.idIdGeneratorgenerateSanitizedId

Javadoc

Generate a unique ID - that is friendly for a URL or file system

Popular methods of IdGenerator

  • <init>
    Construct an IdGenerator
  • generateId
    Generate a unqiue id

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • BoxLayout (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now