Instance a new registry using the classes under the specified package names and discoverable by the specified class loader
Instance a new registry using the classes under the specified package names and discoverable by the specified class loader
Class loader use to discover the classes in the specified package
List of package names under which your annotated REST request and response classes are defined
Instance a new registry using the classes under the specified package name and discoverable by the specified class loader
Instance a new registry using the classes under the specified package name and discoverable by the specified class loader
Class loader use to discover the classes in the specified package
Name of package where your annotated REST request and response classes are defined
Instance registry using the classes under the specified package name and the class loader of this class
Instance registry using the classes under the specified package name and the class loader of this class
Name of package where your annotated REST request and response classes are defined
Builds a org.mashupbots.socko.rest.RestOperation for a specific class clz
.
Builds a org.mashupbots.socko.rest.RestOperation for a specific class clz
.
If clz
is a child of org.mashupbots.socko.rest.RestRegistration, and it has a corresponding
org.mashupbots.socko.rest.RestRequest and org.mashupbots.socko.rest.RestResponse, then
a org.mashupbots.socko.rest.RestOperation is instanced and returned.
If not, then None
is returned.
Runtime mirror
class to check
Collection of classes found in the package to load
REST configuration
An instance of the annotation class or None
if annotation not found
Finds a REST operation annotation in a org.mashupbots.socko.rest.RestRequest class.
Finds a REST operation annotation in a org.mashupbots.socko.rest.RestRequest class.
Runtime mirror
class to check
REST configuration
An instance of the annotation class or None
if annotation not found
Finds a corresponding request class given the registration
Finds a corresponding request class given the registration
If registration requestClass
field is empty, the assumed request class is the same class path
and name as the registration class; but with registration
suffix replaced with Request
.
If not empty, the specified request type will be used
REST operation registration details
Mirror
registration class
Sequence of classes in which to search for the request class
the request type or None
if not found
Finds a corresponding response class given the registration
Finds a corresponding response class given the registration
If registration responseClass
field is empty, the assumed response class is the same class path
and name as the registration class; but with registration
suffix replaced with Response
.
If registration responseClass
field is not empty, the specified response type will be used
If customSerialization
is declared, the standard NoSerializationRestResponse
will be returned.
This is just a placeholder and will not be used because the processing actor will handle serialization.
REST operation registration details
Mirror
registration class
Sequence of classes in which to search for the request class
the response type or None
if not found
Factory to instance a registry