You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by gp...@apache.org on 2010/08/03 20:33:13 UTC
svn commit: r981998 - in /myfaces/extensions/cdi/trunk/core:
api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/
impl/src/main/resources/META-INF/services/
Author: gpetracek
Date: Tue Aug 3 18:33:12 2010
New Revision: 981998
URL: http://svn.apache.org/viewvc?rev=981998&view=rev
Log:
codi version information
Added:
myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/CodiInformation.java
myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/CodiInformationExtension.java
Modified:
myfaces/extensions/cdi/trunk/core/impl/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension
Added: myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/CodiInformation.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/CodiInformation.java?rev=981998&view=auto
==============================================================================
--- myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/CodiInformation.java (added)
+++ myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/CodiInformation.java Tue Aug 3 18:33:12 2010
@@ -0,0 +1,29 @@
+/*
+ * 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.cdi.core.api;
+
+import org.apache.myfaces.extensions.cdi.core.api.util.ClassUtils;
+
+/**
+ * @author Gerhard Petracek
+ */
+public interface CodiInformation
+{
+ static final String VERSION = ClassUtils.getJarVersion(CodiInformation.class) + "_pre_alpha-1";
+}
Added: myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/CodiInformationExtension.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/CodiInformationExtension.java?rev=981998&view=auto
==============================================================================
--- myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/CodiInformationExtension.java (added)
+++ myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/CodiInformationExtension.java Tue Aug 3 18:33:12 2010
@@ -0,0 +1,45 @@
+/*
+ * 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.cdi.core.api;
+
+import javax.enterprise.event.Observes;
+import javax.enterprise.inject.spi.Extension;
+import javax.enterprise.inject.spi.AfterDeploymentValidation;
+import java.util.logging.Logger;
+
+/**
+ * @author Gerhard Petracek
+ */
+public class CodiInformationExtension implements Extension
+{
+ protected final Logger logger = Logger.getLogger(CodiInformationExtension.class.getName());
+
+ @SuppressWarnings({"UnusedDeclaration"})
+ public void setBeanManager(@Observes AfterDeploymentValidation afterDeploymentValidation)
+ {
+ if(CodiInformation.VERSION != null && !CodiInformation.VERSION.startsWith("null"))
+ {
+ this.logger.info("starting up MyFaces CODI (Extensions CDI) v" + CodiInformation.VERSION);
+ }
+ else
+ {
+ this.logger.info("starting up MyFaces CODI (Extensions CDI)");
+ }
+ }
+}
\ No newline at end of file
Modified: myfaces/extensions/cdi/trunk/core/impl/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/core/impl/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension?rev=981998&r1=981997&r2=981998&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/core/impl/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension (original)
+++ myfaces/extensions/cdi/trunk/core/impl/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension Tue Aug 3 18:33:12 2010
@@ -21,4 +21,6 @@
org.apache.myfaces.extensions.cdi.core.impl.projectstage.ProjectStageActivationExtension
# myfaces-codi BeanManager provider
-org.apache.myfaces.extensions.cdi.core.api.manager.BeanManagerProvider
\ No newline at end of file
+org.apache.myfaces.extensions.cdi.core.api.manager.BeanManagerProvider
+
+org.apache.myfaces.extensions.cdi.core.api.CodiInformationExtension
\ No newline at end of file