myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r1461598 - in /myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_trinidad12/src/main/resources/META-INF/services: ./ org.apache.myfaces.extensions.cdi.core.api.activation.ClassDeactivator
Date Wed, 27 Mar 2013 14:22:11 GMT
Author: gpetracek
Date: Wed Mar 27 14:22:11 2013
New Revision: 1461598

URL: http://svn.apache.org/r1461598
Log:
EXTCDI-306 hint about the workaround

Added:
    myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_trinidad12/src/main/resources/META-INF/services/
    myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_trinidad12/src/main/resources/META-INF/services/org.apache.myfaces.extensions.cdi.core.api.activation.ClassDeactivator

Added: myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_trinidad12/src/main/resources/META-INF/services/org.apache.myfaces.extensions.cdi.core.api.activation.ClassDeactivator
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_trinidad12/src/main/resources/META-INF/services/org.apache.myfaces.extensions.cdi.core.api.activation.ClassDeactivator?rev=1461598&view=auto
==============================================================================
--- myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_trinidad12/src/main/resources/META-INF/services/org.apache.myfaces.extensions.cdi.core.api.activation.ClassDeactivator
(added)
+++ myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_trinidad12/src/main/resources/META-INF/services/org.apache.myfaces.extensions.cdi.core.api.activation.ClassDeactivator
Wed Mar 27 14:22:11 2013
@@ -0,0 +1,59 @@
+#####################################################################################
+# 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.
+#####################################################################################
+
+#####################################################################################
+### Description and sample implementation
+#####################################################################################
+
+##Some parts of Trinidad are only compatible with DefaultWindowHandler
+##and it's needed to deactivate CodiRenderKitFactory which is needed by the other implementations
of WindowHandler.
+##-> implement a custom ClassDeactivator - e.g.:
+
+#package org.apache.myfaces.examples.codi.trinidad.config;
+#
+#import org.apache.myfaces.extensions.cdi.core.api.activation.ClassDeactivator;
+#import org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.CodiRenderKitFactory;
+#
+#import java.util.HashSet;
+#import java.util.Set;
+#
+#public class TrinidadAwareClassDeactivator implements ClassDeactivator
+#{
+#    private static Set<Class> deactivatedClasses = new HashSet<Class>();
+#
+#    static
+#    {
+#        deactivatedClasses.add(CodiRenderKitFactory.class);
+#    }
+#
+#    public Set<Class> getDeactivatedClasses()
+#    {
+#        return deactivatedClasses;
+#    }
+#}
+
+#####################################################################################
+### Configuration for this service-loader file
+#####################################################################################
+#org.apache.myfaces.examples.codi.trinidad.config.TrinidadAwareClassDeactivator
+
+#####################################################################################
+### Additional hint
+#####################################################################################
+##Don't forget to remove '#' in the example above.
\ No newline at end of file



Mime
View raw message