com.strider.datadefender.requirement.registry.DatabaseAwareRequirementFunction   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 6
ccs 0
cts 2
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A initialize(IDbFactory) 0 2 1
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