001 /**
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.isis.core.progmodel.facets.object.value;
018
019 import org.apache.isis.core.commons.authentication.AuthenticationSessionProvider;
020 import org.apache.isis.core.metamodel.adapter.map.AdapterMap;
021 import org.apache.isis.core.metamodel.runtimecontext.DependencyInjector;
022 import org.apache.isis.core.metamodel.spec.SpecificationLookup;
023
024 public class ValueSemanticsProviderContext {
025 private final AuthenticationSessionProvider authenticationSessionProvider;
026 private final SpecificationLookup specificationLookup;
027 private final AdapterMap adapterManager;
028 private final DependencyInjector dependencyInjector;
029
030 public ValueSemanticsProviderContext(final AuthenticationSessionProvider authenticationSessionProvider,
031 final SpecificationLookup specificationLookup, final AdapterMap adapterManager,
032 final DependencyInjector dependencyInjector) {
033 this.authenticationSessionProvider = authenticationSessionProvider;
034 this.specificationLookup = specificationLookup;
035 this.adapterManager = adapterManager;
036 this.dependencyInjector = dependencyInjector;
037 }
038
039 public AuthenticationSessionProvider getAuthenticationSessionProvider() {
040 return authenticationSessionProvider;
041 }
042
043 public SpecificationLookup getSpecificationLookup() {
044 return specificationLookup;
045 }
046
047 public AdapterMap getAdapterMap() {
048 return adapterManager;
049 }
050
051 public DependencyInjector getDependencyInjector() {
052 return dependencyInjector;
053 }
054 }