All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.backendless.rt.data.EventHandlerFactory Maven / Gradle / Ivy

package com.backendless.rt.data;

import com.backendless.rt.AbstractListenerFactory;

import java.util.Map;


public class EventHandlerFactory extends AbstractListenerFactory>
{
  private static final EventHandlerFactory instance = new EventHandlerFactory();

  public static EventHandlerFactory getInstance()
  {
    return instance;
  }

  private EventHandlerFactory()
  {
  }

  @SuppressWarnings( "unchecked" )
  public  EventHandler of( final Class entity )
  {
    return new EventHandlerImpl<>( entity );
  }

  @SuppressWarnings( "unchecked" )
  public EventHandler of( final String tableName )
  {
    return new EventHandlerImpl<>( tableName );
  }

  @Override
  protected EventHandler create( String name )
  {
    throw new IllegalStateException( "Use direct implementation with 'of()' methods." );
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy