public static CamundaBpmProducer createProducer ( final CamundaBpmEndpoint endpoint , final ParsedUri uri , final Map < String , Object > parameters ) throws IllegalArgumentException { switch ( uri . getType ( ) ) { case StartProcess : return new StartProcessProducer ( endpoint , parameters ) ; case SendSignal : case SendMessage : return new MessageProducer ( endpoint , parameters ) ; default : throw new IllegalArgumentException ( "Cannot create a producer for URI '" + uri + "' - new ProducerType '" + uri . getType ( ) + "' not yet supported?" ) ; } }
Prevent instantiation of helper class