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 typeInstanceFactoryInterface
- Instance of typeSerializerListInterface
- Instance of typeSerializerMapInterface
- Instance of typeSerializerObjectInterface
- Instance of typeSerializerQueueInterface
- Instance of typeSerializerSetInterface
- Class ofYAPIONSerializerRegistrator
- Class ofInstanceFactoryInterface
- Class ofSerializerListInterface
- Class ofSerializerMapInterface
- Class ofSerializerObjectInterface
- Class ofSerializerQueueInterface
- Class ofSerializerSetInterface
- Parameters:
classes
- to scan the packages and any sub packages of
-
-