org.neo4j.kernel.extension
Class KernelExtensions
java.lang.Object
org.neo4j.graphdb.DependencyResolver.Adapter
org.neo4j.kernel.extension.KernelExtensions
- All Implemented Interfaces:
- DependencyResolver, Lifecycle
public class KernelExtensions
- extends DependencyResolver.Adapter
- implements Lifecycle
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KernelExtensions
public KernelExtensions(Iterable<KernelExtensionFactory<?>> kernelExtensionFactories,
Config config,
DependencyResolver dependencyResolver)
init
public void init()
throws Throwable
- Specified by:
init
in interface Lifecycle
- Throws:
Throwable
start
public void start()
throws Throwable
- Specified by:
start
in interface Lifecycle
- Throws:
Throwable
stop
public void stop()
throws Throwable
- Specified by:
stop
in interface Lifecycle
- Throws:
Throwable
shutdown
public void shutdown()
throws Throwable
- Specified by:
shutdown
in interface Lifecycle
- Throws:
Throwable
isRegistered
public boolean isRegistered(Class<?> kernelExtensionFactoryClass)
addKernelExtension
public void addKernelExtension(KernelExtensionFactory kernelExtensionFactory)
removeKernelExtension
public void removeKernelExtension(KernelExtensionFactory kernelExtensionFactory)
addKernelExtensionListener
public void addKernelExtensionListener(KernelExtensionListener listener)
removeKernelExtensionListener
public void removeKernelExtensionListener(KernelExtensionListener listener)
resolveDependency
public <T> T resolveDependency(Class<T> type,
DependencyResolver.SelectionStrategy<T> selector)
throws IllegalArgumentException
- Description copied from interface:
DependencyResolver
- Tries to resolve a dependency that matches a given class. All candidates are fed to the
selector
which ultimately becomes responsible for making the choice between all available candidates.
- Specified by:
resolveDependency
in interface DependencyResolver
- Parameters:
type
- the type of Class
that the returned instance must implement.selector
- DependencyResolver.SelectionStrategy
which will make the choice of which one to return among
matching candidates.
- Returns:
- the resolved dependency for the given type.
- Throws:
IllegalArgumentException
- if no matching dependency was found.
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.