initialize(IDbFactory)   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
dl 0
loc 2
ccs 0
cts 2
cp 0
crap 2
rs 10
1
/*
2
 * Copyright 2014, Armenak Grigoryan, and individual contributors as indicated
3
 * by the @authors tag. See the copyright.txt in the distribution for a
4
 * full listing of individual contributors.
5
 *
6
 * This is free software; you can redistribute it and/or modify it
7
 * under the terms of the GNU Lesser General Public License as
8
 * published by the Free Software Foundation; either version 2.1 of
9
 * the License, or (at your option) any later version.
10
 *
11
 * This software is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
 * Lesser General Public License for more details.
15
 */
16
package com.strider.datadefender.requirement.registry;
17
18
import com.strider.datadefender.database.IDbFactory;
19
20
/**
21
 * Configures a member variable IDbFactory in a concrete 'initialize' method.
22
 *
23
 * @author Zaahid Bateson <[email protected]>
24
 */
25
public abstract class DatabaseAwareRequirementFunction extends RequirementFunction {
26
27
    protected IDbFactory dbFactory;
28
29
    public final void initialize(IDbFactory dbFactory) {
30
        this.dbFactory = dbFactory;
31
    }
32
}
33