Package org.hibernate.search.backend.impl

Examples of org.hibernate.search.backend.impl.TransactionalWorker


  public static Worker createWorker(SearchConfiguration cfg, WorkerBuildContext context) {
    Properties props = getProperties( cfg );
    String impl = props.getProperty( Environment.WORKER_SCOPE );
    Worker worker;
    if ( StringHelper.isEmpty( impl ) ) {
      worker = new TransactionalWorker();
    }
    else if ( "transaction".equalsIgnoreCase( impl ) ) {
      worker = new TransactionalWorker();
    }
    else {
      worker = PluginLoader.instanceFromName( Worker.class,
          impl, WorkerFactory.class, "worker" );
    }
View Full Code Here


  public static Worker createWorker(SearchConfiguration cfg, WorkerBuildContext context) {
    Properties props = getProperties( cfg );
    String impl = props.getProperty( Environment.WORKER_SCOPE );
    Worker worker;
    if ( StringHelper.isEmpty( impl ) ) {
      worker = new TransactionalWorker();
    }
    else if ( "transaction".equalsIgnoreCase( impl ) ) {
      worker = new TransactionalWorker();
    }
    else {
      worker = ClassLoaderHelper.instanceFromName(
          Worker.class,
          impl, WorkerFactory.class, "worker"
View Full Code Here

  public static Worker createWorker(Configuration cfg, SearchFactoryImplementor searchFactoryImplementor) {
    Properties props = getProperties( cfg );
    String impl = props.getProperty( Environment.WORKER_SCOPE );
    Worker worker;
    if ( StringHelper.isEmpty( impl ) ) {
      worker = new TransactionalWorker();
    }
    else if ( "transaction".equalsIgnoreCase( impl ) ) {
      worker = new TransactionalWorker();
    }
    else {
      try {
        Class workerClass = ReflectHelper.classForName( impl, WorkerFactory.class );
        worker = (Worker) workerClass.newInstance();
View Full Code Here

  public static Worker createWorker(SearchConfiguration cfg, SearchFactoryImplementor searchFactoryImplementor) {
    Properties props = getProperties( cfg );
    String impl = props.getProperty( Environment.WORKER_SCOPE );
    Worker worker;
    if ( StringHelper.isEmpty( impl ) ) {
      worker = new TransactionalWorker();
    }
    else if ( "transaction".equalsIgnoreCase( impl ) ) {
      worker = new TransactionalWorker();
    }
    else {
      worker = PluginLoader.instanceFromName( Worker.class,
          impl, WorkerFactory.class, "worker" );
    }
View Full Code Here

  public static Worker createWorker(SearchConfiguration cfg, SearchFactoryImplementor searchFactoryImplementor) {
    Properties props = getProperties( cfg );
    String impl = props.getProperty( Environment.WORKER_SCOPE );
    Worker worker;
    if ( StringHelper.isEmpty( impl ) ) {
      worker = new TransactionalWorker();
    }
    else if ( "transaction".equalsIgnoreCase( impl ) ) {
      worker = new TransactionalWorker();
    }
    else {
      worker = PluginLoader.instanceFromName( Worker.class,
          impl, WorkerFactory.class, "worker" );
    }
View Full Code Here

  public static Worker createWorker(SearchConfiguration cfg, WorkerBuildContext context) {
    Properties props = getProperties( cfg );
    String impl = props.getProperty( Environment.WORKER_SCOPE );
    Worker worker;
    if ( StringHelper.isEmpty( impl ) ) {
      worker = new TransactionalWorker();
    }
    else if ( "transaction".equalsIgnoreCase( impl ) ) {
      worker = new TransactionalWorker();
    }
    else {
      worker = ClassLoaderHelper.instanceFromName(
          Worker.class,
          impl, WorkerFactory.class, "worker"
View Full Code Here

  public static Worker createWorker(SearchConfiguration cfg, WorkerBuildContext context) {
    Properties props = getProperties( cfg );
    String impl = props.getProperty( Environment.WORKER_SCOPE );
    Worker worker;
    if ( StringHelper.isEmpty( impl ) ) {
      worker = new TransactionalWorker();
    }
    else if ( "transaction".equalsIgnoreCase( impl ) ) {
      worker = new TransactionalWorker();
    }
    else {
      worker = PluginLoader.instanceFromName( Worker.class,
          impl, WorkerFactory.class, "worker" );
    }
View Full Code Here

  public static Worker createWorker(SearchConfiguration cfg, SearchFactoryImplementor searchFactoryImplementor) {
    Properties props = getProperties( cfg );
    String impl = props.getProperty( Environment.WORKER_SCOPE );
    Worker worker;
    if ( StringHelper.isEmpty( impl ) ) {
      worker = new TransactionalWorker();
    }
    else if ( "transaction".equalsIgnoreCase( impl ) ) {
      worker = new TransactionalWorker();
    }
    else {
      try {
        Class workerClass = ReflectHelper.classForName( impl, WorkerFactory.class );
        worker = (Worker) workerClass.newInstance();
View Full Code Here

TOP

Related Classes of org.hibernate.search.backend.impl.TransactionalWorker

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.