Modified: 
isis/trunk/framework/core/metamodel/src/test/java/org/apache/isis/core/metamodel/specloader/specimpl/ObjectAssociationAbstractTest_alwaysHidden.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/core/metamodel/src/test/java/org/apache/isis/core/metamodel/specloader/specimpl/ObjectAssociationAbstractTest_alwaysHidden.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/core/metamodel/src/test/java/org/apache/isis/core/metamodel/specloader/specimpl/ObjectAssociationAbstractTest_alwaysHidden.java
 (original)
+++ 
isis/trunk/framework/core/metamodel/src/test/java/org/apache/isis/core/metamodel/specloader/specimpl/ObjectAssociationAbstractTest_alwaysHidden.java
 Tue Nov 13 22:16:57 2012
@@ -33,6 +33,7 @@ import org.apache.isis.applib.annotation
 import org.apache.isis.core.commons.authentication.AuthenticationSession;
 import org.apache.isis.core.metamodel.adapter.ObjectAdapter;
 import org.apache.isis.core.metamodel.consent.InteractionInvocationMethod;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facetapi.Facet;
 import org.apache.isis.core.metamodel.facetapi.FeatureType;
 import org.apache.isis.core.metamodel.facets.FacetedMethod;
@@ -75,7 +76,7 @@ public class ObjectAssociationAbstractTe
     public void setup() {
         facetedMethod = FacetedMethod.createForProperty(Customer.class, 
"firstName");
         
-        objectAssociation = new ObjectAssociationAbstract(facetedMethod, 
FeatureType.PROPERTY, objectSpecification, new ObjectMemberContext(null, null, 
null, null, null)) {
+        objectAssociation = new ObjectAssociationAbstract(facetedMethod, 
FeatureType.PROPERTY, objectSpecification, new 
ObjectMemberContext(DeploymentCategory.PRODUCTION, null, null, null, null, 
null)) {
 
             @Override
             public ObjectAdapter get(final ObjectAdapter fromObject) {

Modified: 
isis/trunk/framework/core/metamodel/src/test/java/org/apache/isis/core/metamodel/testspec/ObjectSpecificationStub.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/core/metamodel/src/test/java/org/apache/isis/core/metamodel/testspec/ObjectSpecificationStub.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/core/metamodel/src/test/java/org/apache/isis/core/metamodel/testspec/ObjectSpecificationStub.java
 (original)
+++ 
isis/trunk/framework/core/metamodel/src/test/java/org/apache/isis/core/metamodel/testspec/ObjectSpecificationStub.java
 Tue Nov 13 22:16:57 2012
@@ -36,6 +36,7 @@ import org.apache.isis.core.metamodel.ad
 import org.apache.isis.core.metamodel.consent.Consent;
 import org.apache.isis.core.metamodel.consent.InteractionInvocationMethod;
 import org.apache.isis.core.metamodel.consent.InteractionResult;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facetapi.FacetHolderImpl;
 import org.apache.isis.core.metamodel.facetapi.FeatureType;
 import org.apache.isis.core.metamodel.facets.object.immutable.ImmutableFacet;
@@ -426,7 +427,7 @@ public class ObjectSpecificationStub ext
     }
 
     @Override
-    public ObjectValidityContext createValidityInteractionContext(final 
AuthenticationSession session, final InteractionInvocationMethod 
invocationMethod, final ObjectAdapter targetObjectAdapter) {
+    public ObjectValidityContext 
createValidityInteractionContext(DeploymentCategory deploymentCategory, final 
AuthenticationSession session, final InteractionInvocationMethod 
invocationMethod, final ObjectAdapter targetObjectAdapter) {
         return null;
     }
 

Modified: 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetAbstract.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetAbstract.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetAbstract.java
 (original)
+++ 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetAbstract.java
 Tue Nov 13 22:16:57 2012
@@ -25,6 +25,7 @@ import org.apache.isis.core.commons.auth
 import org.apache.isis.core.commons.lang.ClassUtil;
 import org.apache.isis.core.metamodel.adapter.ObjectAdapter;
 import org.apache.isis.core.metamodel.adapter.mgr.AdapterManager;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facetapi.FacetAbstract;
 import org.apache.isis.core.metamodel.facetapi.FacetHolder;
 import org.apache.isis.core.metamodel.facets.object.parseable.ParseableFacet;
@@ -37,17 +38,17 @@ public abstract class ParseableFacetAbst
     // to delegate to
     private final ParseableFacetUsingParser parseableFacetUsingParser;
 
-    public ParseableFacetAbstract(final String candidateParserName, final 
Class<?> candidateParserClass, final FacetHolder holder, final 
AuthenticationSessionProvider authenticationSessionProvider, final 
ServicesInjector dependencyInjector, final AdapterManager adapterManager) {
+    public ParseableFacetAbstract(final String candidateParserName, final 
Class<?> candidateParserClass, final FacetHolder holder, DeploymentCategory 
deploymentCategory, final AuthenticationSessionProvider 
authenticationSessionProvider, final ServicesInjector dependencyInjector, final 
AdapterManager adapterManager) {
         super(ParseableFacet.class, holder, Derivation.NOT_DERIVED);
 
         this.parserClass = ParserUtil.parserOrNull(candidateParserClass, 
candidateParserName);
         this.parseableFacetUsingParser = isValid()?
-                createParser(holder, authenticationSessionProvider, 
dependencyInjector, adapterManager):null;
+                createParser(holder, deploymentCategory, 
authenticationSessionProvider, dependencyInjector, adapterManager):null;
     }
 
-    private ParseableFacetUsingParser createParser(final FacetHolder holder, 
final AuthenticationSessionProvider authenticationSessionProvider, final 
ServicesInjector dependencyInjector, final AdapterManager adapterManager) {
+    private ParseableFacetUsingParser createParser(final FacetHolder holder, 
DeploymentCategory deploymentCategory, final AuthenticationSessionProvider 
authenticationSessionProvider, final ServicesInjector dependencyInjector, final 
AdapterManager adapterManager) {
         final Parser<?> parser = (Parser<?>) 
ClassUtil.newInstance(parserClass, FacetHolder.class, holder);
-        return new ParseableFacetUsingParser(parser, holder, 
authenticationSessionProvider, dependencyInjector, adapterManager);
+        return new ParseableFacetUsingParser(parser, holder, 
deploymentCategory, authenticationSessionProvider, dependencyInjector, 
adapterManager);
     }
 
     /**

Modified: 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetAnnotation.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetAnnotation.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetAnnotation.java
 (original)
+++ 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetAnnotation.java
 Tue Nov 13 22:16:57 2012
@@ -24,6 +24,7 @@ import org.apache.isis.core.commons.auth
 import org.apache.isis.core.commons.config.IsisConfiguration;
 import org.apache.isis.core.commons.lang.StringUtils;
 import org.apache.isis.core.metamodel.adapter.mgr.AdapterManager;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facetapi.FacetHolder;
 import org.apache.isis.core.metamodel.runtimecontext.ServicesInjector;
 
@@ -43,12 +44,12 @@ public class ParseableFacetAnnotation ex
         return annotation.parserClass();
     }
 
-    public ParseableFacetAnnotation(final Class<?> annotatedClass, final 
IsisConfiguration configuration, final FacetHolder holder, final 
AuthenticationSessionProvider authenticationSessionProvider, final 
AdapterManager adapterManager, final ServicesInjector dependencyInjector) {
-        this(parserName(annotatedClass, configuration), 
parserClass(annotatedClass), holder, authenticationSessionProvider, 
adapterManager, dependencyInjector);
+    public ParseableFacetAnnotation(final Class<?> annotatedClass, final 
IsisConfiguration configuration, final FacetHolder holder, DeploymentCategory 
deploymentCategory, final AuthenticationSessionProvider 
authenticationSessionProvider, final AdapterManager adapterManager, final 
ServicesInjector dependencyInjector) {
+        this(parserName(annotatedClass, configuration), 
parserClass(annotatedClass), holder, deploymentCategory, 
authenticationSessionProvider, adapterManager, dependencyInjector);
     }
 
-    private ParseableFacetAnnotation(final String candidateParserName, final 
Class<?> candidateParserClass, final FacetHolder holder, final 
AuthenticationSessionProvider authenticationSessionProvider, final 
AdapterManager adapterManager, final ServicesInjector dependencyInjector) {
-        super(candidateParserName, candidateParserClass, holder, 
authenticationSessionProvider, dependencyInjector, adapterManager);
+    private ParseableFacetAnnotation(final String candidateParserName, final 
Class<?> candidateParserClass, final FacetHolder holder, DeploymentCategory 
deploymentCategory, final AuthenticationSessionProvider 
authenticationSessionProvider, final AdapterManager adapterManager, final 
ServicesInjector dependencyInjector) {
+        super(candidateParserName, candidateParserClass, holder, 
deploymentCategory, authenticationSessionProvider, dependencyInjector, 
adapterManager);
     }
 
 }

Modified: 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetFactory.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetFactory.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetFactory.java
 (original)
+++ 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetFactory.java
 Tue Nov 13 22:16:57 2012
@@ -27,15 +27,18 @@ import org.apache.isis.core.commons.conf
 import org.apache.isis.core.commons.lang.StringUtils;
 import org.apache.isis.core.metamodel.adapter.mgr.AdapterManager;
 import org.apache.isis.core.metamodel.adapter.mgr.AdapterManagerAware;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facetapi.FacetHolder;
 import org.apache.isis.core.metamodel.facetapi.FacetUtil;
 import org.apache.isis.core.metamodel.facetapi.FeatureType;
 import org.apache.isis.core.metamodel.facets.Annotations;
 import org.apache.isis.core.metamodel.facets.FacetFactoryAbstract;
+import org.apache.isis.core.metamodel.runtimecontext.RuntimeContext;
+import org.apache.isis.core.metamodel.runtimecontext.RuntimeContextAware;
 import org.apache.isis.core.metamodel.runtimecontext.ServicesInjector;
 import org.apache.isis.core.metamodel.runtimecontext.ServicesInjectorAware;
 
-public class ParseableFacetFactory extends FacetFactoryAbstract implements 
IsisConfigurationAware, AuthenticationSessionProviderAware, 
AdapterManagerAware, ServicesInjectorAware {
+public class ParseableFacetFactory extends FacetFactoryAbstract implements 
IsisConfigurationAware, AuthenticationSessionProviderAware, 
AdapterManagerAware, ServicesInjectorAware, RuntimeContextAware {
 
     private IsisConfiguration configuration;
 
@@ -43,6 +46,8 @@ public class ParseableFacetFactory exten
     private AdapterManager adapterManager;
     private ServicesInjector servicesInjector;
 
+    private RuntimeContext runtimeContext;
+
     public ParseableFacetFactory() {
         super(FeatureType.OBJECTS_ONLY);
     }
@@ -57,7 +62,7 @@ public class ParseableFacetFactory exten
 
         // create from annotation, if present
         if (annotation != null) {
-            final ParseableFacetAnnotation facet = new 
ParseableFacetAnnotation(cls, getIsisConfiguration(), holder, 
authenticationSessionProvider, adapterManager, servicesInjector);
+            final ParseableFacetAnnotation facet = new 
ParseableFacetAnnotation(cls, getIsisConfiguration(), holder, 
getDeploymentCategory(), authenticationSessionProvider, adapterManager, 
servicesInjector);
             if (facet.isValid()) {
                 return facet;
             }
@@ -66,7 +71,7 @@ public class ParseableFacetFactory exten
         // otherwise, try to create from configuration, if present
         final String parserName = ParserUtil.parserNameFromConfiguration(cls, 
getIsisConfiguration());
         if (!StringUtils.isNullOrEmpty(parserName)) {
-            final ParseableFacetFromConfiguration facet = new 
ParseableFacetFromConfiguration(parserName, holder, 
authenticationSessionProvider, servicesInjector, adapterManager);
+            final ParseableFacetFromConfiguration facet = new 
ParseableFacetFromConfiguration(parserName, holder, getDeploymentCategory(), 
authenticationSessionProvider, servicesInjector, adapterManager);
             if (facet.isValid()) {
                 return facet;
             }
@@ -79,6 +84,13 @@ public class ParseableFacetFactory exten
     // Dependencies (injected via setters since *Aware)
     // ////////////////////////////////////////////////////////////////////
 
+    /**
+     * Derived from {@link #setRuntimeContext(RuntimeContext)} (since {@link 
RuntimeContextAware}).
+     */
+    private DeploymentCategory getDeploymentCategory() {
+        return runtimeContext.getDeploymentCategory();
+    }
+
     public IsisConfiguration getIsisConfiguration() {
         return configuration;
     }
@@ -106,4 +118,9 @@ public class ParseableFacetFactory exten
         this.servicesInjector = dependencyInjector;
     }
 
+    @Override
+    public void setRuntimeContext(RuntimeContext runtimeContext) {
+        this.runtimeContext = runtimeContext;
+    }
+
 }

Modified: 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetFromConfiguration.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetFromConfiguration.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetFromConfiguration.java
 (original)
+++ 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetFromConfiguration.java
 Tue Nov 13 22:16:57 2012
@@ -21,12 +21,13 @@ package org.apache.isis.core.progmodel.f
 
 import 
org.apache.isis.core.commons.authentication.AuthenticationSessionProvider;
 import org.apache.isis.core.metamodel.adapter.mgr.AdapterManager;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facetapi.FacetHolder;
 import org.apache.isis.core.metamodel.runtimecontext.ServicesInjector;
 
 public class ParseableFacetFromConfiguration extends ParseableFacetAbstract {
 
-    public ParseableFacetFromConfiguration(final String candidateParserName, 
final FacetHolder holder, final AuthenticationSessionProvider 
authenticationSessionProvider, final ServicesInjector dependencyInjector, final 
AdapterManager adapterManager) {
-        super(candidateParserName, null, holder, 
authenticationSessionProvider, dependencyInjector, adapterManager);
+    public ParseableFacetFromConfiguration(final String candidateParserName, 
final FacetHolder holder, DeploymentCategory deploymentCategory, final 
AuthenticationSessionProvider authenticationSessionProvider, final 
ServicesInjector dependencyInjector, final AdapterManager adapterManager) {
+        super(candidateParserName, null, holder, deploymentCategory, 
authenticationSessionProvider, dependencyInjector, adapterManager);
     }
 }

Modified: 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetUsingParser.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetUsingParser.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetUsingParser.java
 (original)
+++ 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetUsingParser.java
 Tue Nov 13 22:16:57 2012
@@ -30,6 +30,7 @@ import org.apache.isis.core.metamodel.ad
 import org.apache.isis.core.metamodel.adapter.util.AdapterUtils;
 import org.apache.isis.core.metamodel.consent.InteractionInvocationMethod;
 import org.apache.isis.core.metamodel.consent.InteractionResultSet;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facetapi.FacetAbstract;
 import org.apache.isis.core.metamodel.facetapi.FacetHolder;
 import org.apache.isis.core.metamodel.facets.object.parseable.ParseableFacet;
@@ -45,13 +46,17 @@ import org.apache.isis.core.metamodel.sp
 public class ParseableFacetUsingParser extends FacetAbstract implements 
ParseableFacet {
 
     private final Parser<?> parser;
+    private final DeploymentCategory deploymentCategory;
+    private final AuthenticationSessionProvider authenticationSessionProvider;
     private final ServicesInjector dependencyInjector;
     private final AdapterManager adapterManager;
-    private final AuthenticationSessionProvider authenticationSessionProvider;
 
-    public ParseableFacetUsingParser(final Parser<?> parser, final FacetHolder 
holder, final AuthenticationSessionProvider authenticationSessionProvider, 
final ServicesInjector dependencyInjector, final AdapterManager adapterManager) 
{
+    public ParseableFacetUsingParser(
+            final Parser<?> parser, final FacetHolder holder, 
+            final DeploymentCategory deploymentCategory, final 
AuthenticationSessionProvider authenticationSessionProvider, final 
ServicesInjector dependencyInjector, final AdapterManager adapterManager) {
         super(ParseableFacet.class, holder, Derivation.NOT_DERIVED);
         this.parser = parser;
+        this.deploymentCategory = deploymentCategory;
         this.authenticationSessionProvider = authenticationSessionProvider;
         this.dependencyInjector = dependencyInjector;
         this.adapterManager = adapterManager;
@@ -73,7 +78,7 @@ public class ParseableFacetUsingParser e
         // (eg pick up any @RegEx on value type)
         if (getFacetHolder().containsFacet(ValueFacet.class)) {
             final ObjectAdapter entryAdapter = 
getAdapterManager().adapterFor(entry);
-            final ParseValueContext parseValueContext = new 
ParseValueContext(getAuthenticationSessionProvider().getAuthenticationSession(),
 InteractionInvocationMethod.BY_USER, contextAdapter, 
getIdentified().getIdentifier(), entryAdapter);
+            final ParseValueContext parseValueContext = new 
ParseValueContext(deploymentCategory, 
getAuthenticationSessionProvider().getAuthenticationSession(), 
InteractionInvocationMethod.BY_USER, contextAdapter, 
getIdentified().getIdentifier(), entryAdapter);
             validate(parseValueContext);
         }
 
@@ -91,7 +96,7 @@ public class ParseableFacetUsingParser e
             // (eg pick up any validate() methods on it)
             final ObjectAdapter adapter = 
getAdapterManager().adapterFor(parsed);
             final ObjectSpecification specification = 
adapter.getSpecification();
-            final ObjectValidityContext validateContext = 
specification.createValidityInteractionContext(getAuthenticationSessionProvider().getAuthenticationSession(),
 InteractionInvocationMethod.BY_USER, adapter);
+            final ObjectValidityContext validateContext = 
specification.createValidityInteractionContext(deploymentCategory, 
getAuthenticationSessionProvider().getAuthenticationSession(), 
InteractionInvocationMethod.BY_USER, adapter);
             validate(validateContext);
 
             return adapter;

Modified: 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/value/ValueFacetAbstract.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/value/ValueFacetAbstract.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/value/ValueFacetAbstract.java
 (original)
+++ 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/value/ValueFacetAbstract.java
 Tue Nov 13 22:16:57 2012
@@ -27,6 +27,7 @@ import org.apache.isis.core.commons.auth
 import org.apache.isis.core.commons.config.IsisConfiguration;
 import org.apache.isis.core.commons.lang.ClassUtil;
 import org.apache.isis.core.metamodel.adapter.mgr.AdapterManager;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facetapi.Facet;
 import org.apache.isis.core.metamodel.facetapi.FacetHolder;
 import org.apache.isis.core.metamodel.facetapi.FacetHolderImpl;
@@ -127,7 +128,7 @@ public abstract class ValueFacetAbstract
             // Parser
             final Parser<?> parser = semanticsProvider.getParser();
             if (parser != null) {
-                facetHolder.addFacet(new ParseableFacetUsingParser(parser, 
holder, getAuthenticationSessionProvider(), getDependencyInjector(), 
getAdapterMap()));
+                facetHolder.addFacet(new ParseableFacetUsingParser(parser, 
holder, getDeploymentCategory(context), getAuthenticationSessionProvider(), 
getDependencyInjector(), getAdapterMap()));
                 facetHolder.addFacet(new TitleFacetUsingParser(parser, holder, 
getDependencyInjector()));
                 facetHolder.addFacet(new TypicalLengthFacetUsingParser(parser, 
holder, getDependencyInjector()));
             }
@@ -161,6 +162,10 @@ public abstract class ValueFacetAbstract
     // Dependencies (from constructor)
     // /////////////////////////////////////////
 
+    protected DeploymentCategory getDeploymentCategory(final 
ValueSemanticsProviderContext context) {
+        return context.getDeploymentCategory();
+    }
+
     public AdapterManager getAdapterMap() {
         return context.getAdapterManager();
     }

Modified: 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/value/ValueSemanticsProviderContext.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/value/ValueSemanticsProviderContext.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/value/ValueSemanticsProviderContext.java
 (original)
+++ 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/value/ValueSemanticsProviderContext.java
 Tue Nov 13 22:16:57 2012
@@ -18,22 +18,31 @@ package org.apache.isis.core.progmodel.f
 
 import 
org.apache.isis.core.commons.authentication.AuthenticationSessionProvider;
 import org.apache.isis.core.metamodel.adapter.mgr.AdapterManager;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.runtimecontext.ServicesInjector;
 import org.apache.isis.core.metamodel.spec.SpecificationLoader;
 
 public class ValueSemanticsProviderContext {
+    
+    private final DeploymentCategory deploymentCategory;
     private final AuthenticationSessionProvider authenticationSessionProvider;
     private final SpecificationLoader specificationLookup;
     private final AdapterManager adapterManager;
     private final ServicesInjector dependencyInjector;
 
-    public ValueSemanticsProviderContext(final AuthenticationSessionProvider 
authenticationSessionProvider, final SpecificationLoader specificationLookup, 
final AdapterManager adapterManager, final ServicesInjector dependencyInjector) 
{
+    public ValueSemanticsProviderContext(
+            final DeploymentCategory deploymentCategory, final 
AuthenticationSessionProvider authenticationSessionProvider, final 
SpecificationLoader specificationLookup, final AdapterManager adapterManager, 
final ServicesInjector dependencyInjector) {
+        this.deploymentCategory = deploymentCategory;
         this.authenticationSessionProvider = authenticationSessionProvider;
         this.specificationLookup = specificationLookup;
         this.adapterManager = adapterManager;
         this.dependencyInjector = dependencyInjector;
     }
 
+    public DeploymentCategory getDeploymentCategory() {
+        return deploymentCategory;
+    }
+    
     public AuthenticationSessionProvider getAuthenticationSessionProvider() {
         return authenticationSessionProvider;
     }

Modified: 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/value/ValueUsingValueSemanticsProviderFacetFactory.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/value/ValueUsingValueSemanticsProviderFacetFactory.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/value/ValueUsingValueSemanticsProviderFacetFactory.java
 (original)
+++ 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/value/ValueUsingValueSemanticsProviderFacetFactory.java
 Tue Nov 13 22:16:57 2012
@@ -25,19 +25,24 @@ import org.apache.isis.core.commons.conf
 import org.apache.isis.core.commons.config.IsisConfigurationAware;
 import org.apache.isis.core.metamodel.adapter.mgr.AdapterManager;
 import org.apache.isis.core.metamodel.adapter.mgr.AdapterManagerAware;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facetapi.Facet;
 import org.apache.isis.core.metamodel.facetapi.FacetUtil;
 import org.apache.isis.core.metamodel.facetapi.FeatureType;
 import org.apache.isis.core.metamodel.facets.FacetFactoryAbstract;
+import org.apache.isis.core.metamodel.runtimecontext.RuntimeContext;
+import org.apache.isis.core.metamodel.runtimecontext.RuntimeContextAware;
 import org.apache.isis.core.metamodel.runtimecontext.ServicesInjector;
 import org.apache.isis.core.metamodel.runtimecontext.ServicesInjectorAware;
 
-public abstract class ValueUsingValueSemanticsProviderFacetFactory<T> extends 
FacetFactoryAbstract implements IsisConfigurationAware, 
AuthenticationSessionProviderAware, AdapterManagerAware, ServicesInjectorAware {
+public abstract class ValueUsingValueSemanticsProviderFacetFactory<T> extends 
FacetFactoryAbstract implements IsisConfigurationAware, 
AuthenticationSessionProviderAware, AdapterManagerAware, ServicesInjectorAware, 
RuntimeContextAware {
 
     private IsisConfiguration configuration;
+    private RuntimeContext runtimeContext;
     private AuthenticationSessionProvider authenticationSessionProvider;
     private AdapterManager adapterManager;
     private ServicesInjector servicesInjector;
+
     /**
      * Lazily created.
      */
@@ -56,13 +61,21 @@ public abstract class ValueUsingValueSem
     // Dependencies (injected via setter)
     // ////////////////////////////////////////////////////
 
+    /**
+     * Derived from {@link #setRuntimeContext(RuntimeContext)} (since {@link 
RuntimeContextAware}).
+     */
+    private DeploymentCategory getDeploymentCategory() {
+        return runtimeContext.getDeploymentCategory();
+    }
+
+
     public IsisConfiguration getConfiguration() {
         return configuration;
     }
 
     public ValueSemanticsProviderContext getContext() {
         if (context == null) {
-            context = new 
ValueSemanticsProviderContext(authenticationSessionProvider, 
getSpecificationLoader(), adapterManager, servicesInjector);
+            context = new 
ValueSemanticsProviderContext(getDeploymentCategory(), 
authenticationSessionProvider, getSpecificationLoader(), adapterManager, 
servicesInjector);
         }
         return context;
     }
@@ -87,4 +100,9 @@ public abstract class ValueUsingValueSem
         this.servicesInjector = dependencyInjector;
     }
 
+    @Override
+    public void setRuntimeContext(RuntimeContext runtimeContext) {
+        this.runtimeContext = runtimeContext;
+    }
+
 }

Modified: 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/value/annotation/ValueFacetFactory.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/value/annotation/ValueFacetFactory.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/value/annotation/ValueFacetFactory.java
 (original)
+++ 
isis/trunk/framework/core/progmodel/src/main/java/org/apache/isis/core/progmodel/facets/object/value/annotation/ValueFacetFactory.java
 Tue Nov 13 22:16:57 2012
@@ -29,6 +29,7 @@ import org.apache.isis.core.commons.conf
 import org.apache.isis.core.commons.lang.StringUtils;
 import org.apache.isis.core.metamodel.adapter.mgr.AdapterManager;
 import org.apache.isis.core.metamodel.adapter.mgr.AdapterManagerAware;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facetapi.FacetHolder;
 import org.apache.isis.core.metamodel.facetapi.FacetUtil;
 import org.apache.isis.core.metamodel.facetapi.FeatureType;
@@ -42,6 +43,8 @@ import org.apache.isis.core.metamodel.fa
 import org.apache.isis.core.metamodel.facets.object.parseable.ParseableFacet;
 import org.apache.isis.core.metamodel.facets.object.title.TitleFacet;
 import org.apache.isis.core.metamodel.facets.object.value.ValueFacet;
+import org.apache.isis.core.metamodel.runtimecontext.RuntimeContext;
+import org.apache.isis.core.metamodel.runtimecontext.RuntimeContextAware;
 import org.apache.isis.core.metamodel.runtimecontext.ServicesInjector;
 import org.apache.isis.core.metamodel.runtimecontext.ServicesInjectorAware;
 import 
org.apache.isis.core.progmodel.facets.object.value.ValueFacetFromConfiguration;
@@ -74,9 +77,10 @@ import org.apache.isis.core.progmodel.fa
  * <p>
  * Note that {@link ParentedFacet} is <i>not</i> installed.
  */
-public class ValueFacetFactory extends FacetFactoryAbstract implements 
IsisConfigurationAware, AuthenticationSessionProviderAware, 
AdapterManagerAware, ServicesInjectorAware {
+public class ValueFacetFactory extends FacetFactoryAbstract implements 
IsisConfigurationAware, AuthenticationSessionProviderAware, 
AdapterManagerAware, ServicesInjectorAware, RuntimeContextAware {
 
     private IsisConfiguration configuration;
+    private RuntimeContext runtimeContext;
     private AuthenticationSessionProvider authenticationSessionProvider;
     private AdapterManager adapterManager;
     private ServicesInjector servicesInjector;
@@ -118,13 +122,20 @@ public class ValueFacetFactory extends F
     }
 
     protected ValueSemanticsProviderContext 
createValueSemanticsProviderContext() {
-        return new 
ValueSemanticsProviderContext(getAuthenticationSessionProvider(), 
getSpecificationLoader(), getAdapterManager(), getServicesInjector());
+        return new ValueSemanticsProviderContext(getDeploymentCategory(), 
getAuthenticationSessionProvider(), getSpecificationLoader(), 
getAdapterManager(), getServicesInjector());
     }
 
     // ////////////////////////////////////////////////////////////////////
     // Injected
     // ////////////////////////////////////////////////////////////////////
 
+    /**
+     * Derived from {@link #setRuntimeContext(RuntimeContext)} (since {@link 
RuntimeContextAware}).
+     */
+    private DeploymentCategory getDeploymentCategory() {
+        return runtimeContext.getDeploymentCategory();
+    }
+
     public IsisConfiguration getIsisConfiguration() {
         return configuration;
     }
@@ -161,4 +172,9 @@ public class ValueFacetFactory extends F
         this.servicesInjector = dependencyInjector;
     }
 
+    @Override
+    public void setRuntimeContext(RuntimeContext runtimeContext) {
+        this.runtimeContext = runtimeContext;
+    }
+
 }

Modified: 
isis/trunk/framework/core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetFactoryTest.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetFactoryTest.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetFactoryTest.java
 (original)
+++ 
isis/trunk/framework/core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetFactoryTest.java
 Tue Nov 13 22:16:57 2012
@@ -23,8 +23,10 @@ import org.apache.isis.applib.adapters.P
 import org.apache.isis.applib.annotation.Parseable;
 import org.apache.isis.applib.profiles.Localization;
 import org.apache.isis.core.commons.config.IsisConfigurationDefault;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facets.FacetFactory.ProcessClassContext;
 import org.apache.isis.core.metamodel.facets.object.parseable.ParseableFacet;
+import 
org.apache.isis.core.metamodel.runtimecontext.noruntime.RuntimeContextNoRuntime;
 import org.apache.isis.core.progmodel.facets.AbstractFacetFactoryTest;
 
 public class ParseableFacetFactoryTest extends AbstractFacetFactoryTest {
@@ -39,6 +41,7 @@ public class ParseableFacetFactoryTest e
         facetFactory = new ParseableFacetFactory();
         isisConfigurationDefault = new IsisConfigurationDefault();
         facetFactory.setConfiguration(isisConfigurationDefault);
+        facetFactory.setRuntimeContext(new 
RuntimeContextNoRuntime(DeploymentCategory.PRODUCTION));
     }
 
     @Override

Modified: 
isis/trunk/framework/core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetUsingParserTest.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetUsingParserTest.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetUsingParserTest.java
 (original)
+++ 
isis/trunk/framework/core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/object/parseable/ParseableFacetUsingParserTest.java
 Tue Nov 13 22:16:57 2012
@@ -32,6 +32,7 @@ import org.apache.isis.applib.adapters.P
 import org.apache.isis.applib.profiles.Localization;
 import 
org.apache.isis.core.commons.authentication.AuthenticationSessionProvider;
 import org.apache.isis.core.metamodel.adapter.mgr.AdapterManager;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facetapi.FacetHolder;
 import 
org.apache.isis.core.metamodel.facets.object.parseable.TextEntryParseException;
 import org.apache.isis.core.metamodel.facets.object.value.ValueFacet;
@@ -105,7 +106,7 @@ public class ParseableFacetUsingParserTe
                 return null;
             }
         };
-        parseableFacetUsingParser = new ParseableFacetUsingParser(parser, 
mockFacetHolder, mockAuthenticationSessionProvider, mockDependencyInjector, 
mockAdapterManager);
+        parseableFacetUsingParser = new ParseableFacetUsingParser(parser, 
mockFacetHolder, DeploymentCategory.PRODUCTION, 
mockAuthenticationSessionProvider, mockDependencyInjector, mockAdapterManager);
     }
 
     @Ignore

Modified: 
isis/trunk/framework/core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/object/value/ValueFacetFactoryTest.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/object/value/ValueFacetFactoryTest.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/object/value/ValueFacetFactoryTest.java
 (original)
+++ 
isis/trunk/framework/core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/object/value/ValueFacetFactoryTest.java
 Tue Nov 13 22:16:57 2012
@@ -26,6 +26,7 @@ import org.apache.isis.applib.adapters.P
 import org.apache.isis.applib.annotation.Value;
 import org.apache.isis.applib.profiles.Localization;
 import org.apache.isis.core.commons.config.IsisConfigurationDefault;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facets.FacetFactory.ProcessClassContext;
 import org.apache.isis.core.metamodel.facets.ebc.EqualByContentFacet;
 import org.apache.isis.core.metamodel.facets.object.encodeable.EncodableFacet;
@@ -34,6 +35,7 @@ import org.apache.isis.core.metamodel.fa
 import org.apache.isis.core.metamodel.facets.object.title.TitleFacet;
 import org.apache.isis.core.metamodel.facets.object.value.ValueFacet;
 import org.apache.isis.core.metamodel.facets.typicallen.TypicalLengthFacet;
+import 
org.apache.isis.core.metamodel.runtimecontext.noruntime.RuntimeContextNoRuntime;
 import org.apache.isis.core.progmodel.facets.AbstractFacetFactoryTest;
 import org.apache.isis.core.progmodel.facets.object.defaults.DefaultedFacet;
 import 
org.apache.isis.core.progmodel.facets.object.value.annotation.ValueFacetAnnotation;
@@ -51,6 +53,7 @@ public class ValueFacetFactoryTest exten
         facetFactory = new ValueFacetFactory();
         isisConfigurationDefault = new IsisConfigurationDefault();
         facetFactory.setConfiguration(isisConfigurationDefault);
+        facetFactory.setRuntimeContext(new 
RuntimeContextNoRuntime(DeploymentCategory.PRODUCTION));
     }
 
     @Override

Modified: 
isis/trunk/framework/core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/value/ValueSemanticsProviderAbstractTestCase.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/value/ValueSemanticsProviderAbstractTestCase.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/value/ValueSemanticsProviderAbstractTestCase.java
 (original)
+++ 
isis/trunk/framework/core/progmodel/src/test/java/org/apache/isis/core/progmodel/facets/value/ValueSemanticsProviderAbstractTestCase.java
 Tue Nov 13 22:16:57 2012
@@ -38,6 +38,7 @@ import org.apache.isis.core.commons.auth
 import org.apache.isis.core.commons.config.IsisConfiguration;
 import org.apache.isis.core.metamodel.adapter.ObjectAdapter;
 import org.apache.isis.core.metamodel.adapter.mgr.AdapterManager;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facetapi.FacetHolder;
 import org.apache.isis.core.metamodel.facets.object.encodeable.EncodableFacet;
 import org.apache.isis.core.metamodel.facets.object.parseable.ParseableFacet;
@@ -118,7 +119,7 @@ public abstract class ValueSemanticsProv
     protected void setValue(final ValueSemanticsProviderAndFacetAbstract<?> 
value) {
         this.valueSemanticsProvider = value;
         this.encodeableFacet = new EncodableFacetUsingEncoderDecoder(value, 
mockFacetHolder, mockAdapterManager, mockDependencyInjector);
-        this.parseableFacet = new ParseableFacetUsingParser(value, 
mockFacetHolder, mockAuthenticationSessionProvider, mockDependencyInjector, 
mockAdapterManager);
+        this.parseableFacet = new ParseableFacetUsingParser(value, 
mockFacetHolder, DeploymentCategory.PRODUCTION, 
mockAuthenticationSessionProvider, mockDependencyInjector, mockAdapterManager);
     }
 
     protected ValueSemanticsProviderAndFacetAbstract<?> getValue() {

Modified: 
isis/trunk/framework/runtimes/dflt/runtime/src/main/java/org/apache/isis/runtimes/dflt/runtime/persistence/internal/RuntimeContextFromSession.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/runtimes/dflt/runtime/src/main/java/org/apache/isis/runtimes/dflt/runtime/persistence/internal/RuntimeContextFromSession.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/runtimes/dflt/runtime/src/main/java/org/apache/isis/runtimes/dflt/runtime/persistence/internal/RuntimeContextFromSession.java
 (original)
+++ 
isis/trunk/framework/runtimes/dflt/runtime/src/main/java/org/apache/isis/runtimes/dflt/runtime/persistence/internal/RuntimeContextFromSession.java
 Tue Nov 13 22:16:57 2012
@@ -44,6 +44,7 @@ import org.apache.isis.core.metamodel.ad
 import org.apache.isis.core.metamodel.adapter.mgr.AdapterManagerAware;
 import org.apache.isis.core.metamodel.adapter.oid.Oid;
 import org.apache.isis.core.metamodel.adapter.oid.TypedOid;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import 
org.apache.isis.core.metamodel.facets.collections.modify.CollectionFacetUtils;
 import org.apache.isis.core.metamodel.runtimecontext.RuntimeContextAbstract;
 import org.apache.isis.core.metamodel.runtimecontext.ServicesInjector;
@@ -354,6 +355,11 @@ public class RuntimeContextFromSession e
     // Dependencies (from context)
     // ///////////////////////////////////////////
 
+    @Override
+    public DeploymentCategory getDeploymentCategory() {
+        return IsisContext.getDeploymentType().getDeploymentCategory();
+    }
+
     private static PersistenceSession getPersistenceSession() {
         return IsisContext.getPersistenceSession();
     }
@@ -375,4 +381,5 @@ public class RuntimeContextFromSession e
     }
 
 
+
 }

Modified: 
isis/trunk/framework/runtimes/dflt/runtime/src/test/java/org/apache/isis/runtimes/dflt/runtime/system/ObjectActionImplTest.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/runtimes/dflt/runtime/src/test/java/org/apache/isis/runtimes/dflt/runtime/system/ObjectActionImplTest.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/runtimes/dflt/runtime/src/test/java/org/apache/isis/runtimes/dflt/runtime/system/ObjectActionImplTest.java
 (original)
+++ 
isis/trunk/framework/runtimes/dflt/runtime/src/test/java/org/apache/isis/runtimes/dflt/runtime/system/ObjectActionImplTest.java
 Tue Nov 13 22:16:57 2012
@@ -33,6 +33,7 @@ import org.apache.isis.core.commons.auth
 import org.apache.isis.core.metamodel.adapter.QuerySubmitter;
 import org.apache.isis.core.metamodel.adapter.ServicesProvider;
 import org.apache.isis.core.metamodel.adapter.mgr.AdapterManager;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facets.FacetedMethod;
 import org.apache.isis.core.metamodel.facets.named.NamedFacet;
 import org.apache.isis.core.metamodel.facets.named.NamedFacetAbstract;
@@ -99,7 +100,7 @@ public class ObjectActionImplTest {
             }
         });
 
-        action = new ObjectActionImpl(mockFacetedMethod, new 
ObjectMemberContext(mockAuthenticationSessionProvider, mockSpecificationLookup, 
mockAdapterManager, mockQuerySubmitter, mockCollectionTypeRegistry), 
mockServicesProvider);
+        action = new ObjectActionImpl(mockFacetedMethod, new 
ObjectMemberContext(DeploymentCategory.PRODUCTION, 
mockAuthenticationSessionProvider, mockSpecificationLookup, mockAdapterManager, 
mockQuerySubmitter, mockCollectionTypeRegistry), mockServicesProvider);
     }
 
     @Ignore // DKH

Modified: 
isis/trunk/framework/runtimes/dflt/runtime/src/test/java/org/apache/isis/runtimes/dflt/runtime/system/ObjectMemberAbstractTest.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/runtimes/dflt/runtime/src/test/java/org/apache/isis/runtimes/dflt/runtime/system/ObjectMemberAbstractTest.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/runtimes/dflt/runtime/src/test/java/org/apache/isis/runtimes/dflt/runtime/system/ObjectMemberAbstractTest.java
 (original)
+++ 
isis/trunk/framework/runtimes/dflt/runtime/src/test/java/org/apache/isis/runtimes/dflt/runtime/system/ObjectMemberAbstractTest.java
 Tue Nov 13 22:16:57 2012
@@ -35,6 +35,7 @@ import org.apache.isis.core.commons.auth
 import org.apache.isis.core.metamodel.adapter.ObjectAdapter;
 import org.apache.isis.core.metamodel.consent.Consent;
 import org.apache.isis.core.metamodel.consent.InteractionInvocationMethod;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facetapi.FeatureType;
 import org.apache.isis.core.metamodel.facets.FacetedMethod;
 import 
org.apache.isis.core.metamodel.facets.describedas.DescribedAsFacetAbstract;
@@ -206,7 +207,7 @@ class ObjectMemberAbstractImpl extends O
     }
 
     protected ObjectMemberAbstractImpl(final String id) {
-        super(FacetedMethod.createForProperty(Customer.class, "firstName"), 
FeatureType.PROPERTY, new ObjectMemberContext(null, null, null, null, null));
+        super(FacetedMethod.createForProperty(Customer.class, "firstName"), 
FeatureType.PROPERTY, new ObjectMemberContext(DeploymentCategory.PRODUCTION, 
null, null, null, null, null));
     }
 
     @Override
