Class AbstractDataStore.Factory<T extends AbstractDataStore<T,C>,C>
- java.lang.Object
-
- ca.stellardrift.permissionsex.impl.backend.AbstractDataStore.Factory<T,C>
-
- All Implemented Interfaces:
ca.stellardrift.permissionsex.datastore.DataStoreFactory<C>
- Direct Known Subclasses:
FileDataStore.Factory,MemoryDataStore.Factory
- Enclosing class:
- AbstractDataStore<T extends AbstractDataStore<T,C>,C>
public abstract static class AbstractDataStore.Factory<T extends AbstractDataStore<T,C>,C> extends Object implements ca.stellardrift.permissionsex.datastore.DataStoreFactory<C>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ca.stellardrift.permissionsex.datastore.DataStoreFactory
ca.stellardrift.permissionsex.datastore.DataStoreFactory.Convertable<C extends Object>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ca.stellardrift.permissionsex.datastore.ProtoDataStore<C>create(String identifier, org.spongepowered.configurate.ConfigurationNode config)ca.stellardrift.permissionsex.datastore.DataStoredefrost(ca.stellardrift.permissionsex.datastore.DataStoreContext context, ca.stellardrift.permissionsex.datastore.ProtoDataStore<C> properties)net.kyori.adventure.text.ComponentfriendlyName()Stringname()voidserialize(org.spongepowered.configurate.ConfigurationNode node, ca.stellardrift.permissionsex.datastore.ProtoDataStore<C> protoStore)
-
-
-
Method Detail
-
friendlyName
public net.kyori.adventure.text.Component friendlyName()
- Specified by:
friendlyNamein interfaceca.stellardrift.permissionsex.datastore.DataStoreFactory<T extends AbstractDataStore<T,C>>
-
name
public final String name()
- Specified by:
namein interfaceca.stellardrift.permissionsex.datastore.DataStoreFactory<T extends AbstractDataStore<T,C>>
-
create
public final ca.stellardrift.permissionsex.datastore.ProtoDataStore<C> create(String identifier, org.spongepowered.configurate.ConfigurationNode config) throws ca.stellardrift.permissionsex.exception.PermissionsLoadingException
- Specified by:
createin interfaceca.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:
defrostin interfaceca.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:
serializein interfaceca.stellardrift.permissionsex.datastore.DataStoreFactory<T extends AbstractDataStore<T,C>>- Throws:
org.spongepowered.configurate.serialize.SerializationException
-
-