From bef128817d76a8aac1fa575df8197f8af5a62921 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 28 Mar 2014 11:43:24 +0000 Subject: move the factory bean to the api git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1582713 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva-core-consumers/pom.xml | 1 + .../archiva-base/archiva-indexer/pom.xml | 1 + .../search/mock/MockRepositorySessionFactory.java | 2 +- archiva-modules/archiva-base/archiva-proxy/pom.xml | 1 + .../repository/TestRepositorySessionFactory.java | 2 +- .../archiva-repository-admin-default/pom.xml | 1 + .../admin/mock/MockRepositorySessionFactory.java | 2 +- .../archiva-scheduler-indexing/pom.xml | 1 + .../mock/MockRepositorySessionFactory.java | 2 +- .../archiva-scheduler-repository/pom.xml | 9 +++ .../archiva-web/archiva-security/pom.xml | 1 + .../web/startup/RepositorySessionFactoryBean.java | 77 ------------------ .../src/main/resources/META-INF/spring-context.xml | 3 +- .../src/main/resources/archiva-runtime.properties | 20 ----- .../src/main/webapp/WEB-INF/applicationContext.xml | 6 -- archiva-modules/archiva-web/archiva-webdav/pom.xml | 1 + .../repository/TestRepositorySessionFactory.java | 2 +- .../repository/RepositorySessionFactoryBean.java | 91 ++++++++++++++++++++++ .../src/main/resources/META-INF/spring-context.xml | 10 ++- .../src/main/resources/archiva-runtime.properties | 20 +++++ .../cassandra/DefaultCassandraArchivaManager.java | 27 ++++--- .../jcr/JcrRepositorySessionFactory.java | 9 --- 22 files changed, 160 insertions(+), 129 deletions(-) delete mode 100644 archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/RepositorySessionFactoryBean.java delete mode 100644 archiva-modules/archiva-web/archiva-webapp/src/main/resources/archiva-runtime.properties create mode 100644 archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/RepositorySessionFactoryBean.java create mode 100644 archiva-modules/metadata/metadata-repository-api/src/main/resources/archiva-runtime.properties (limited to 'archiva-modules') diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml index 2708e39ac..97f911ff3 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/pom.xml @@ -160,6 +160,7 @@ ${redbackTestJdbcUrl} ${redbackTestJdbcDriver} ${project.build.directory}/archiva.xml + test diff --git a/archiva-modules/archiva-base/archiva-indexer/pom.xml b/archiva-modules/archiva-base/archiva-indexer/pom.xml index a8756505f..922123c4b 100644 --- a/archiva-modules/archiva-base/archiva-indexer/pom.xml +++ b/archiva-modules/archiva-base/archiva-indexer/pom.xml @@ -219,6 +219,7 @@ ${project.build.directory}/appserver-base ${redbackTestJdbcUrl} ${redbackTestJdbcDriver} + mock diff --git a/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/archiva/indexer/search/mock/MockRepositorySessionFactory.java b/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/archiva/indexer/search/mock/MockRepositorySessionFactory.java index 2acbcb57c..0fd0ae27b 100644 --- a/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/archiva/indexer/search/mock/MockRepositorySessionFactory.java +++ b/archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/archiva/indexer/search/mock/MockRepositorySessionFactory.java @@ -38,7 +38,7 @@ import java.util.List; /** * @author Olivier Lamy */ -@Service( "RepositorySessionFactory#mock" ) +@Service( "repositorySessionFactory#mock" ) public class MockRepositorySessionFactory implements RepositorySessionFactory { diff --git a/archiva-modules/archiva-base/archiva-proxy/pom.xml b/archiva-modules/archiva-base/archiva-proxy/pom.xml index c074ff4e5..fd8fbb8fe 100644 --- a/archiva-modules/archiva-base/archiva-proxy/pom.xml +++ b/archiva-modules/archiva-base/archiva-proxy/pom.xml @@ -250,6 +250,7 @@ ${project.build.directory}/appserver-base ${redbackTestJdbcUrl} ${redbackTestJdbcDriver} + test diff --git a/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/metadata/repository/TestRepositorySessionFactory.java b/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/metadata/repository/TestRepositorySessionFactory.java index f836043ff..38a421ac1 100644 --- a/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/metadata/repository/TestRepositorySessionFactory.java +++ b/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/metadata/repository/TestRepositorySessionFactory.java @@ -23,7 +23,7 @@ import org.springframework.stereotype.Service; * specific language governing permissions and limitations * under the License. */ -@Service("repositorySessionFactory") +@Service("repositorySessionFactory#test") public class TestRepositorySessionFactory implements RepositorySessionFactory { diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml index e4d7e444c..d18a9b739 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml @@ -287,6 +287,7 @@ ${project.build.directory}/appserver-base ${redbackTestJdbcUrl} ${redbackTestJdbcDriver} + mock diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/MockRepositorySessionFactory.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/MockRepositorySessionFactory.java index 7be9d6cb7..199f0e288 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/MockRepositorySessionFactory.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/MockRepositorySessionFactory.java @@ -38,7 +38,7 @@ import java.util.List; /** * @author Olivier Lamy */ -@Service( "RepositorySessionFactory#mock" ) +@Service( "repositorySessionFactory#mock" ) public class MockRepositorySessionFactory implements RepositorySessionFactory { diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml index 18e2e6642..6f6c3ed34 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml @@ -236,6 +236,7 @@ ${redbackTestJdbcUrl} ${redbackTestJdbcDriver} ${basedir} + mock diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java index 85c01299a..5776681d5 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java @@ -38,7 +38,7 @@ import java.util.List; /** * @author Olivier Lamy */ -@Service( "RepositorySessionFactory#mock" ) +@Service( "repositorySessionFactory#mock" ) public class MockRepositorySessionFactory implements RepositorySessionFactory { diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml index b3dad9ce1..b152f2fec 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml @@ -171,6 +171,15 @@ + + org.apache.maven.plugins + maven-surefire-plugin + + + test + + + diff --git a/archiva-modules/archiva-web/archiva-security/pom.xml b/archiva-modules/archiva-web/archiva-security/pom.xml index c1e99c861..4c59752f3 100644 --- a/archiva-modules/archiva-web/archiva-security/pom.xml +++ b/archiva-modules/archiva-web/archiva-security/pom.xml @@ -243,6 +243,7 @@ ${project.build.directory}/appserver-base ${redbackTestJdbcUrl} ${redbackTestJdbcDriver} + file diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/RepositorySessionFactoryBean.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/RepositorySessionFactoryBean.java deleted file mode 100644 index 855b8b89a..000000000 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/startup/RepositorySessionFactoryBean.java +++ /dev/null @@ -1,77 +0,0 @@ -package org.apache.archiva.web.startup; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -import org.apache.archiva.metadata.repository.RepositorySessionFactory; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.config.AbstractFactoryBean; - -import java.util.Properties; - -/** - * @author Olivier Lamy - * @since 2.0.2 - */ -public class RepositorySessionFactoryBean - extends AbstractFactoryBean -{ - - private Logger logger = LoggerFactory.getLogger( getClass() ); - - //@Value( "repositorySessionFactory#${archiva.repositorySessionFactory.id}" ) - //private String beanName; - - private Properties properties; - - public RepositorySessionFactoryBean( Properties properties ) - { - this.properties = properties; - // we can override with system props - this.properties.putAll( System.getProperties() ); - } - - @Override - public Class getObjectType() - { - return RepositorySessionFactory.class; - } - - @Override - protected RepositorySessionFactory createInstance() - throws Exception - { - String id = properties.getProperty( "archiva.repositorySessionFactory.id" ); - RepositorySessionFactory repositorySessionFactory = - getBeanFactory().getBean( "repositorySessionFactory#" + id, RepositorySessionFactory.class ); - logger.info( "create RepositorySessionFactory instance of {}", repositorySessionFactory.getClass().getName() ); - return repositorySessionFactory; - } - - public Properties getProperties() - { - return properties; - } - - public void setProperties( Properties properties ) - { - this.properties = properties; - } -} diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml index a948d74aa..06cf58a64 100755 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/spring-context.xml @@ -40,7 +40,8 @@ - + diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/archiva-runtime.properties b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/archiva-runtime.properties deleted file mode 100644 index ad69475d7..000000000 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/archiva-runtime.properties +++ /dev/null @@ -1,20 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you 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. -# - -archiva.repositorySessionFactory.id=jcr \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/applicationContext.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/applicationContext.xml index 155d08000..254bf6206 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/applicationContext.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/applicationContext.xml @@ -37,12 +37,6 @@ - - - - - - diff --git a/archiva-modules/archiva-web/archiva-webdav/pom.xml b/archiva-modules/archiva-web/archiva-webdav/pom.xml index 2166fa7c3..ed1d56fd8 100644 --- a/archiva-modules/archiva-web/archiva-webdav/pom.xml +++ b/archiva-modules/archiva-web/archiva-webdav/pom.xml @@ -308,6 +308,7 @@ ${project.build.testOutputDirectory}/repository-archiva.xml ${redbackTestJdbcUrl} ${redbackTestJdbcDriver} + beer ${webdav.forkMode} diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/metadata/repository/TestRepositorySessionFactory.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/metadata/repository/TestRepositorySessionFactory.java index 224f7ec23..93a4e5ce5 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/metadata/repository/TestRepositorySessionFactory.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/metadata/repository/TestRepositorySessionFactory.java @@ -21,7 +21,7 @@ package org.apache.archiva.metadata.repository; import org.springframework.stereotype.Service; -@Service +@Service("repositorySessionFactory#beer") public class TestRepositorySessionFactory implements RepositorySessionFactory { diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/RepositorySessionFactoryBean.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/RepositorySessionFactoryBean.java new file mode 100644 index 000000000..e182104f1 --- /dev/null +++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/RepositorySessionFactoryBean.java @@ -0,0 +1,91 @@ +package org.apache.archiva.metadata.repository; + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.config.AbstractFactoryBean; + +import java.util.Properties; + +/** + * @author Olivier Lamy + * @since 2.0.2 + */ +public class RepositorySessionFactoryBean + extends AbstractFactoryBean +{ + + private Logger logger = LoggerFactory.getLogger( getClass() ); + + private static final String BEAN_ID_SYS_PROPS = "archiva.repositorySessionFactory.id"; + + private Properties properties; + + private String id; + + public RepositorySessionFactoryBean( Properties properties ) + { + this.properties = properties; + // we can override with system props + String value = System.getProperty( BEAN_ID_SYS_PROPS ); + if ( value != null ) + { + this.properties.put( BEAN_ID_SYS_PROPS, value ); + } + id = properties.getProperty( BEAN_ID_SYS_PROPS ); + } + + @Override + public Class getObjectType() + { + return RepositorySessionFactory.class; + } + + @Override + protected RepositorySessionFactory createInstance() + throws Exception + { + RepositorySessionFactory repositorySessionFactory = + getBeanFactory().getBean( "repositorySessionFactory#" + id, RepositorySessionFactory.class ); + logger.info( "create RepositorySessionFactory instance of {}", repositorySessionFactory.getClass().getName() ); + return repositorySessionFactory; + } + + public String getId() + { + return id; + } + + public void setId( String id ) + { + this.id = id; + } + + public Properties getProperties() + { + return properties; + } + + public void setProperties( Properties properties ) + { + this.properties = properties; + } +} diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/resources/META-INF/spring-context.xml b/archiva-modules/metadata/metadata-repository-api/src/main/resources/META-INF/spring-context.xml index 6e1dc2489..e7c511811 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/main/resources/META-INF/spring-context.xml +++ b/archiva-modules/metadata/metadata-repository-api/src/main/resources/META-INF/spring-context.xml @@ -21,14 +21,22 @@ + + + + + + \ No newline at end of file diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/resources/archiva-runtime.properties b/archiva-modules/metadata/metadata-repository-api/src/main/resources/archiva-runtime.properties new file mode 100644 index 000000000..d41614e69 --- /dev/null +++ b/archiva-modules/metadata/metadata-repository-api/src/main/resources/archiva-runtime.properties @@ -0,0 +1,20 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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. +# +#default value +archiva.repositorySessionFactory.id=jcr \ No newline at end of file diff --git a/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/DefaultCassandraArchivaManager.java b/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/DefaultCassandraArchivaManager.java index 26ffb080a..0c6a967eb 100644 --- a/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/DefaultCassandraArchivaManager.java +++ b/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/DefaultCassandraArchivaManager.java @@ -31,6 +31,8 @@ import me.prettyprint.hector.api.ddl.ColumnFamilyDefinition; import me.prettyprint.hector.api.ddl.ColumnIndexType; import me.prettyprint.hector.api.ddl.ComparatorType; import me.prettyprint.hector.api.factory.HFactory; +import org.apache.archiva.metadata.repository.RepositorySessionFactoryBean; +import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; @@ -89,35 +91,40 @@ public class DefaultCassandraArchivaManager private String dependencyFamilyName = "dependency"; @Value("${cassandra.host}") - private String cassandraHost;// = System.getProperty( "cassandra.host", "localhost" ); + private String cassandraHost; @Value("${cassandra.port}") - private String cassandraPort;// = System.getProperty( "cassandra.port", "9160" ); + private String cassandraPort; @Value("${cassandra.maxActive}") - private int maxActive;// = Integer.getInteger( "cassandra.maxActive", 20 ); + private int maxActive; @Value("${cassandra.readConsistencyLevel}") - private String readConsistencyLevel;// = - //System.getProperty( "cassandra.readConsistencyLevel", HConsistencyLevel.QUORUM.name() ); + private String readConsistencyLevel; @Value("${cassandra.writeConsistencyLevel}") private String writeConsistencyLevel; - //= System.getProperty( "cassandra.writeConsistencyLevel", HConsistencyLevel.QUORUM.name() ); @Value("${cassandra.replicationFactor}") - private int replicationFactor;// = Integer.getInteger( "cassandra.replicationFactor", 1 ); + private int replicationFactor; @Value("${cassandra.keyspace.name}") - private String keyspaceName;// = System.getProperty( "cassandra.keyspace.name", KEYSPACE_NAME ); + private String keyspaceName; @Value("${cassandra.cluster.name}") - private String clusterName;// = System.getProperty( "cassandra.cluster.name", CLUSTER_NAME ); + private String clusterName; + + @Inject + private RepositorySessionFactoryBean repositorySessionFactoryBean; @PostConstruct public void initialize() { - + // skip initialisation if not cassandra + if ( !StringUtils.equals( repositorySessionFactoryBean.getId(), "cassandra" ) ) + { + return; + } final CassandraHostConfigurator configurator = new CassandraHostConfigurator( cassandraHost + ":" + cassandraPort ); configurator.setMaxActive( maxActive ); diff --git a/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrRepositorySessionFactory.java b/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrRepositorySessionFactory.java index 2f41d4d6f..4ae693ccf 100644 --- a/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrRepositorySessionFactory.java +++ b/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrRepositorySessionFactory.java @@ -51,20 +51,11 @@ public class JcrRepositorySessionFactory @Inject private ApplicationContext applicationContext; - /** - * - */ private Map metadataFacetFactories; - /** - * - */ @Inject private Repository repository; - /** - * - */ @Inject private MetadataResolver metadataResolver; -- cgit v1.2.3