@@ -225,12 +226,12 @@ class ObjectMemberAbstractImpl extends O
 
     @Override
     public UsabilityContext<?> createUsableInteractionContext(final 
AuthenticationSession session, final InteractionInvocationMethod 
invocationMethod, final ObjectAdapter target, Where where) {
-        return new PropertyUsabilityContext(session, invocationMethod, target, 
getIdentifier(), where);
+        return new PropertyUsabilityContext(DeploymentCategory.PRODUCTION, 
session, invocationMethod, target, getIdentifier(), where);
     }
 
     @Override
     public VisibilityContext<?> createVisibleInteractionContext(final 
AuthenticationSession session, final InteractionInvocationMethod 
invocationMethod, final ObjectAdapter targetObjectAdapter, Where where) {
-        return new PropertyVisibilityContext(session, invocationMethod, 
targetObjectAdapter, getIdentifier(), where);
+        return new PropertyVisibilityContext(DeploymentCategory.PRODUCTION, 
session, invocationMethod, targetObjectAdapter, getIdentifier(), where);
     }
 
     // /////////////////////////////////////////////////////////////

Modified: 
isis/trunk/framework/runtimes/dflt/runtime/src/test/java/org/apache/isis/runtimes/dflt/runtime/system/OneToManyAssociationImplTest.java
URL: 
http://svn.apache.org/viewvc/isis/trunk/framework/runtimes/dflt/runtime/src/test/java/org/apache/isis/runtimes/dflt/runtime/system/OneToManyAssociationImplTest.java?rev=1408987&r1=1408986&r2=1408987&view=diff
==============================================================================
--- 
isis/trunk/framework/runtimes/dflt/runtime/src/test/java/org/apache/isis/runtimes/dflt/runtime/system/OneToManyAssociationImplTest.java
 (original)
