import com.opensymphony.xwork2.Preparable;
import com.opensymphony.xwork2.Validateable;
+import org.apache.archiva.admin.model.RepositoryAdminException;
+import org.apache.archiva.admin.model.admin.ArchivaAdministration;
+import org.apache.archiva.admin.model.managed.ManagedRepository;
+import org.apache.archiva.admin.model.managed.ManagedRepositoryAdmin;
import org.apache.archiva.audit.AuditEvent;
import org.apache.archiva.audit.Auditable;
import org.apache.archiva.checksum.ChecksumAlgorithm;
import org.apache.archiva.checksum.ChecksummedFile;
import org.apache.archiva.scheduler.ArchivaTaskScheduler;
import org.apache.archiva.scheduler.repository.RepositoryTask;
+import org.apache.archiva.security.AccessDeniedException;
+import org.apache.archiva.security.ArchivaSecurityException;
+import org.apache.archiva.security.PrincipalNotFoundException;
+import org.apache.archiva.security.UserRepositories;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.maven.archiva.common.utils.VersionComparator;
import org.apache.maven.archiva.common.utils.VersionUtil;
-import org.apache.maven.archiva.configuration.ArchivaConfiguration;
-import org.apache.maven.archiva.configuration.Configuration;
-import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
import org.apache.maven.archiva.model.ArchivaRepositoryMetadata;
import org.apache.maven.archiva.model.ArtifactReference;
import org.apache.maven.archiva.model.SnapshotVersion;
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataException;
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataReader;
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataWriter;
-import org.apache.archiva.security.AccessDeniedException;
-import org.apache.archiva.security.ArchivaSecurityException;
-import org.apache.archiva.security.PrincipalNotFoundException;
-import org.apache.archiva.security.UserRepositories;
import org.apache.maven.model.Model;
import org.apache.maven.model.io.xpp3.MavenXpp3Writer;
import org.codehaus.plexus.taskqueue.TaskQueueException;
*/
private List<String> managedRepoIdList;
+ @Inject
+ private ManagedRepositoryAdmin managedRepositoryAdmin;
+
@Inject
private UserRepositories userRepositories;
@Inject
- private ArchivaConfiguration configuration;
+ private ArchivaAdministration archivaAdministration;
@Inject
private RepositoryContentFactory repositoryFactory;
{
try
{
- Configuration config = configuration.getConfiguration();
- ManagedRepositoryConfiguration repoConfig = config.findManagedRepositoryById( repositoryId );
+ ManagedRepository repoConfig = managedRepositoryAdmin.getManagedRepository( repositoryId );
ArtifactReference artifactReference = new ArtifactReference();
artifactReference.setArtifactId( artifactId );
}
boolean fixChecksums =
- !( config.getRepositoryScanning().getKnownContentConsumers().contains( "create-missing-checksums" ) );
+ !( archivaAdministration.getKnownContentConsumers().contains( "create-missing-checksums" ) );
try
{
}
// explicitly update only if metadata-updater consumer is not enabled!
- if ( !config.getRepositoryScanning().getKnownContentConsumers().contains( "metadata-updater" ) )
+ if ( !archivaAdministration.getKnownContentConsumers().contains( "metadata-updater" ) )
{
updateProjectMetadata( targetPath.getAbsolutePath(), lastUpdatedTimestamp, timestamp, newBuildNumber,
fixChecksums );
addActionError( "Repository exception: " + rep.getMessage() );
return ERROR;
}
+ catch ( RepositoryAdminException e )
+ {
+ addActionError( "RepositoryAdmin exception: " + e.getMessage() );
+ return ERROR;
+ }
}
private void fixChecksums( File file )
this.repositoryFactory = repositoryFactory;
}
- public void setConfiguration( ArchivaConfiguration configuration )
+ public ManagedRepositoryAdmin getManagedRepositoryAdmin()
+ {
+ return managedRepositoryAdmin;
+ }
+
+ public void setManagedRepositoryAdmin( ManagedRepositoryAdmin managedRepositoryAdmin )
+ {
+ this.managedRepositoryAdmin = managedRepositoryAdmin;
+ }
+
+ public ArchivaAdministration getArchivaAdministration()
+ {
+ return archivaAdministration;
+ }
+
+ public void setArchivaAdministration( ArchivaAdministration archivaAdministration )
{
- this.configuration = configuration;
+ this.archivaAdministration = archivaAdministration;
}
}
import com.opensymphony.xwork2.Action;
import net.sf.beanlib.provider.replicator.BeanReplicator;
+import org.apache.archiva.admin.model.admin.ArchivaAdministration;
import org.apache.archiva.admin.model.managed.ManagedRepository;
+import org.apache.archiva.admin.model.managed.ManagedRepositoryAdmin;
import org.apache.archiva.audit.AuditEvent;
import org.apache.archiva.audit.AuditListener;
import org.apache.archiva.checksum.ChecksumAlgorithm;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.maven.archiva.common.utils.FileUtil;
-import org.apache.maven.archiva.configuration.ArchivaConfiguration;
-import org.apache.maven.archiva.configuration.Configuration;
-import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
-import org.apache.maven.archiva.configuration.RepositoryScanningConfiguration;
import org.apache.maven.archiva.model.ArchivaRepositoryMetadata;
import org.apache.maven.archiva.model.SnapshotVersion;
import org.apache.maven.archiva.repository.ManagedRepositoryContent;
{
private UploadAction uploadAction;
- private ArchivaConfiguration archivaConfig;
-
- private MockControl archivaConfigControl;
-
private RepositoryContentFactory repoFactory;
private MockControl repoFactoryControl;
+ private MockControl managedRepoAdminControl;
+
+ private ManagedRepositoryAdmin managedRepositoryAdmin;
+
+ private MockControl archivaAdminControl;
+
+ private ArchivaAdministration archivaAdministration;
+
private static final String REPOSITORY_ID = "test-repo";
- private Configuration config;
+
+ private ManagedRepository managedRepository;
public void setUp()
throws Exception
MockControl schedulerControl = MockControl.createControl( ArchivaTaskScheduler.class );
ArchivaTaskScheduler scheduler = (ArchivaTaskScheduler) schedulerControl.getMock();
- archivaConfigControl = MockControl.createControl( ArchivaConfiguration.class );
- archivaConfig = (ArchivaConfiguration) archivaConfigControl.getMock();
-
repoFactoryControl = MockClassControl.createControl( RepositoryContentFactory.class );
repoFactory = (RepositoryContentFactory) repoFactoryControl.getMock();
+ managedRepoAdminControl = MockControl.createControl( ManagedRepositoryAdmin.class );
+ managedRepositoryAdmin = (ManagedRepositoryAdmin) managedRepoAdminControl.getMock();
+
+ archivaAdminControl = MockControl.createControl( ArchivaAdministration.class );
+ archivaAdministration = (ArchivaAdministration) archivaAdminControl.getMock();
+
uploadAction = new UploadAction();
uploadAction.setScheduler( scheduler );
- uploadAction.setConfiguration( archivaConfig );
+ uploadAction.setManagedRepositoryAdmin( managedRepositoryAdmin );
+ uploadAction.setArchivaAdministration( archivaAdministration );
+
uploadAction.setRepositoryFactory( repoFactory );
File testRepo = new File( FileUtil.getBasedir(), "target/test-classes/test-repo" );
assertTrue( testRepo.exists() );
- config = new Configuration();
- ManagedRepositoryConfiguration repoConfig = new ManagedRepositoryConfiguration();
- repoConfig.setId( REPOSITORY_ID );
- repoConfig.setLayout( "default" );
- repoConfig.setLocation( testRepo.getPath() );
- repoConfig.setName( REPOSITORY_ID );
- repoConfig.setBlockRedeployments( true );
- config.addManagedRepository( repoConfig );
-
- RepositoryScanningConfiguration repoScanning = new RepositoryScanningConfiguration();
- repoScanning.setKnownContentConsumers( new ArrayList<String>() );
- config.setRepositoryScanning( repoScanning );
+ managedRepository = new ManagedRepository();
+ managedRepository.setId( REPOSITORY_ID );
+ managedRepository.setLayout( "default" );
+ managedRepository.setLocation( testRepo.getPath() );
+ managedRepository.setName( REPOSITORY_ID );
+ managedRepository.setBlockRedeployments( true );
+
}
public void tearDown()
throws Exception
{
- File testRepo = new File( config.findManagedRepositoryById( REPOSITORY_ID ).getLocation() );
+ File testRepo = new File( this.managedRepository.getLocation() );
FileUtils.deleteDirectory( testRepo );
assertFalse( testRepo.exists() );
false );
ManagedRepositoryContent content = new ManagedDefaultRepositoryContent();
- content.setRepository( getManagedRepository( config.findManagedRepositoryById( REPOSITORY_ID ) ) );
+ content.setRepository( getManagedRepository() );
- archivaConfigControl.expectAndReturn( archivaConfig.getConfiguration(), config );
repoFactoryControl.expectAndReturn( repoFactory.getManagedRepositoryContent( REPOSITORY_ID ), content );
- archivaConfigControl.replay();
+ managedRepoAdminControl.expectAndReturn( managedRepositoryAdmin.getManagedRepository( REPOSITORY_ID ),
+ getManagedRepository(), 1, 8 );
+
+ archivaAdminControl.expectAndReturn( archivaAdministration.getKnownContentConsumers(), new ArrayList<String>(),
+ 2 );
+
+ managedRepoAdminControl.replay();
+ archivaAdminControl.replay();
repoFactoryControl.replay();
MockControl control = mockAuditLogs(
String returnString = uploadAction.doUpload();
assertEquals( Action.SUCCESS, returnString );
- archivaConfigControl.verify();
repoFactoryControl.verify();
control.verify();
- String repoLocation = config.findManagedRepositoryById( REPOSITORY_ID ).getLocation();
+ String repoLocation = getManagedRepository().getLocation();
assertAllArtifactsIncludingSupportArtifactsArePresent( repoLocation, "artifact-upload-1.0", "1.0" );
verifyArtifactChecksums( repoLocation, "artifact-upload-1.0", "1.0" );
false );
ManagedRepositoryContent content = new ManagedDefaultRepositoryContent();
- content.setRepository( getManagedRepository( config.findManagedRepositoryById( REPOSITORY_ID ) ) );
+ content.setRepository( getManagedRepository() );
- archivaConfigControl.expectAndReturn( archivaConfig.getConfiguration(), config );
repoFactoryControl.expectAndReturn( repoFactory.getManagedRepositoryContent( REPOSITORY_ID ), content );
- archivaConfigControl.replay();
+ managedRepoAdminControl.expectAndReturn( managedRepositoryAdmin.getManagedRepository( REPOSITORY_ID ),
+ getManagedRepository(), 1, 8 );
+
+ archivaAdminControl.expectAndReturn( archivaAdministration.getKnownContentConsumers(), new ArrayList<String>(),
+ 2 );
+
+ managedRepoAdminControl.replay();
+ archivaAdminControl.replay();
+
repoFactoryControl.replay();
MockControl control = mockAuditLogs(
String returnString = uploadAction.doUpload();
assertEquals( Action.SUCCESS, returnString );
- archivaConfigControl.verify();
repoFactoryControl.verify();
control.verify();
- String repoLocation = config.findManagedRepositoryById( REPOSITORY_ID ).getLocation();
+ String repoLocation = getManagedRepository().getLocation();
assertTrue( new File( repoLocation,
"/org/apache/archiva/artifact-upload/1.0/artifact-upload-1.0-tests.jar" ).exists() );
assertTrue( new File( repoLocation,
null, true );
ManagedRepositoryContent content = new ManagedDefaultRepositoryContent();
- content.setRepository( getManagedRepository( config.findManagedRepositoryById( REPOSITORY_ID ) ) );
+ content.setRepository( getManagedRepository() );
- archivaConfigControl.expectAndReturn( archivaConfig.getConfiguration(), config );
repoFactoryControl.expectAndReturn( repoFactory.getManagedRepositoryContent( REPOSITORY_ID ), content );
- archivaConfigControl.replay();
+ managedRepoAdminControl.expectAndReturn( managedRepositoryAdmin.getManagedRepository( REPOSITORY_ID ),
+ getManagedRepository(), 1, 8 );
+
+ archivaAdminControl.expectAndReturn( archivaAdministration.getKnownContentConsumers(), new ArrayList<String>(),
+ 2 );
+
+ managedRepoAdminControl.replay();
+ archivaAdminControl.replay();
+
repoFactoryControl.replay();
MockControl control = mockAuditLogs(
String returnString = uploadAction.doUpload();
assertEquals( Action.SUCCESS, returnString );
- archivaConfigControl.verify();
repoFactoryControl.verify();
control.verify();
- String repoLocation = config.findManagedRepositoryById( REPOSITORY_ID ).getLocation();
+ String repoLocation = getManagedRepository().getLocation();
assertAllArtifactsIncludingSupportArtifactsArePresent( repoLocation, "artifact-upload-1.0", "1.0" );
verifyArtifactChecksums( repoLocation, "artifact-upload-1.0", "1.0" );
null, false );
ManagedRepositoryContent content = new ManagedDefaultRepositoryContent();
- content.setRepository( getManagedRepository( config.findManagedRepositoryById( REPOSITORY_ID ) ) );
+ content.setRepository( getManagedRepository() );
- archivaConfigControl.expectAndReturn( archivaConfig.getConfiguration(), config );
repoFactoryControl.expectAndReturn( repoFactory.getManagedRepositoryContent( REPOSITORY_ID ), content );
- archivaConfigControl.replay();
+ managedRepoAdminControl.expectAndReturn( managedRepositoryAdmin.getManagedRepository( REPOSITORY_ID ),
+ getManagedRepository(), 1, 8 );
+
+ archivaAdminControl.expectAndReturn( archivaAdministration.getKnownContentConsumers(), new ArrayList<String>(),
+ 2 );
+
+ managedRepoAdminControl.replay();
+ archivaAdminControl.replay();
+
repoFactoryControl.replay();
MockControl control =
String returnString = uploadAction.doUpload();
assertEquals( Action.SUCCESS, returnString );
- archivaConfigControl.verify();
repoFactoryControl.verify();
control.verify();
- String repoLocation = config.findManagedRepositoryById( REPOSITORY_ID ).getLocation();
+ String repoLocation = getManagedRepository().getLocation();
assertTrue(
new File( repoLocation, "/org/apache/archiva/artifact-upload/1.0/artifact-upload-1.0.jar" ).exists() );
assertTrue(
"target/test-classes/upload-artifact-test/artifact-to-be-uploaded.jar" ),
null, false );
- archivaConfigControl.expectAndReturn( archivaConfig.getConfiguration(), config );
repoFactoryControl.expectAndThrow( repoFactory.getManagedRepositoryContent( REPOSITORY_ID ),
new RepositoryNotFoundException() );
- archivaConfigControl.replay();
+ managedRepoAdminControl.expectAndReturn( managedRepositoryAdmin.getManagedRepository( REPOSITORY_ID ),
+ getManagedRepository(), 1, 8 );
+
+ archivaAdminControl.expectAndReturn( archivaAdministration.getKnownContentConsumers(), new ArrayList<String>(),
+ 2 );
+
+ managedRepoAdminControl.replay();
+ archivaAdminControl.replay();
+
repoFactoryControl.replay();
String returnString = uploadAction.doUpload();
assertEquals( Action.ERROR, returnString );
- archivaConfigControl.verify();
repoFactoryControl.verify();
- String repoLocation = config.findManagedRepositoryById( REPOSITORY_ID ).getLocation();
+ String repoLocation = getManagedRepository().getLocation();
assertFalse(
new File( repoLocation, "/org/apache/archiva/artifact-upload/1.0/artifact-upload-1.0.jar" ).exists() );
null, true );
ManagedRepositoryContent content = new ManagedDefaultRepositoryContent();
- content.setRepository( getManagedRepository( config.findManagedRepositoryById( REPOSITORY_ID ) ) );
+ content.setRepository( getManagedRepository() );
- archivaConfigControl.expectAndReturn( archivaConfig.getConfiguration(), config );
repoFactoryControl.expectAndReturn( repoFactory.getManagedRepositoryContent( REPOSITORY_ID ), content );
- archivaConfigControl.replay();
+ managedRepoAdminControl.expectAndReturn( managedRepositoryAdmin.getManagedRepository( REPOSITORY_ID ),
+ getManagedRepository(), 1, 8 );
+
+ archivaAdminControl.expectAndReturn( archivaAdministration.getKnownContentConsumers(), new ArrayList<String>(),
+ 2, 5 );
+
+ managedRepoAdminControl.replay();
+ archivaAdminControl.replay();
+
repoFactoryControl.replay();
SimpleDateFormat fmt = new SimpleDateFormat( "yyyyMMdd.HHmmss" );
String returnString = uploadAction.doUpload();
assertEquals( Action.SUCCESS, returnString );
- archivaConfigControl.verify();
repoFactoryControl.verify();
control.verify();
- String repoLocation = config.findManagedRepositoryById( REPOSITORY_ID ).getLocation();
+ String repoLocation = getManagedRepository().getLocation();
String[] artifactsList = new File( repoLocation, "/org/apache/archiva/artifact-upload/1.0-SNAPSHOT/" ).list();
Arrays.sort( artifactsList );
String buildnumber = StringUtils.substringAfterLast( timestampPath, "-" );
assertEquals( "Incorrect build number in filename.", "1", buildnumber );
- archivaConfigControl.reset();
repoFactoryControl.reset();
control.reset();
"target/test-classes/upload-artifact-test/artifact-to-be-uploaded.jar" ),
null, true );
- archivaConfigControl.expectAndReturn( archivaConfig.getConfiguration(), config );
repoFactoryControl.expectAndReturn( repoFactory.getManagedRepositoryContent( REPOSITORY_ID ), content );
- archivaConfigControl.replay();
repoFactoryControl.replay();
fmt = new SimpleDateFormat( "yyyyMMdd.HHmmss" );
returnString = uploadAction.doUpload();
assertEquals( Action.SUCCESS, returnString );
- archivaConfigControl.verify();
repoFactoryControl.verify();
control.verify();
null, true );
ManagedRepositoryContent content = new ManagedDefaultRepositoryContent();
- ManagedRepositoryConfiguration repoConfig = config.findManagedRepositoryById( REPOSITORY_ID );
+ ManagedRepository repoConfig = getManagedRepository();
repoConfig.setBlockRedeployments( false );
- content.setRepository( getManagedRepository( repoConfig ) );
+ content.setRepository( repoConfig );
- archivaConfigControl.expectAndReturn( archivaConfig.getConfiguration(), config );
repoFactoryControl.expectAndReturn( repoFactory.getManagedRepositoryContent( REPOSITORY_ID ), content );
- archivaConfigControl.replay();
+ managedRepoAdminControl.expectAndReturn( managedRepositoryAdmin.getManagedRepository( REPOSITORY_ID ),
+ repoConfig, 1, 8 );
+
+ archivaAdminControl.expectAndReturn( archivaAdministration.getKnownContentConsumers(), new ArrayList<String>(),
+ 2, 5 );
+
+ managedRepoAdminControl.replay();
+ archivaAdminControl.replay();
+
repoFactoryControl.replay();
String returnString = uploadAction.doUpload();
assertEquals( Action.SUCCESS, returnString );
- archivaConfigControl.verify();
repoFactoryControl.verify();
- archivaConfigControl.reset();
repoFactoryControl.reset();
- String repoLocation = config.findManagedRepositoryById( REPOSITORY_ID ).getLocation();
+ String repoLocation = getManagedRepository().getLocation();
assertAllArtifactsIncludingSupportArtifactsArePresent( repoLocation, "artifact-upload-1.0", "1.0" );
verifyArtifactChecksums( repoLocation, "artifact-upload-1.0", "1.0" );
"target/test-classes/upload-artifact-test/artifact-to-be-reuploaded.jar" ),
null, true );
- archivaConfigControl.expectAndReturn( archivaConfig.getConfiguration(), config );
repoFactoryControl.expectAndReturn( repoFactory.getManagedRepositoryContent( REPOSITORY_ID ), content );
- archivaConfigControl.replay();
repoFactoryControl.replay();
// TODO: track modifications?
returnString = uploadAction.doUpload();
assertEquals( Action.SUCCESS, returnString );
- archivaConfigControl.verify();
repoFactoryControl.verify();
control.verify();
- repoLocation = config.findManagedRepositoryById( REPOSITORY_ID ).getLocation();
+ repoLocation = getManagedRepository().getLocation();
assertAllArtifactsIncludingSupportArtifactsArePresent( repoLocation, "artifact-upload-1.0", "1.0" );
verifyArtifactChecksums( repoLocation, "artifact-upload-1.0", "1.0" );
null, true );
ManagedRepositoryContent content = new ManagedDefaultRepositoryContent();
- content.setRepository( getManagedRepository( config.findManagedRepositoryById( REPOSITORY_ID ) ) );
+ content.setRepository( getManagedRepository() );
+
+ repoFactoryControl.expectAndReturn( repoFactory.getManagedRepositoryContent( REPOSITORY_ID ), content, 1, 8 );
+
+ managedRepoAdminControl.expectAndReturn( managedRepositoryAdmin.getManagedRepository( REPOSITORY_ID ),
+ getManagedRepository(), 1, 8 );
+
+ archivaAdminControl.expectAndReturn( archivaAdministration.getKnownContentConsumers(), new ArrayList<String>(),
+ 2, 5 );
- archivaConfigControl.expectAndReturn( archivaConfig.getConfiguration(), config, 2 );
- repoFactoryControl.expectAndReturn( repoFactory.getManagedRepositoryContent( REPOSITORY_ID ), content, 2 );
+ managedRepoAdminControl.replay();
+ archivaAdminControl.replay();
- archivaConfigControl.replay();
repoFactoryControl.replay();
String returnString = uploadAction.doUpload();
returnString = uploadAction.doUpload();
assertEquals( Action.ERROR, returnString );
- archivaConfigControl.verify();
repoFactoryControl.verify();
control.verify();
- String repoLocation = config.findManagedRepositoryById( REPOSITORY_ID ).getLocation();
+ String repoLocation = getManagedRepository().getLocation();
assertAllArtifactsIncludingSupportArtifactsArePresent( repoLocation, "artifact-upload-1.0", "1.0" );
verifyArtifactChecksums( repoLocation, "artifact-upload-1.0", "1.0" );
null, true );
ManagedRepositoryContent content = new ManagedDefaultRepositoryContent();
- ManagedRepositoryConfiguration repoConfig = config.findManagedRepositoryById( REPOSITORY_ID );
+ ManagedRepository repoConfig = getManagedRepository();
repoConfig.setBlockRedeployments( false );
- content.setRepository( getManagedRepository( repoConfig ) );
+ content.setRepository( repoConfig );
- archivaConfigControl.expectAndReturn( archivaConfig.getConfiguration(), config, 2 );
- repoFactoryControl.expectAndReturn( repoFactory.getManagedRepositoryContent( REPOSITORY_ID ), content, 2 );
+ repoFactoryControl.expectAndReturn( repoFactory.getManagedRepositoryContent( REPOSITORY_ID ), content, 1, 8 );
+
+ managedRepoAdminControl.expectAndReturn( managedRepositoryAdmin.getManagedRepository( REPOSITORY_ID ),
+ repoConfig, 1, 8 );
+
+ archivaAdminControl.expectAndReturn( archivaAdministration.getKnownContentConsumers(), new ArrayList<String>(),
+ 2, 5 );
+
+ managedRepoAdminControl.replay();
+ archivaAdminControl.replay();
- archivaConfigControl.replay();
repoFactoryControl.replay();
String returnString = uploadAction.doUpload();
returnString = uploadAction.doUpload();
assertEquals( Action.SUCCESS, returnString );
- archivaConfigControl.verify();
repoFactoryControl.verify();
control.verify();
- String repoLocation = config.findManagedRepositoryById( REPOSITORY_ID ).getLocation();
+ String repoLocation = getManagedRepository().getLocation();
assertAllArtifactsIncludingSupportArtifactsArePresent( repoLocation, "artifact-upload-1.0", "1.0" );
verifyArtifactChecksums( repoLocation, "artifact-upload-1.0", "1.0" );
verifyProjectMetadataChecksums( repoLocation );
}
- ManagedRepository getManagedRepository( ManagedRepositoryConfiguration conf )
+ ManagedRepository getManagedRepository()
{
- return new BeanReplicator().replicateBean( conf, ManagedRepository.class );
+ return new BeanReplicator().replicateBean( this.managedRepository, ManagedRepository.class );
}
+
}