Rework TypedRowInvocationHandler invocation path
[ovsdb.git] / library / impl / src / main / java / org / opendaylight / ovsdb / lib / schema / typed / GetRow.java
1 /*
2  * Copyright © 2019 PANTHEON.tech, s.r.o. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.ovsdb.lib.schema.typed;
9
10 import org.opendaylight.ovsdb.lib.notation.Row;
11 import org.opendaylight.ovsdb.lib.schema.GenericTableSchema;
12 import org.opendaylight.ovsdb.lib.schema.typed.MethodDispatch.Prototype;
13
14 final class GetRow extends Prototype {
15     private static final MethodDispatch.Invoker INVOKER = new MethodDispatch.Invoker() {
16         @Override
17         Object invokeMethod(final Row<GenericTableSchema> row, final Object proxy, final Object[] args) {
18             return row;
19         }
20     };
21
22     static final GetRow INSTANCE = new GetRow();
23
24     private GetRow() {
25
26     }
27
28     @Override
29     MethodDispatch.Invoker bindTo(final TypedDatabaseSchema dbSchema) {
30         return INVOKER;
31     }
32 }