Class AbstractDataStore.Factory<T extends AbstractDataStore<T,​C>,​C>

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface ca.stellardrift.permissionsex.datastore.DataStoreFactory

        ca.stellardrift.permissionsex.datastore.DataStoreFactory.Convertable<C extends Object>
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Factory​(String name, Class<C> clazz, BiFunction<ca.stellardrift.permissionsex.datastore.DataStoreContext,​ca.stellardrift.permissionsex.datastore.ProtoDataStore<C>,​T> newInstanceSupplier)  
    • Constructor Detail

      • Factory

        protected Factory​(String name,
                          Class<C> clazz,
                          BiFunction<ca.stellardrift.permissionsex.datastore.DataStoreContext,​ca.stellardrift.permissionsex.datastore.ProtoDataStore<C>,​T> newInstanceSupplier)
    • Method Detail

      • friendlyName

        public net.kyori.adventure.text.Component friendlyName()
        Specified by:
        friendlyName in interface ca.stellardrift.permissionsex.datastore.DataStoreFactory<T extends AbstractDataStore<T,​C>>
      • name

        public final String name()
        Specified by:
        name in interface ca.stellardrift.permissionsex.datastore.DataStoreFactory<T extends AbstractDataStore<T,​C>>
      • create

        public final ca.stellardrift.permissionsex.datastore.ProtoDataStore<Ccreate​(String identifier,
                                                                                      org.spongepowered.configurate.ConfigurationNode config)
                                                                               throws ca.stellardrift.permissionsex.exception.PermissionsLoadingException
        Specified by:
        create in interface ca.stellardrift.permissionsex.datastore.DataStoreFactory<T extends AbstractDataStore<T,​C>>
        Throws:
        ca.stellardrift.permissionsex.exception.PermissionsLoadingException
      • defrost

        public ca.stellardrift.permissionsex.datastore.DataStore defrost​(ca.stellardrift.permissionsex.datastore.DataStoreContext context,
                                                                         ca.stellardrift.permissionsex.datastore.ProtoDataStore<C> properties)
                                                                  throws ca.stellardrift.permissionsex.exception.PermissionsLoadingException
        Specified by:
        defrost in interface ca.stellardrift.permissionsex.datastore.DataStoreFactory<T extends AbstractDataStore<T,​C>>
        Throws:
        ca.stellardrift.permissionsex.exception.PermissionsLoadingException
      • serialize

        public void serialize​(org.spongepowered.configurate.ConfigurationNode node,
                              ca.stellardrift.permissionsex.datastore.ProtoDataStore<C> protoStore)
                       throws org.spongepowered.configurate.serialize.SerializationException
        Specified by:
        serialize in interface ca.stellardrift.permissionsex.datastore.DataStoreFactory<T extends AbstractDataStore<T,​C>>
        Throws:
        org.spongepowered.configurate.serialize.SerializationException