Package yapion.serializing
Class YAPIONRegistrator
- java.lang.Object
-
- yapion.serializing.YAPIONRegistrator
-
public final class YAPIONRegistrator extends java.lang.Object
-
-
Method Summary
Modifier and Type Method Description static void
registration(@NonNull java.lang.Class<?>... classes)
This method will scan the packages of the given classes and any sub packages for any class which contain methods annotated withYAPIONRegistratorProvider
.
-
-
-
Method Detail
-
registration
public static void registration(@NonNull @NonNull java.lang.Class<?>... classes)
This method will scan the packages of the given classes and any sub packages for any class which contain methods annotated withYAPIONRegistratorProvider
.
Constraints for the methods:
- The method needs to be non static
- The method needs to return something nonVoid
- The method should need no arguments
After obtaining every method of a given class with this annotation, it will create an instance of given class by callingReflectionsUtils.constructObjectObjenesis(Class)
. This object will be used to retrieve the values of given methods. This result will be processed and loaded if possible.
Constraints for the method return value:
- Instance of typeYAPIONSerializerRegistrator
- Instance of typeInstanceFactory
- Instance of typeSerializerList
- Instance of typeSerializerMap
- Instance of typeSerializerObject
- Instance of typeSerializerQueue
- Instance of typeSerializerSet
- Class ofYAPIONSerializerRegistrator
- Class ofInstanceFactory
- Class ofSerializerList
- Class ofSerializerMap
- Class ofSerializerObject
- Class ofSerializerQueue
- Class ofSerializerSet
- Parameters:
classes
- to scan the packages and any sub packages of
-
-