1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.neo4j.server.plugins;
21
22 import java.util.List;
23 import java.util.Set;
24
25 import org.neo4j.kernel.AbstractGraphDatabase;
26 import org.neo4j.server.rest.repr.BadInputException;
27 import org.neo4j.server.rest.repr.ExtensionPointRepresentation;
28 import org.neo4j.server.rest.repr.Representation;
29
30 public interface PluginInvocator
31 {
32 <T> Representation invoke( AbstractGraphDatabase graphDb, String name, Class<T> type,
33 String method, T context, ParameterList params ) throws PluginLookupException,
34 BadInputException, PluginInvocationFailureException, BadPluginInvocationException;
35
36 ExtensionPointRepresentation describe( String name, Class<?> type, String method )
37 throws PluginLookupException;
38
39 List<ExtensionPointRepresentation> describeAll( String extensionName )
40 throws PluginLookupException;
41
42 Set<String> extensionNames();
43 }