/**
 *
 * Copyright (c) 2006-2019, Speedment, Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); You may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.speedment.runtime.core.internal.component.sql;

import com.speedment.common.injector.annotation.Inject;
import com.speedment.runtime.core.component.DbmsHandlerComponent;
import com.speedment.runtime.core.component.ManagerComponent;
import com.speedment.runtime.core.component.PersistenceTableInfo;
import com.speedment.runtime.core.component.ProjectComponent;
import com.speedment.runtime.core.component.resultset.ResultSetMapperComponent;
import com.speedment.runtime.core.component.sql.SqlPersistenceComponent;
import com.speedment.runtime.core.manager.PersistenceProvider;

/**
 *
 * @author Emil Forslund
 * @author Dan Lawesson
 * @since 3.0.1
 */
public final class SqlPersistanceComponentImpl implements SqlPersistenceComponent {

    @Inject
    private ProjectComponent projectComponent;
    @Inject
    private DbmsHandlerComponent dbmsHandlerComponent;
    @Inject
    private ManagerComponent managerComponent;
    @Inject
    private ResultSetMapperComponent resultSetMapperComponent;

    @Override
    public <ENTITY> PersistenceProvider<ENTITY> persistenceProvider(PersistenceTableInfo<ENTITY> tableInfo) {
        return new SqlPersistenceProviderImpl<>(
            tableInfo,
            projectComponent,
            dbmsHandlerComponent,
            managerComponent,
            resultSetMapperComponent
        );
    }
}

@@ -688,64 +688,8 @@
 l;%0A%0A
-import com.speedment.common.injector.annotation.Inject;%0A
 impo
@@ -742,32 +742,32 @@
 ndlerComponent;%0A
+
 import com.speed
@@ -1157,16 +1157,65 @@
 vider;%0A%0A
+import static java.util.Objects.requireNonNull;%0A%0A
 /**%0A *%0A 
@@ -1375,86 +1375,343 @@
     
-@Inject%0A    private ProjectComponent projectComponent;%0A    @Inject%0A    private
+private final ProjectComponent projectComponent;%0A    private final DbmsHandlerComponent dbmsHandlerComponent;%0A    private final ManagerComponent managerComponent;%0A    private final ResultSetMapperComponent resultSetMapperComponent;%0A%0A    public SqlPersistanceComponentImpl(%0A        final ProjectComponent projectComponent,%0A        final
  Dbm
@@ -1752,33 +1752,23 @@
 nent
-;
+,
 %0A    
-@Inject%0A    private
+    final
  Man
@@ -1801,35 +1801,302 @@
 nent
-;
+,
 %0A    
-@Inject%0A    private R
+    final ResultSetMapperComponent resultSetMapperComponent%0A    ) %7B%0A        this.projectComponent = requireNonNull(projectComponent);%0A        this.dbmsHandlerComponent = requireNonNull(dbmsHandlerComponent);%0A        this.managerComponent = requireNonNull(managerComponent);%0A        this.r
 esul
@@ -2107,32 +2107,49 @@
 MapperComponent 
+= requireNonNull(
 resultSetMapperC
@@ -2152,25 +2152,32 @@
 perComponent
-;
+);%0A    %7D
 %0A%0A    @Overr

Make SqlPersistanceComponentImpl immutable