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 */ 017package org.apache.isis.core.progmodel.facets.object.value; 018 019import org.apache.isis.core.commons.authentication.AuthenticationSessionProvider; 020import org.apache.isis.core.metamodel.adapter.mgr.AdapterManager; 021import org.apache.isis.core.metamodel.deployment.DeploymentCategory; 022import org.apache.isis.core.metamodel.runtimecontext.ServicesInjector; 023import org.apache.isis.core.metamodel.spec.SpecificationLoader; 024 025public class ValueSemanticsProviderContext { 026 027 private final DeploymentCategory deploymentCategory; 028 private final AuthenticationSessionProvider authenticationSessionProvider; 029 private final SpecificationLoader specificationLookup; 030 private final AdapterManager adapterManager; 031 private final ServicesInjector dependencyInjector; 032 033 public ValueSemanticsProviderContext( 034 final DeploymentCategory deploymentCategory, final AuthenticationSessionProvider authenticationSessionProvider, final SpecificationLoader specificationLookup, final AdapterManager adapterManager, final ServicesInjector dependencyInjector) { 035 this.deploymentCategory = deploymentCategory; 036 this.authenticationSessionProvider = authenticationSessionProvider; 037 this.specificationLookup = specificationLookup; 038 this.adapterManager = adapterManager; 039 this.dependencyInjector = dependencyInjector; 040 } 041 042 public DeploymentCategory getDeploymentCategory() { 043 return deploymentCategory; 044 } 045 046 public AuthenticationSessionProvider getAuthenticationSessionProvider() { 047 return authenticationSessionProvider; 048 } 049 050 public SpecificationLoader getSpecificationLookup() { 051 return specificationLookup; 052 } 053 054 public AdapterManager getAdapterManager() { 055 return adapterManager; 056 } 057 058 public ServicesInjector getDependencyInjector() { 059 return dependencyInjector; 060 } 061}