
apoc.TTLConfigExtensionFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apoc-extended Show documentation
Show all versions of apoc-extended Show documentation
Extended package for Neo4j Procedures
package apoc;
import org.neo4j.annotations.service.ServiceProvider;
import org.neo4j.kernel.api.procedure.GlobalProcedures;
import org.neo4j.kernel.extension.ExtensionFactory;
import org.neo4j.kernel.extension.ExtensionType;
import org.neo4j.kernel.extension.context.ExtensionContext;
import org.neo4j.kernel.lifecycle.Lifecycle;
/**
* a kernel extension for the TTL config
*/
@ServiceProvider
public class TTLConfigExtensionFactory extends ExtensionFactory {
public interface Dependencies {
ApocConfig config();
GlobalProcedures globalProceduresRegistry();
}
public TTLConfigExtensionFactory() {
super(ExtensionType.DATABASE, "TTLConfig");
}
@Override
public Lifecycle newInstance(ExtensionContext context, Dependencies dependencies) {
return new TTLConfig(dependencies.config(), dependencies.globalProceduresRegistry());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy