Injection doesn't work on private methods, restore the visibility of the methods so injection works.

This commit is contained in:
Kris McQueen 2010-10-06 18:25:58 -07:00
parent 5fa6ff7fe4
commit ec62ef3cd7
1 changed files with 2 additions and 2 deletions

View File

@ -508,7 +508,7 @@ public class SnapshotManagerImpl implements SnapshotManager {
}
@DB
private boolean backupSnapshotToSecondaryStorage(SnapshotVO snapshot) {
public boolean backupSnapshotToSecondaryStorage(SnapshotVO snapshot) {
Long userId = UserContext.current().getUserId();
long id = snapshot.getId();
@ -702,7 +702,7 @@ public class SnapshotManagerImpl implements SnapshotManager {
}
@DB
private void postCreateSnapshot(long volumeId, long snapshotId, List<Long> policyIds, boolean backedUp) {
protected void postCreateSnapshot(long volumeId, long snapshotId, List<Long> policyIds, boolean backedUp) {
Long userId = UserContext.current().getUserId();
// Update the snapshot_policy_ref table with the created snapshot
// Get the list of policies for this snapshot