[Jsf4portlets-devel] SF.net SVN: jsf4portlets: [30] trunk
Status: Alpha
Brought to you by:
alonsoft
From: <alo...@us...> - 2007-09-27 17:32:05
|
Revision: 30 http://jsf4portlets.svn.sourceforge.net/jsf4portlets/?rev=30&view=rev Author: alonsoft Date: 2007-09-27 10:32:02 -0700 (Thu, 27 Sep 2007) Log Message: ----------- Prepared for alpha-2 release Modified Paths: -------------- trunk/jsf4portlets/pom.xml trunk/jsf4portlets/src/main/java/net/sf/jsf4portlets/spi/InjectionProviderFactory.java trunk/jsf4portlets/src/main/resources/META-INF/services/net.sf.jsf4portlets.spi.InjectionProvider trunk/jsf4portlets/src/main/resources/net/sf/jsf4portlets/LogMessages.properties trunk/pom.xml trunk/src/assembly/bin.xml trunk/src/assembly/src.xml trunk/src/site/site.xml Added Paths: ----------- trunk/jsf4portlets/src/main/java/net/sf/jsf4portlets/vendor/Jetty6InjectionProvider.java trunk/jsf4portlets/src/site/ trunk/jsf4portlets/src/site/site.xml trunk/jsf4portlets-ext/src/site/ trunk/jsf4portlets-ext/src/site/apt/ trunk/jsf4portlets-ext/src/site/apt/facelets.apt trunk/jsf4portlets-ext/src/site/apt/index.apt trunk/jsf4portlets-ext/src/site/site.xml trunk/src/site/apt/repositories.apt Modified: trunk/jsf4portlets/pom.xml =================================================================== --- trunk/jsf4portlets/pom.xml 2007-09-26 17:47:31 UTC (rev 29) +++ trunk/jsf4portlets/pom.xml 2007-09-27 17:32:02 UTC (rev 30) @@ -52,6 +52,10 @@ <groupId>org.apache.tomcat</groupId> <artifactId>catalina</artifactId> </dependency> + <dependency> + <groupId>org.mortbay.jetty</groupId> + <artifactId>jetty-plus</artifactId> + </dependency> <dependency> <groupId>junit</groupId> Modified: trunk/jsf4portlets/src/main/java/net/sf/jsf4portlets/spi/InjectionProviderFactory.java =================================================================== --- trunk/jsf4portlets/src/main/java/net/sf/jsf4portlets/spi/InjectionProviderFactory.java 2007-09-26 17:47:31 UTC (rev 29) +++ trunk/jsf4portlets/src/main/java/net/sf/jsf4portlets/spi/InjectionProviderFactory.java 2007-09-27 17:32:02 UTC (rev 30) @@ -127,7 +127,7 @@ try { Class<?> clazz = Class.forName(className, true, InjectionProviderFactory.class.getClassLoader()); - if(clazz.isAssignableFrom(InjectionProvider.class)) { + if(InjectionProvider.class.isAssignableFrom(clazz)) { try { Constructor<?> cons = clazz.getConstructor(PortletContext.class); provider = (InjectionProvider) cons.newInstance( @@ -177,7 +177,9 @@ String[] parts = entry.split(":"); if(parts.length != 2) { - // TODO log about this problem + if(logger.isLoggable(Level.SEVERE)) { + logger.log(Level.SEVERE, "J4P_000050", entry); + } return null; } @@ -188,11 +190,15 @@ return parts[0]; } } else { - // TODO Entry not discoverable + if(logger.isLoggable(Level.SEVERE)) { + logger.log(Level.SEVERE, "J4P_000051", parts[0]); + } return null; } } catch(ClassNotFoundException e) { - // TODO provider not found + if(logger.isLoggable(Level.SEVERE)) { + logger.log(Level.SEVERE, "J4P_000034", parts[0]); + } return null; } Added: trunk/jsf4portlets/src/main/java/net/sf/jsf4portlets/vendor/Jetty6InjectionProvider.java =================================================================== --- trunk/jsf4portlets/src/main/java/net/sf/jsf4portlets/vendor/Jetty6InjectionProvider.java (rev 0) +++ trunk/jsf4portlets/src/main/java/net/sf/jsf4portlets/vendor/Jetty6InjectionProvider.java 2007-09-27 17:32:02 UTC (rev 30) @@ -0,0 +1,45 @@ +/* JSF 4 Portlets - JSF Portlet Bridge (JSR-301) + * Copyright (C) 2007 A. Alonso Dominguez + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * A. Alonso Dominguez + * alo...@us... + */ +package net.sf.jsf4portlets.vendor; + +import net.sf.jsf4portlets.spi.ContainerInjectionProvider; +import net.sf.jsf4portlets.spi.InjectionProviderException; + +import org.mortbay.jetty.plus.annotation.LifeCycleCallbackCollection; + +public class Jetty6InjectionProvider extends ContainerInjectionProvider { + + private LifeCycleCallbackCollection callbacks; + + public Jetty6InjectionProvider() { + callbacks = new LifeCycleCallbackCollection(); + } + + public void invokePreDestroy(Object managedBean) + throws InjectionProviderException { + try { + callbacks.callPreDestroyCallback(managedBean); + } catch(Exception e) { + throw new InjectionProviderException(e); + } + } + +} Modified: trunk/jsf4portlets/src/main/resources/META-INF/services/net.sf.jsf4portlets.spi.InjectionProvider =================================================================== --- trunk/jsf4portlets/src/main/resources/META-INF/services/net.sf.jsf4portlets.spi.InjectionProvider 2007-09-26 17:47:31 UTC (rev 29) +++ trunk/jsf4portlets/src/main/resources/META-INF/services/net.sf.jsf4portlets.spi.InjectionProvider 2007-09-27 17:32:02 UTC (rev 30) @@ -1 +1,2 @@ -net.sf.jsf4portlets.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor \ No newline at end of file +net.sf.jsf4portlets.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor +net.sf.jsf4portlets.vendor.Jetty6InjectionProvider:org.mortbay.jetty.annotation.LifeCycleCallbackCollection \ No newline at end of file Modified: trunk/jsf4portlets/src/main/resources/net/sf/jsf4portlets/LogMessages.properties =================================================================== --- trunk/jsf4portlets/src/main/resources/net/sf/jsf4portlets/LogMessages.properties 2007-09-26 17:47:31 UTC (rev 29) +++ trunk/jsf4portlets/src/main/resources/net/sf/jsf4portlets/LogMessages.properties 2007-09-27 17:32:02 UTC (rev 30) @@ -67,3 +67,5 @@ J4P_000047=J4P000047: Injection method {0} should be declared with no parameters for annotation {1}. J4P_000048=J4P000048: Injection method {0} should thrown no checked exceptions for annotation {1}. J4P_000049=J4P000049: Cannot read injection provider service. +J4P_000050=J4P000050: Illegal injection provider service entry: {0} +J4P_000051=J4P000051: Entry {0} is not a container specific injection provider. Added: trunk/jsf4portlets/src/site/site.xml =================================================================== --- trunk/jsf4portlets/src/site/site.xml (rev 0) +++ trunk/jsf4portlets/src/site/site.xml 2007-09-27 17:32:02 UTC (rev 30) @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + JSF 4 Portlets - JSF Portlet Bridge (JSR-301) + Copyright (C) 2007 A. Alonso Dominguez + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + A. Alonso Dominguez + alo...@us... +--> + +<project name="JSF 4 Portlets Core"> + <bannerLeft> + <name>SourceForge.net Logo</name> + <src>http://sflogo.sourceforge.net/sflogo.php?group_id=196120&type=5</src> + <href>http://www.sourceforge.net</href> + </bannerLeft> + <bannerRight> + <name>JSF 4 Portlets</name> + <href>http://jsf4portlets.sf.net</href> + </bannerRight> + + <body> + <links> + <item name="JSF 4 Portlets" href="http://jsf4portlets.sf.net" /> + <item name="SF Project Page" href="http://sf.net/projects/jsf4portlets" /> + <item name="JSR-301" href="http://jcp.org/en/jsr/detail?id=301" /> + </links> + + <menu name="Main Menu"> + <item name="Overview" href="index.html" /> + <item name="License" href="license.html" /> + </menu> + + <menu ref="reports" /> + </body> +</project> \ No newline at end of file Added: trunk/jsf4portlets-ext/src/site/apt/facelets.apt =================================================================== --- trunk/jsf4portlets-ext/src/site/apt/facelets.apt (rev 0) +++ trunk/jsf4portlets-ext/src/site/apt/facelets.apt 2007-09-27 17:32:02 UTC (rev 30) @@ -0,0 +1,45 @@ +~~ +~~ JSF 4 Portlets - JSF Portlet Bridge (JSR-301) +~~ Copyright (C) 2007 A. Alonso Dominguez +~~ +~~ This library is free software; you can redistribute it and/or +~~ modify it under the terms of the GNU Lesser General Public +~~ License as published by the Free Software Foundation; either +~~ version 2.1 of the License, or (at your option) any later version. +~~ +~~ This library is distributed in the hope that it will be useful, +~~ but WITHOUT ANY WARRANTY; without even the implied warranty of +~~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +~~ Lesser General Public License for more details. +~~ +~~ You should have received a copy of the GNU Lesser General Public +~~ License along with this library; if not, write to the Free Software +~~ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +~~ +~~ A. Alonso Dominguez +~~ alo...@us... +~~ + + --- + JSF 4 Portlets Extensions - Facelets + --- + A. Alonso Dom\xEDnguez + --- + +Facelets Support + + If you would like to use {{{http://facelets.dev.java.net}JSF Facelets}} you must configure the <<<FaceletPortletViewHandler>>> in your <<<faces-config.xml>>> like following: + ++--- +<faces-config> + ... + + <application> + <view-handler> + net.sf.jsf4portlets.facelets.FaceletPortletViewHandler + </view-handler> + </application> + + ... +</faces-config> ++--- \ No newline at end of file Added: trunk/jsf4portlets-ext/src/site/apt/index.apt =================================================================== --- trunk/jsf4portlets-ext/src/site/apt/index.apt (rev 0) +++ trunk/jsf4portlets-ext/src/site/apt/index.apt 2007-09-27 17:32:02 UTC (rev 30) @@ -0,0 +1,38 @@ +~~ +~~ JSF 4 Portlets - JSF Portlet Bridge (JSR-301) +~~ Copyright (C) 2007 A. Alonso Dominguez +~~ +~~ This library is free software; you can redistribute it and/or +~~ modify it under the terms of the GNU Lesser General Public +~~ License as published by the Free Software Foundation; either +~~ version 2.1 of the License, or (at your option) any later version. +~~ +~~ This library is distributed in the hope that it will be useful, +~~ but WITHOUT ANY WARRANTY; without even the implied warranty of +~~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +~~ Lesser General Public License for more details. +~~ +~~ You should have received a copy of the GNU Lesser General Public +~~ License along with this library; if not, write to the Free Software +~~ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +~~ +~~ A. Alonso Dominguez +~~ alo...@us... +~~ + + --- + JSF 4 Portlets Extensions + --- + A. Alonso Dom\xEDnguez + --- + + +JSF 4 Portlets Extensions + + This is the extensions module of JSF 4 Portlets. This module brings some additional features to the bridge implementation. Currently the only extension available is support for {{{http://facelets.dev.java.net}JSF Facelets}}, more features will be implemented in the future. + + Planned features: + + * Inter-Portlet Communication. This will require deploying portlets with the {{{http://portlet-container.dev.java.net}Open Source Portlet Container}}. This feature will allow Faces' managed beans to be aware of portlet events. + + * AJAX Support. \ No newline at end of file Added: trunk/jsf4portlets-ext/src/site/site.xml =================================================================== --- trunk/jsf4portlets-ext/src/site/site.xml (rev 0) +++ trunk/jsf4portlets-ext/src/site/site.xml 2007-09-27 17:32:02 UTC (rev 30) @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + JSF 4 Portlets - JSF Portlet Bridge (JSR-301) + Copyright (C) 2007 A. Alonso Dominguez + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + A. Alonso Dominguez + alo...@us... +--> + +<project name="JSF 4 Portlets Extensions"> + <bannerLeft> + <name>SourceForge.net Logo</name> + <src>http://sflogo.sourceforge.net/sflogo.php?group_id=196120&type=5</src> + <href>http://www.sourceforge.net</href> + </bannerLeft> + <bannerRight> + <name>JSF 4 Portlets</name> + <href>http://jsf4portlets.sf.net</href> + </bannerRight> + + <body> + <links> + <item name="JSF 4 Portlets" href="http://jsf4portlets.sf.net" /> + <item name="SF Project Page" href="http://sf.net/projects/jsf4portlets" /> + <item name="JSR-301" href="http://jcp.org/en/jsr/detail?id=301" /> + </links> + + <menu name="Main Menu"> + <item name="Overview" href="index.html" /> + <item name="License" href="license.html" /> + </menu> + + <menu name="Feature Documentation"> + <item name="Facelets" href="facelets.html" /> + </menu> + + <menu ref="reports" /> + </body> +</project> \ No newline at end of file Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2007-09-26 17:47:31 UTC (rev 29) +++ trunk/pom.xml 2007-09-27 17:32:02 UTC (rev 30) @@ -79,6 +79,7 @@ </modules> <build> + <defaultGoal>install</defaultGoal> <pluginManagement> <plugins> <plugin> @@ -199,6 +200,28 @@ </dependency> <dependency> + <groupId>org.mortbay.jetty</groupId> + <artifactId>jetty-plus</artifactId> + <version>6.1.2</version> + <scope>compile</scope> + <optional>true</optional> + <exclusions> + <exclusion> + <groupId>javax.activation</groupId> + <artifactId>activation</artifactId> + </exclusion> + <exclusion> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + </exclusion> + <exclusion> + <groupId>geronimo-spec</groupId> + <artifactId>geronimo-spec-jta</artifactId> + </exclusion> + </exclusions> + </dependency> + + <dependency> <groupId>com.sun.facelets</groupId> <artifactId>jsf-facelets</artifactId> <version>1.1.11</version> Modified: trunk/src/assembly/bin.xml =================================================================== --- trunk/src/assembly/bin.xml 2007-09-26 17:47:31 UTC (rev 29) +++ trunk/src/assembly/bin.xml 2007-09-27 17:32:02 UTC (rev 30) @@ -32,23 +32,31 @@ <moduleSets> <moduleSet> <includes> - <include>net.sf.jsf4portlets:jsf4portlets</include> - <include>net.sf.jsf4portlets:jsf4portlets-ext</include> + <include>net.sf.jsf4portlets:*</include> </includes> <binaries> - <outputDirectory>/lib</outputDirectory> + <outputDirectory>/</outputDirectory> <unpack>false</unpack> <dependencySets> <dependencySet> <outputDirectory>/lib</outputDirectory> - <scope>runtime</scope> <excludes> + <exclude>net.sf.jsf4portlets:jsf4portlets</exclude> <exclude>org.apache.tomcat:*</exclude> - <exclude>com.sun.facelets:*</exclude> + <exclude>org.mortbay.jetty:jetty-plus</exclude> </excludes> </dependencySet> </dependencySets> </binaries> + <sources> + <includeModuleDirectory>true</includeModuleDirectory> + <outputDirectoryMapping>/doc/${artifactId}</outputDirectoryMapping> + <fileSets> + <fileSet> + <directory>target/site</directory> + </fileSet> + </fileSets> + </sources> </moduleSet> </moduleSets> <fileSets> @@ -64,25 +72,8 @@ <outputDirectory>/lib</outputDirectory> </fileSet> <fileSet> - <directory>target</directory> - <outputDirectory>/</outputDirectory> - <includes> - <include>*.jar</include> - </includes> + <directory>target/site</directory> + <outputDirectory>/doc</outputDirectory> </fileSet> - <fileSet> - <directory>target/site/apidocs</directory> - <outputDirectory>/doc/apidocs</outputDirectory> - <includes> - <include>**/*</include> - </includes> - </fileSet> - <fileSet> - <directory>target/site/tlddoc</directory> - <outputDirectory>/doc/tlddocs</outputDirectory> - <includes> - <include>**/*</include> - </includes> - </fileSet> </fileSets> </assembly> \ No newline at end of file Modified: trunk/src/assembly/src.xml =================================================================== --- trunk/src/assembly/src.xml 2007-09-26 17:47:31 UTC (rev 29) +++ trunk/src/assembly/src.xml 2007-09-27 17:32:02 UTC (rev 30) @@ -29,6 +29,27 @@ <format>tar.bz2</format> <format>zip</format> </formats> + <moduleSets> + <moduleSet> + <includes> + <include>net.sf.jsf4portlets:jsf4portlets</include> + <include>net.sf.jsf4portlets:jsf4portlets-ext</include> + </includes> + <sources> + <fileSets> + <fileSet> + <directory>src</directory> + <outputDirectory>src</outputDirectory> + </fileSet> + <fileSet> + <includes> + <include>pom.xml</include> + </includes> + </fileSet> + </fileSets> + </sources> + </moduleSet> + </moduleSets> <fileSets> <fileSet> <includes> @@ -41,9 +62,6 @@ <fileSet> <directory>src</directory> <outputDirectory>/src</outputDirectory> - <includes> - <include>**/*</include> - </includes> </fileSet> </fileSets> </assembly> \ No newline at end of file Added: trunk/src/site/apt/repositories.apt =================================================================== --- trunk/src/site/apt/repositories.apt (rev 0) +++ trunk/src/site/apt/repositories.apt 2007-09-27 17:32:02 UTC (rev 30) @@ -0,0 +1,61 @@ +~~ +~~ JSF 4 Portlets - JSF Portlet Bridge (JSR-301) +~~ Copyright (C) 2007 A. Alonso Dominguez +~~ +~~ This library is free software; you can redistribute it and/or +~~ modify it under the terms of the GNU Lesser General Public +~~ License as published by the Free Software Foundation; either +~~ version 2.1 of the License, or (at your option) any later version. +~~ +~~ This library is distributed in the hope that it will be useful, +~~ but WITHOUT ANY WARRANTY; without even the implied warranty of +~~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +~~ Lesser General Public License for more details. +~~ +~~ You should have received a copy of the GNU Lesser General Public +~~ License along with this library; if not, write to the Free Software +~~ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +~~ +~~ A. Alonso Dominguez +~~ alo...@us... +~~ + + --- + JSF 4 Portlets - Repositories + --- + A. Alonso Dom\xEDnguez + --- + +Maven 2 Repositories + + JSF 4 Portlets is not available at the maven2 central repository because some dependency issues, it will be available in the future when that issues become resolved. Ragard of this, it is possible to use jsf4portlets with a Maven2 project configuring the specific repositories for JSF 4 Portlets at {{{http://www.sourceforge.net}SourceForge.net}}: + + * <<Releases>>: {{http://jsf4portlets.sf.net/repository/releases}} + + * <<Snapshots>>: {{http://jsf4portlets.sf.net/repository/snapshots}} + + Following is an example of how to configure these maven 2 repositories for your project. + +* Releases + ++--- +<repositories> + <repository> + <id>releases.jsf4portlets</id> + <url>http://jsf4portlets.sf.net/repository/releases</url> + <layout>default</layout> + </repository> +</repositories> ++--- + +* Snapshots + ++--- +<repositories> + <repository> + <id>snapshots.jsf4portlets</id> + <url>http://jsf4portlets.sf.net/repository/snapshots</url> + <layout>default</layout> + </repository> +</repositories> ++--- \ No newline at end of file Modified: trunk/src/site/site.xml =================================================================== --- trunk/src/site/site.xml 2007-09-26 17:47:31 UTC (rev 29) +++ trunk/src/site/site.xml 2007-09-27 17:32:02 UTC (rev 30) @@ -33,6 +33,11 @@ <href>http://jsf4portlets.sf.net</href> </bannerRight> + <poweredBy> + <logo name="Maven" href="http://maven.apache.org/" + img="http://maven.apache.org/images/logos/maven-feather.png"/> + </poweredBy> + <body> <links> <item name="SF Project Page" href="http://sf.net/projects/jsf4portlets" /> @@ -49,9 +54,13 @@ <menu name="Documentation"> <item name="User Documentation" href="user_docs.html" /> - <item name="Java Docs" href="apidocs/index.html" /> + <item name="Java Docs" href="jsf4portlets/apidocs/index.html" /> </menu> + <menu name="Developer Documentation"> + <item name="Maven 2 Repositories" href="repositories.html" /> + </menu> + <menu ref="modules" /> <menu ref="reports" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |