001/*
002 *  Licensed to the Apache Software Foundation (ASF) under one
003 *  or more contributor license agreements.  See the NOTICE file
004 *  distributed with this work for additional information
005 *  regarding copyright ownership.  The ASF licenses this file
006 *  to you under the Apache License, Version 2.0 (the
007 *  "License"); you may not use this file except in compliance
008 *  with the License.  You may obtain a copy of the License at
009 *
010 *        http://www.apache.org/licenses/LICENSE-2.0
011 *
012 *  Unless required by applicable law or agreed to in writing,
013 *  software distributed under the License is distributed on an
014 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 *  KIND, either express or implied.  See the License for the
016 *  specific language governing permissions and limitations
017 *  under the License.
018 */
019
020package org.apache.isis.core.metamodel.specloader;
021
022import org.apache.isis.core.commons.config.ConfigurationConstants;
023import org.apache.isis.core.commons.config.IsisConfiguration;
024import org.apache.isis.core.metamodel.facetdecorator.FacetDecorator;
025import org.apache.isis.core.metamodel.facets.FacetFactory;
026import org.apache.isis.core.metamodel.progmodel.ProgrammingModel;
027import org.apache.isis.core.metamodel.specloader.validator.MetaModelValidator;
028
029public final class ReflectorConstants {
030
031    /**
032     * Key used to lookup implementation of {@link ProgrammingModel} in
033     * {@link IsisConfiguration}.
034     * 
035     * @see #FACET_FACTORY_INCLUDE_CLASS_NAME_LIST
036     * @see #FACET_FACTORY_EXCLUDE_CLASS_NAME_LIST
037     */
038    public static final String PROGRAMMING_MODEL_FACETS_CLASS_NAME = ConfigurationConstants.ROOT + "reflector.facets";
039    public static final String PROGRAMMING_MODEL_FACETS_CLASS_NAME_DEFAULT = "org.apache.isis.progmodels.dflt.ProgrammingModelFacetsJava5";
040
041    /**
042     * Key used to lookup implementation of {@link MetaModelValidator} in
043     * {@link IsisConfiguration}.
044     */
045    public static final String META_MODEL_VALIDATOR_CLASS_NAME = ConfigurationConstants.ROOT + "reflector.validator";
046    public static final String META_MODEL_VALIDATOR_CLASS_NAME_DEFAULT = "org.apache.isis.core.progmodel.metamodelvalidator.dflt.MetaModelValidatorDefault";
047
048
049    /**
050     * Key used to lookup comma-separated list of {@link FacetFactory}s to
051     * include (over and above those specified by
052     * {@link #PROGRAMMING_MODEL_FACETS_CLASS_NAME}.
053     * 
054     * @see #PROGRAMMING_MODEL_FACETS_CLASS_NAME
055     * @see #FACET_FACTORY_EXCLUDE_CLASS_NAME_LIST
056     */
057    public static final String FACET_FACTORY_INCLUDE_CLASS_NAME_LIST = ConfigurationConstants.ROOT + "reflector.facets.include";
058
059    /**
060     * Key used to lookup comma-separated list of {@link FacetFactory}s to
061     * exclude (that might otherwise be included specified by the
062     * {@link #PROGRAMMING_MODEL_FACETS_CLASS_NAME}.
063     * 
064     * @see #PROGRAMMING_MODEL_FACETS_CLASS_NAME
065     * @see #FACET_FACTORY_INCLUDE_CLASS_NAME_LIST
066     */
067    public static final String FACET_FACTORY_EXCLUDE_CLASS_NAME_LIST = ConfigurationConstants.ROOT + "reflector.facets.exclude";
068
069    /**
070     * Key used to lookup comma-separated list of {@link FacetDecorator}s.
071     */
072    public static final String FACET_DECORATOR_CLASS_NAMES = ConfigurationConstants.ROOT + "reflector.facet-decorators";
073
074    private ReflectorConstants() {
075    }
076
077}