eu.larkc.core.endpoint
Class EndpointFactory

java.lang.Object
  extended by eu.larkc.core.endpoint.EndpointFactory

public class EndpointFactory
extends java.lang.Object

This class is responsible for creating endpoints of specific types.

Author:
norlan

Constructor Summary
EndpointFactory()
           
 
Method Summary
static Endpoint constructEndpoint(java.lang.String type, Executor executor)
          This method creates an endpoint of the specific type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointFactory

public EndpointFactory()
Method Detail

constructEndpoint

public static Endpoint constructEndpoint(java.lang.String type,
                                         Executor executor)
                                  throws java.lang.SecurityException,
                                         java.lang.NoSuchMethodException,
                                         java.lang.IllegalArgumentException,
                                         java.lang.InstantiationException,
                                         java.lang.IllegalAccessException,
                                         java.lang.reflect.InvocationTargetException,
                                         java.lang.ClassNotFoundException
This method creates an endpoint of the specific type.

Parameters:
type - type of the endpoint
executor - the executor responsible for that endpoint
Returns:
the newly instantiated endpoint
Throws:
java.lang.NoSuchMethodException
java.lang.SecurityException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalArgumentException
java.lang.ClassNotFoundException