public final class LaPasse extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
GENERATED_SUFFIX
Generated class name suffix.
|
| Modifier and Type | Method and Description |
|---|---|
protected static HandlerMapper |
createHandlerMapperInstance(Constructor<? extends HandlerMapper> constructor,
Object origin,
Facade facade)
Creates an instance of the provided HandlerMapper constructor.
|
protected static Class<? extends HandlerMapper> |
getHandlerMapperClass(String fqcn)
Attempts to load the HandlerMapper class by its Fully-Qualified Class Name.
|
protected static Constructor<? extends HandlerMapper> |
getHandlerMapperConstructor(Class<? extends HandlerMapper> handlerMapperClass,
Class<?> originClass)
Attempts to get the default generated HandlerMapper constructor.
|
static void |
mapHandlers(Facade<? extends State> origin)
Map the handler methods of a facade implementation.
|
static void |
mapHandlers(Object origin,
Facade<? extends State> facade)
Map the annotated handler methods of a class to its facade.
|
public static final String GENERATED_SUFFIX
public static void mapHandlers(Facade<? extends State> origin)
origin - The facade implementation, containing the annotations.NoGeneratedClassException - when no generated class exists for this origin.GeneratedConstructorNotFoundException - when the expected generated constructor was not
found.HandlerMapperInstantiationException - when an error occurs during the instantiation
of the HandlerMapper.mapHandlers(Object, Facade)public static void mapHandlers(Object origin, Facade<? extends State> facade)
origin - The class containing the annotations.facade - The LaPasse facade to map handlers to.NoGeneratedClassException - when no generated class exists for this origin.GeneratedConstructorNotFoundException - when the expected generated constructor was not
found.HandlerMapperInstantiationException - when an error occurs during the instantiation
of the HandlerMapper.protected static HandlerMapper createHandlerMapperInstance(Constructor<? extends HandlerMapper> constructor, Object origin, Facade facade)
constructor - The constructor to create an instance of.origin - The annotated class to pass to the constructor.facade - The facade to pass to the constructor.HandlerMapperInstantiationException - when an error occurs during the instantiation of
the HandlerMapper.protected static Class<? extends HandlerMapper> getHandlerMapperClass(String fqcn)
fqcn - Fully-Qualified Class Name.NoGeneratedClassException - when no generated class exists for this FQCN.protected static Constructor<? extends HandlerMapper> getHandlerMapperConstructor(Class<? extends HandlerMapper> handlerMapperClass, Class<?> originClass)
handlerMapperClass - HandlerMapper class.originClass - The class containing the annotations.GeneratedConstructorNotFoundException - when the expected generated constructor was not
found.Copyright © 2016 Cooking Fox. All rights reserved.