+++ 
isis/trunk/framework/runtimes/dflt/runtime/src/test/java/org/apache/isis/runtimes/dflt/runtime/system/OneToManyAssociationImplTest.java
 Tue Nov 13 22:16:57 2012
@@ -34,6 +34,7 @@ import org.apache.isis.core.commons.auth
 import org.apache.isis.core.metamodel.adapter.ObjectAdapter;
 import org.apache.isis.core.metamodel.adapter.QuerySubmitter;
 import org.apache.isis.core.metamodel.adapter.mgr.AdapterManager;
+import org.apache.isis.core.metamodel.deployment.DeploymentCategory;
 import org.apache.isis.core.metamodel.facets.FacetedMethod;
 import 
org.apache.isis.core.metamodel.facets.collections.modify.CollectionAddToFacet;
 import org.apache.isis.core.metamodel.facets.named.NamedFacet;
@@ -90,7 +91,7 @@ public class OneToManyAssociationImplTes
         allowingPeerToReturnCollectionType();
         allowingPeerToReturnIdentifier();
         allowingSpecLoaderToReturnSpecs();
-        association = new OneToManyAssociationImpl(mockPeer, new 
ObjectMemberContext(mockAuthenticationSessionProvider, mockSpecificationLookup, 
mockAdapterManager, mockQuerySubmitter, mockCollectionTypeRegistry));
+        association = new OneToManyAssociationImpl(mockPeer, new 
ObjectMemberContext(DeploymentCategory.PRODUCTION, 
mockAuthenticationSessionProvider, mockSpecificationLookup, mockAdapterManager, 
mockQuerySubmitter, mockCollectionTypeRegistry));
     }
 
     private void allowingSpecLoaderToReturnSpecs() {


Reply via email to