Permalink
Browse files

removing the mojarra code for push

  • Loading branch information...
1 parent 7f9c3ff commit e909017bbf457becec38793c3bf9d3a1a912594f @weblets weblets committed Nov 28, 2012
Showing with 1 addition and 2,079 deletions.
  1. +0 −63 extscript-core-root/extscript-mojarra/pom.xml
  2. +0 −10 extscript-core-root/extscript-mojarra/readme.txt
  3. +0 −75 .../src/main/java/org/apache/myfaces/extensions/scripting/jsf/facelet/ReroutingResourceResolver.java
  4. +0 −80 .../main/java/org/apache/myfaces/extensions/scripting/jsf/facelet/TagHandlerDelegateFactoryImpl.java
  5. +0 −82 ...rc/main/java/org/apache/myfaces/extensions/scripting/mojarra/adapters/ClassLoaderServiceImpl.java
  6. +0 −125 ...pt-mojarra/src/main/java/org/apache/myfaces/extensions/scripting/mojarra/adapters/MojarraSPI.java
  7. +0 −64 ...org/apache/myfaces/extensions/scripting/mojarra/annotation/MojarraBeanImplementationListener.java
  8. +0 −71 .../org/apache/myfaces/extensions/scripting/mojarra/facelet/ReloadingBehaviorTagHandlerDelegate.java
  9. +0 −110 ...org/apache/myfaces/extensions/scripting/mojarra/facelet/ReloadingComponentTagHandlerDelegate.java
  10. +0 −69 ...org/apache/myfaces/extensions/scripting/mojarra/facelet/ReloadingConverterTagHandlerDelegate.java
  11. +0 −68 ...org/apache/myfaces/extensions/scripting/mojarra/facelet/ReloadingValidatorTagHandlerDelegate.java
  12. +0 −130 ...ain/java/org/apache/myfaces/extensions/scripting/mojarra/facelet/support/BeanPropertyTagRule.java
  13. +0 −106 .../src/main/java/org/apache/myfaces/extensions/scripting/mojarra/facelet/support/ComponentRule.java
  14. +0 −107 ...apache/myfaces/extensions/scripting/mojarra/facelet/support/InvokeDynamicBeanPropertyTagRule.java
  15. +0 −49 ...a/src/main/java/org/apache/myfaces/extensions/scripting/mojarra/facelet/support/MetadataImpl.java
  16. +0 −36 ...src/main/java/org/apache/myfaces/extensions/scripting/mojarra/facelet/support/ParameterCheck.java
  17. +0 −50 ...org/apache/myfaces/extensions/scripting/mojarra/facelet/support/SwitchingBeanPropertyTagRule.java
  18. +0 −191 ...ava/org/apache/myfaces/extensions/scripting/mojarra/facelet/support/SwitchingMetarulesetImpl.java
  19. +0 −54 ...c/main/java/org/apache/myfaces/extensions/scripting/mojarra/servlet/ClassloaderSetupListener.java
  20. +0 −62 ...g/apache/myfaces/extensions/scripting/mojarra/startup/StartupServletContextPluginChainloader.java
  21. +0 −174 extscript-core-root/extscript-mojarra/src/main/resources/META-INF/LICENSE.TXT
  22. +0 −14 extscript-core-root/extscript-mojarra/src/main/resources/META-INF/NOTICE.TXT
  23. +0 −47 extscript-core-root/extscript-mojarra/src/main/resources/META-INF/extscripting.taglib.xml
  24. +0 −102 extscript-core-root/extscript-mojarra/src/main/resources/META-INF/faces-config.xml
  25. +0 −29 extscript-core-root/extscript-mojarra/src/main/resources/META-INF/licenses/asm-license.txt
  26. +0 −70 extscript-core-root/extscript-mojarra/src/main/resources/META-INF/licenses/facelets-license.txt
  27. +0 −19 ...tscript-mojarra/src/main/resources/META-INF/services/com.sun.faces.config.startup.StartupListener
  28. +0 −19 ...sources/META-INF/services/org.apache.myfaces.extensions.scripting.core.api.AnnotationScanListener
  29. +0 −1 ...n/resources/META-INF/services/org.apache.myfaces.extensions.scripting.core.api.ClassLoaderService
  30. +0 −1 ...esources/META-INF/services/org.apache.myfaces.extensions.scripting.core.api.ImplementationService
  31. +1 −1 ...e/src/main/webapp/WEB-INF/java/org/apache/myfaces/javaloader/componentTest/JavaTestRenderer1.java
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- 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.
--->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.myfaces.extensions.scripting</groupId>
- <artifactId>extscript-mojarra</artifactId>
- <version>1.0.5-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>MyFaces Extension Scripting Mojarra</name>
-
- <parent>
- <groupId>org.apache.myfaces.extensions.scripting</groupId>
- <artifactId>extscript-core-root</artifactId>
- <version>1.0.5-SNAPSHOT</version>
- </parent>
-
- <scm>
- <connection>
- scm:svn:http://svn.apache.org/repos/asf/myfaces/extensions/scripting/trunk/extscript-core-root/extscript-mojarra
- </connection>
- <developerConnection>
- scm:svn:https://svn.apache.org/repos/asf/myfaces/extensions/scripting/trunk/extscript-core-root/extscript-mojarra
- </developerConnection>
- <url>http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/extscript-core-root/extscript-mojarra</url>
- </scm>
-
- <description>
- Mojarra specific adapters of the MyFaces extensions.scripting
- </description>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.myfaces.extensions.scripting</groupId>
- <artifactId>extscript-core</artifactId>
- <version>1.0.5-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>jsf</groupId>
- <artifactId>jsf</artifactId>
- <version>2.2-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
-</project>
@@ -1,10 +0,0 @@
-Changes for mojarra
-a) We need a context listener for the startup plugin chainloader initialisation
-(just like we did it for owb)
-b) We need a servlet filter which sets throw away classloader as context classloader
-c) We need to write the adapter classes accordingly so that bean refreshes work in mojarra in conjunction with
-the ext-scripting api
-d) We need to externalize the myfaces adapter classes accordingly and move the call to a real Java SPI
-so that we can switch adapter implementations on the fly
-e) We need to move the entire facelet part into the myfaces submodule
-
@@ -1,75 +0,0 @@
-/*
- * 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.
- */
-
-package org.apache.myfaces.extensions.scripting.jsf.facelet;
-
-import com.sun.faces.facelets.impl.DefaultResourceResolver;
-import org.apache.myfaces.extensions.scripting.core.api.WeavingContext;
-
-import javax.faces.application.ResourceHandler;
-import javax.faces.view.facelets.ResourceResolver;
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.List;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-/**
- * @author Werner Punz (latest modification by $Author$)
- * @version $Revision$ $Date$
- */
-
-public class ReroutingResourceResolver extends ResourceResolver
-{
-
- DefaultResourceResolver _delegate = null;
- volatile boolean _initiated = false;
- List<String> _resourceDirs = null;
-
- Logger log = Logger.getLogger(this.getClass().getName());
-
- public ReroutingResourceResolver(ResourceResolver delegate)
- {
- super();
- //_delegate = new DefaultResourceResolver(resourceHandler);
- }
-
- @Override
- public URL resolveUrl(String path) {
-
- if (!_initiated) {
- _resourceDirs = WeavingContext.getInstance().getConfiguration().getResourceDirs();
- _initiated = true;
- }
-
- if (_resourceDirs != null && !_resourceDirs.isEmpty()) {
- for (String resourceDir : _resourceDirs) {
- File resource = new File(resourceDir + path);
- if (resource.exists()) try {
- return resource.toURI().toURL();
- } catch (MalformedURLException e) {
- log.log(Level.SEVERE, "",e);
- }
- }
- }
-
- return _delegate.resolveUrl(path);
- }
-}
@@ -1,80 +0,0 @@
-/*
- * 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.
- */
-
-package org.apache.myfaces.extensions.scripting.jsf.facelet;
-
-import com.sun.faces.facelets.tag.jsf.BehaviorTagHandlerDelegateImpl;
-import com.sun.faces.facelets.tag.jsf.ConverterTagHandlerDelegateImpl;
-import com.sun.faces.facelets.tag.jsf.ValidatorTagHandlerDelegateImpl;
-import org.apache.myfaces.extensions.scripting.core.api.WeavingContext;
-import org.apache.myfaces.extensions.scripting.mojarra.facelet.ReloadingBehaviorTagHandlerDelegate;
-import org.apache.myfaces.extensions.scripting.mojarra.facelet.ReloadingComponentTagHandlerDelegate;
-import org.apache.myfaces.extensions.scripting.mojarra.facelet.ReloadingConverterTagHandlerDelegate;
-import org.apache.myfaces.extensions.scripting.mojarra.facelet.ReloadingValidatorTagHandlerDelegate;
-
-import javax.faces.view.facelets.BehaviorHandler;
-import javax.faces.view.facelets.ComponentHandler;
-import javax.faces.view.facelets.ConverterHandler;
-import javax.faces.view.facelets.TagHandlerDelegate;
-import javax.faces.view.facelets.TagHandlerDelegateFactory;
-import javax.faces.view.facelets.ValidatorHandler;
-
-/**
- * Tag handler delegate factory which injects reloading
- * proxies for our facelet artifacts
- */
-public class TagHandlerDelegateFactoryImpl extends TagHandlerDelegateFactory {
-
- @Override
- public TagHandlerDelegate createBehaviorHandlerDelegate(
- BehaviorHandler owner) {
- if (WeavingContext.getInstance().isDynamic(owner.getClass())) {
- return new ReloadingBehaviorTagHandlerDelegate(owner);
- } else {
- return new BehaviorTagHandlerDelegateImpl(owner);
- }
- }
-
- @Override
- public TagHandlerDelegate createComponentHandlerDelegate(
- ComponentHandler owner) {
- return new ReloadingComponentTagHandlerDelegate(owner);
- }
-
- @Override
- public TagHandlerDelegate createConverterHandlerDelegate(
- ConverterHandler owner) {
- if (WeavingContext.getInstance().isDynamic(owner.getClass())) {
- return new ReloadingConverterTagHandlerDelegate(owner);
- } else {
- return new ConverterTagHandlerDelegateImpl(owner);
- }
- }
-
- @Override
- public TagHandlerDelegate createValidatorHandlerDelegate(
- ValidatorHandler owner) {
- if (WeavingContext.getInstance().isDynamic(owner.getClass())) {
- return new ReloadingValidatorTagHandlerDelegate(owner);
- } else {
- return new ValidatorTagHandlerDelegateImpl(owner);
- }
- }
-}
-
@@ -1,82 +0,0 @@
-/*
- * 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.
- */
-
-package org.apache.myfaces.extensions.scripting.mojarra.adapters;
-
-import org.apache.myfaces.extensions.scripting.core.api.ClassLoaderService;
-import org.apache.myfaces.extensions.scripting.core.common.util.ClassLoaderUtils;
-import org.apache.myfaces.extensions.scripting.core.engine.ThrowAwayClassloader;
-
-import java.security.AccessController;
-import java.security.PrivilegedAction;
-
-/**
- * @author Werner Punz (latest modification by $Author$)
- * @version $Revision$ $Date$
- */
-
-public class ClassLoaderServiceImpl
- implements ClassLoaderService
-{
- static ClassLoader _oldClassLoader = null;
-
- @Override
- public void registerThrowAwayClassloader()
- {
- //we do not have the luxury of a pluggable classloading extensions like in myfaces
- // instead we have to provide our own classloader which is hooked in from time to time into the running system
- final ClassLoader loader = ClassLoaderUtils.getDefaultClassLoader();
- boolean found = false;
- ClassLoader parent = loader;
- while (parent != null && !found)
- {
- found = parent instanceof ThrowAwayClassloader;
- if (!found)
- {
- parent = parent.getParent();
- }
- }
- if (found)
- {
- return;
- }
- //in case of an unchanged classloader we can recycle our old throw away classloader
- if (_oldClassLoader != null && loader.equals(_oldClassLoader.getParent()))
- {
- Thread.currentThread().setContextClassLoader(_oldClassLoader);
- } else
- {
- _oldClassLoader = (ClassLoader) AccessController.doPrivileged(
- new PrivilegedAction()
- {
- public Object run()
- {
- return new ThrowAwayClassloader(loader);
- }
- });
- Thread.currentThread().setContextClassLoader(_oldClassLoader);
- }
- }
-
- @Override
- public int getPriority()
- {
- return 0; //default implementation, lowest priority
- }
-}
Oops, something went wrong. Retry.

0 comments on commit e909017

Please sign in to comment.