[jboss-cvs] JBossAS SVN: r90868 - in projects/logging-service-metadata/trunk/src/main: resources/META-INF/schema and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Jul 6 17:55:55 EDT 2009
Author: david.lloyd at jboss.com
Date: 2009-07-06 17:55:55 -0400 (Mon, 06 Jul 2009)
New Revision: 90868
Added:
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractHandlerBeanMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractHandlerMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractLoggerMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractLoggerRefMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractMultiFilterMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractSimpleFilterMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AcceptFilterMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AllFilterMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AnyFilterMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AsyncHandlerMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/ConsoleHandlerMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/DenyFilterMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/ErrorManagerMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/FileHandlerMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/FilterMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/FormatterMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/HandlerMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/InstallHandlerMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LevelChangeFilterMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LevelFilterMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LevelRangeFilterMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/Log4jAppenderMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LoggerMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LoggerRefMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/MatchFilterMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/NotFilterMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/NullHandlerMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/PatternFormatterMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/PeriodicRotatingFileHandlerMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/RefMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/ReplaceFilterMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/RootLoggerMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/RootLoggerRefMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/SimpleFilterMetaData.java
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/SizeRotatingFileHandlerMetaData.java
Modified:
projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LoggingMetaData.java
projects/logging-service-metadata/trunk/src/main/resources/META-INF/schema/jboss-logging_6_0.xsd
Log:
Logging metadata classes!
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractHandlerBeanMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractHandlerBeanMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractHandlerBeanMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlAttribute;
+
+public abstract class AbstractHandlerBeanMetaData extends AbstractHandlerMetaData {
+
+ private String className;
+
+ public String getClassName() {
+ return className;
+ }
+
+ @XmlAttribute(name = "class", required = true)
+ public void setClassName(final String className) {
+ this.className = className;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractHandlerMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractHandlerMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractHandlerMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,150 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElementWrapper;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlAttribute;
+
+import org.jboss.beans.metadata.spi.PropertyMetaData;
+
+public abstract class AbstractHandlerMetaData {
+ private RefMetaData levelMetaData;
+ private FilterMetaData filterMetaData;
+ private ErrorManagerMetaData errorManagerMetaData;
+ private FormatterMetaData formatterMetaData;
+ private List<AbstractLoggerRefMetaData> loggerMetaDataList;
+ private List<AbstractHandlerMetaData> subHandlerMetaDataList;
+ private List<PropertyMetaData> propertyMetaDataList;
+ private String name;
+ private String encoding;
+ private boolean autoflush;
+
+ public RefMetaData getLevelMetaData() {
+ return levelMetaData;
+ }
+
+ @XmlElement(name = "level")
+ public void setLevelMetaData(final RefMetaData levelMetaData) {
+ this.levelMetaData = levelMetaData;
+ }
+
+ public FilterMetaData getFilterMetaData() {
+ return filterMetaData;
+ }
+
+ @XmlElement(name = "filter")
+ public void setFilterMetaData(final FilterMetaData filterMetaData) {
+ this.filterMetaData = filterMetaData;
+ }
+
+ public ErrorManagerMetaData getErrorManagerMetaData() {
+ return errorManagerMetaData;
+ }
+
+ @XmlElement(name = "error-manager")
+ public void setErrorManagerMetaData(final ErrorManagerMetaData errorManagerMetaData) {
+ this.errorManagerMetaData = errorManagerMetaData;
+ }
+
+ public FormatterMetaData getFormatterMetaData() {
+ return formatterMetaData;
+ }
+
+ @XmlElement(name = "formatter")
+ public void setFormatterMetaData(final FormatterMetaData formatterMetaData) {
+ this.formatterMetaData = formatterMetaData;
+ }
+
+ public List<AbstractLoggerRefMetaData> getLoggerMetaDataList() {
+ return loggerMetaDataList;
+ }
+
+ @XmlElementWrapper(name="loggers")
+ @XmlElements({
+ @XmlElement(name="logger", type=LoggerRefMetaData.class),
+ @XmlElement(name="root-logger", type=RootLoggerRefMetaData.class)
+ })
+ public void setLoggerMetaDataList(final List<AbstractLoggerRefMetaData> loggerMetaDataList) {
+ this.loggerMetaDataList = loggerMetaDataList;
+ }
+
+ public List<AbstractHandlerMetaData> getSubHandlerMetaDataList() {
+ return subHandlerMetaDataList;
+ }
+
+ @XmlElementWrapper(name="sub-handlers")
+ @XmlElements({
+ @XmlElement(name = "handler", type = HandlerMetaData.class),
+ @XmlElement(name = "log4j-appender", type = Log4jAppenderMetaData.class),
+ @XmlElement(name = "console-handler", type = ConsoleHandlerMetaData.class),
+ @XmlElement(name = "file-handler", type = FileHandlerMetaData.class),
+ @XmlElement(name = "periodic-rotating-file-handler", type = PeriodicRotatingFileHandlerMetaData.class),
+ @XmlElement(name = "size-rotating-file-handler", type = SizeRotatingFileHandlerMetaData.class),
+ @XmlElement(name = "async-handler", type = AsyncHandlerMetaData.class),
+ @XmlElement(name = "null-handler", type = NullHandlerMetaData.class)
+ })
+ public void setSubHandlerMetaDataList(final List<AbstractHandlerMetaData> subHandlerMetaDataList) {
+ this.subHandlerMetaDataList = subHandlerMetaDataList;
+ }
+
+ public List<PropertyMetaData> getPropertyMetaDataList() {
+ return propertyMetaDataList;
+ }
+
+ @XmlElementWrapper(name="properties")
+ @XmlElement(name="property")
+ public void setPropertyMetaDataList(final List<PropertyMetaData> propertyMetaDataList) {
+ this.propertyMetaDataList = propertyMetaDataList;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ @XmlAttribute
+ public void setName(final String name) {
+ this.name = name;
+ }
+
+ public String getEncoding() {
+ return encoding;
+ }
+
+ @XmlAttribute
+ public void setEncoding(final String encoding) {
+ this.encoding = encoding;
+ }
+
+ public boolean isAutoflush() {
+ return autoflush;
+ }
+
+ @XmlAttribute
+ public void setAutoflush(final boolean autoflush) {
+ this.autoflush = autoflush;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractLoggerMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractLoggerMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractLoggerMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,70 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+
+public abstract class AbstractLoggerMetaData {
+ private RefMetaData levelMetaData;
+ private FilterMetaData filterMetaData;
+ private List<AbstractHandlerMetaData> handlerMetaDataList;
+
+ public RefMetaData getLevelMetaData() {
+ return levelMetaData;
+ }
+
+ @XmlElement(name = "level")
+ public void setLevelMetaData(final RefMetaData levelMetaData) {
+ this.levelMetaData = levelMetaData;
+ }
+
+ public FilterMetaData getFilterMetaData() {
+ return filterMetaData;
+ }
+
+ @XmlElement(name = "filter")
+ public void setFilterMetaData(final FilterMetaData filterMetaData) {
+ this.filterMetaData = filterMetaData;
+ }
+
+ public List<AbstractHandlerMetaData> getHandlerMetaDataList() {
+ return handlerMetaDataList;
+ }
+
+ @XmlElements({
+ @XmlElement(name = "handler", type = HandlerMetaData.class),
+ @XmlElement(name = "log4j-appender", type = Log4jAppenderMetaData.class),
+ @XmlElement(name = "console-handler", type = ConsoleHandlerMetaData.class),
+ @XmlElement(name = "file-handler", type = FileHandlerMetaData.class),
+ @XmlElement(name = "periodic-rotating-file-handler", type = PeriodicRotatingFileHandlerMetaData.class),
+ @XmlElement(name = "size-rotating-file-handler", type = SizeRotatingFileHandlerMetaData.class),
+ @XmlElement(name = "async-handler", type = AsyncHandlerMetaData.class),
+ @XmlElement(name = "null-handler", type = NullHandlerMetaData.class)
+ })
+ public void setHandlerMetaDataList(final List<AbstractHandlerMetaData> handlerMetaDataList) {
+ this.handlerMetaDataList = handlerMetaDataList;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractLoggerRefMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractLoggerRefMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractLoggerRefMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlAttribute;
+
+public abstract class AbstractLoggerRefMetaData {
+ private String context;
+
+ public String getContext() {
+ return context;
+ }
+
+ @XmlAttribute
+ public void setContext(final String context) {
+ this.context = context;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractMultiFilterMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractMultiFilterMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractMultiFilterMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.beans.metadata.spi.ValueMetaData;
+
+ at XmlType(name = "multiFilterType", propOrder = {})
+public abstract class AbstractMultiFilterMetaData {
+ private List<Object> filterMetaDataList;
+
+ public List<Object> getFilterMetaDataList() {
+ return filterMetaDataList;
+ }
+
+ @XmlElements({
+ @XmlElement(name = "all", type = AllFilterMetaData.class),
+ @XmlElement(name = "any", type = AnyFilterMetaData.class),
+ @XmlElement(name = "accept", type = AcceptFilterMetaData.class),
+ @XmlElement(name = "deny", type = DenyFilterMetaData.class),
+ @XmlElement(name = "not", type = NotFilterMetaData.class),
+ @XmlElement(name = "match", type = MatchFilterMetaData.class),
+ @XmlElement(name = "replace", type = ReplaceFilterMetaData.class),
+ @XmlElement(name = "level", type = LevelFilterMetaData.class),
+ @XmlElement(name = "level-range", type = LevelRangeFilterMetaData.class),
+ @XmlElement(name = "change-level", type = LevelChangeFilterMetaData.class),
+
+ @XmlElement(name = "value", type = ValueMetaData.class),
+
+ @XmlElement(name = "filter-ref", type = RefMetaData.class)
+ })
+ public void setFilterMetaDataList(final List<Object> filterMetaDataList) {
+ this.filterMetaDataList = filterMetaDataList;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractSimpleFilterMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractSimpleFilterMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AbstractSimpleFilterMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,29 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlType(name = "simpleFilterType", propOrder = {})
+public abstract class AbstractSimpleFilterMetaData {
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AcceptFilterMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AcceptFilterMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AcceptFilterMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,26 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+public class AcceptFilterMetaData extends AbstractSimpleFilterMetaData {
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AllFilterMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AllFilterMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AllFilterMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,26 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+public class AllFilterMetaData extends AbstractMultiFilterMetaData {
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AnyFilterMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AnyFilterMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AnyFilterMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,26 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+public class AnyFilterMetaData extends AbstractMultiFilterMetaData {
+}
\ No newline at end of file
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AsyncHandlerMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AsyncHandlerMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/AsyncHandlerMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlType(name = "asyncHandlerType", propOrder = {})
+public class AsyncHandlerMetaData extends AbstractHandlerMetaData {
+ private int queueLength = 512;
+ private OverflowAction overflowAction = OverflowAction.BLOCK;
+
+ public int getQueueLength() {
+ return queueLength;
+ }
+
+ @XmlAttribute(name = "queue-length")
+ public void setQueueLength(final int queueLength) {
+ this.queueLength = queueLength;
+ }
+
+ public OverflowAction getOverflowAction() {
+ return overflowAction;
+ }
+
+ @XmlAttribute(name = "overflow-action")
+ public void setOverflowAction(final OverflowAction overflowAction) {
+ this.overflowAction = overflowAction;
+ }
+
+ @XmlEnum
+ public enum OverflowAction {
+ @XmlEnumValue("block")
+ BLOCK,
+ @XmlEnumValue("discard")
+ DISCARD,
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/ConsoleHandlerMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/ConsoleHandlerMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/ConsoleHandlerMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlType(name = "consoleHandlerType", propOrder = {})
+public class ConsoleHandlerMetaData extends AbstractHandlerMetaData {
+ private Target target;
+
+ public Target getTarget() {
+ return target;
+ }
+
+ @XmlAttribute(name = "target")
+ public void setTarget(final Target target) {
+ this.target = target;
+ }
+
+ @XmlEnum
+ public enum Target {
+ @XmlEnumValue("System.out")
+ SYSTEM_OUT,
+ @XmlEnumValue("System.err")
+ SYSTEM_ERR,
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/DenyFilterMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/DenyFilterMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/DenyFilterMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,26 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+public class DenyFilterMetaData extends AbstractSimpleFilterMetaData {
+}
\ No newline at end of file
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/ErrorManagerMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/ErrorManagerMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/ErrorManagerMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import org.jboss.beans.metadata.spi.ValueMetaData;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlElement;
+
+ at XmlType(name = "errorManagerType", propOrder = {})
+public class ErrorManagerMetaData {
+ private ValueMetaData valueMetaData;
+ private boolean onlyOnce;
+
+ public ValueMetaData getValueMetaData() {
+ return valueMetaData;
+ }
+
+ @XmlElement(name="valueType")
+ public void setValueMetaData(final ValueMetaData valueMetaData) {
+ this.valueMetaData = valueMetaData;
+ }
+
+ public boolean isOnlyOnce() {
+ return onlyOnce;
+ }
+
+ @XmlElement(name="only-once")
+ public void setOnlyOnce(final boolean onlyOnce) {
+ this.onlyOnce = onlyOnce;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/FileHandlerMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/FileHandlerMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/FileHandlerMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlAttribute;
+
+ at XmlType(name = "fileHandlerType", propOrder = {})
+public class FileHandlerMetaData extends AbstractHandlerMetaData {
+ private String fileName;
+ private boolean append;
+
+ public String getFileName() {
+ return fileName;
+ }
+
+ @XmlAttribute(name = "file-name")
+ public void setFileName(final String fileName) {
+ this.fileName = fileName;
+ }
+
+ public boolean isAppend() {
+ return append;
+ }
+
+ @XmlAttribute
+ public void setAppend(final boolean append) {
+ this.append = append;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/FilterMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/FilterMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/FilterMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlAttribute;
+
+ at XmlType(name="filterType", propOrder = {})
+public class FilterMetaData extends SimpleFilterMetaData {
+ private String name;
+
+ public String getName() {
+ return name;
+ }
+
+ @XmlAttribute
+ public void setName(final String name) {
+ this.name = name;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/FormatterMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/FormatterMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/FormatterMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,62 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import org.jboss.beans.metadata.spi.ValueMetaData;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlElement;
+
+ at XmlType(name = "formatterType", propOrder = {})
+public class FormatterMetaData {
+ private PatternFormatterMetaData patternFormatterMetaData;
+ private RefMetaData formatterRefMetaData;
+ private ValueMetaData valueMetaData;
+
+ public PatternFormatterMetaData getPatternFormatterMetaData() {
+ return patternFormatterMetaData;
+ }
+
+ @XmlElement(name = "pattern-formatter")
+ public void setPatternFormatterMetaData(final PatternFormatterMetaData patternFormatterMetaData) {
+ this.patternFormatterMetaData = patternFormatterMetaData;
+ }
+
+ public RefMetaData getFormatterRefMetaData() {
+ return formatterRefMetaData;
+ }
+
+ @XmlElement(name = "formatter-ref")
+ public void setFormatterRefMetaData(final RefMetaData formatterRefMetaData) {
+ this.formatterRefMetaData = formatterRefMetaData;
+ }
+
+ public ValueMetaData getValueMetaData() {
+ return valueMetaData;
+ }
+
+ @XmlElement(name = "value")
+ public void setValueMetaData(final ValueMetaData valueMetaData) {
+ this.valueMetaData = valueMetaData;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/HandlerMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/HandlerMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/HandlerMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,29 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlType(name="handlerType", propOrder = {})
+public class HandlerMetaData extends AbstractHandlerBeanMetaData {
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/InstallHandlerMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/InstallHandlerMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/InstallHandlerMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,30 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlType(name = "installHandlerType", propOrder = {})
+public class InstallHandlerMetaData {
+
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LevelChangeFilterMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LevelChangeFilterMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LevelChangeFilterMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlAttribute;
+
+ at XmlType(name = "levelChangeFilterType")
+public class LevelChangeFilterMetaData extends AbstractSimpleFilterMetaData {
+ private String level;
+
+ public String getLevel() {
+ return level;
+ }
+
+ @XmlAttribute(required = true)
+ public void setLevel(final String level) {
+ this.level = level;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LevelFilterMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LevelFilterMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LevelFilterMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlAttribute;
+
+ at XmlType(name = "levelFilterType")
+public class LevelFilterMetaData extends AbstractSimpleFilterMetaData {
+ private String level;
+
+ public String getLevel() {
+ return level;
+ }
+
+ @XmlAttribute(required = true)
+ public void setLevel(final String level) {
+ this.level = level;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LevelRangeFilterMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LevelRangeFilterMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LevelRangeFilterMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,70 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlAttribute;
+
+ at XmlType(name = "levelRangeFilterType")
+public class LevelRangeFilterMetaData extends AbstractSimpleFilterMetaData {
+ private String minLevel;
+ private boolean minInclusive;
+ private String maxLevel;
+ private boolean maxInclusive;
+
+ public String getMinLevel() {
+ return minLevel;
+ }
+
+ @XmlAttribute(name = "min-level", required = true)
+ public void setMinLevel(final String minLevel) {
+ this.minLevel = minLevel;
+ }
+
+ public boolean isMinInclusive() {
+ return minInclusive;
+ }
+
+ @XmlAttribute(name = "min-inclusive")
+ public void setMinInclusive(final boolean minInclusive) {
+ this.minInclusive = minInclusive;
+ }
+
+ public String getMaxLevel() {
+ return maxLevel;
+ }
+
+ @XmlAttribute(name = "max-level", required = true)
+ public void setMaxLevel(final String maxLevel) {
+ this.maxLevel = maxLevel;
+ }
+
+ public boolean isMaxInclusive() {
+ return maxInclusive;
+ }
+
+ @XmlAttribute(name = "max-inclusive")
+ public void setMaxInclusive(final boolean maxInclusive) {
+ this.maxInclusive = maxInclusive;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/Log4jAppenderMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/Log4jAppenderMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/Log4jAppenderMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,29 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlType(name = "handlerType", propOrder = {})
+public class Log4jAppenderMetaData extends AbstractHandlerBeanMetaData {
+}
\ No newline at end of file
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LoggerMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LoggerMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LoggerMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlAttribute;
+
+ at XmlType(name = "loggerType", propOrder = {})
+public class LoggerMetaData extends AbstractLoggerMetaData {
+ private boolean useParentHandlers = true;
+ private String category;
+
+ public boolean isUseParentHandlers() {
+ return useParentHandlers;
+ }
+
+ @XmlAttribute(name = "use-parent-handlers")
+ public void setUseParentHandlers(final boolean useParentHandlers) {
+ this.useParentHandlers = useParentHandlers;
+ }
+
+ public String getCategory() {
+ return category;
+ }
+
+ @XmlAttribute(required = true)
+ public void setCategory(final String category) {
+ this.category = category;
+ }
+}
+
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LoggerRefMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LoggerRefMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LoggerRefMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlAttribute;
+
+ at XmlType(name = "loggerRefType", propOrder = {})
+public class LoggerRefMetaData extends AbstractLoggerRefMetaData {
+ private String category;
+
+ public String getCategory() {
+ return category;
+ }
+
+ @XmlAttribute(required = true)
+ public void setCategory(final String category) {
+ this.category = category;
+ }
+}
Modified: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LoggingMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LoggingMetaData.java 2009-07-06 20:34:57 UTC (rev 90867)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/LoggingMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -27,13 +27,78 @@
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlNsForm;
import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import java.util.List;
+
/**
*
*/
- at JBossXmlSchema(namespace = "urn:jboss:logging:5.0", elementFormDefault = XmlNsForm.QUALIFIED)
+ at JBossXmlSchema(namespace = "urn:jboss:logging:6.0", elementFormDefault = XmlNsForm.QUALIFIED)
@XmlRootElement(name = "jboss-logging")
@XmlType(name = "jboss-logging", propOrder = {})
-public final class LoggingMetaData {
-
+public class LoggingMetaData {
+ private List<AbstractLoggerMetaData> loggerMetaDataList;
+ private List<AbstractHandlerMetaData> handlerMetaDataList;
+ private List<FormatterMetaData> formatterMetaDataList;
+ private List<InstallHandlerMetaData> installHandlerMetaDataList;
+ private String context;
+
+ public List<AbstractLoggerMetaData> getLoggerMetaDataList() {
+ return loggerMetaDataList;
+ }
+
+ @XmlElements({
+ @XmlElement(name = "root-logger", type = RootLoggerMetaData.class),
+ @XmlElement(name = "logger", type = LoggerMetaData.class)
+ })
+ public void setLoggerMetaDataList(final List<AbstractLoggerMetaData> loggerMetaDataList) {
+ this.loggerMetaDataList = loggerMetaDataList;
+ }
+
+ public List<AbstractHandlerMetaData> getHandlerMetaDataList() {
+ return handlerMetaDataList;
+ }
+
+ @XmlElements({
+ @XmlElement(name = "handler", type = HandlerMetaData.class),
+ @XmlElement(name = "log4j-appender", type = Log4jAppenderMetaData.class),
+ @XmlElement(name = "console-handler", type = ConsoleHandlerMetaData.class),
+ @XmlElement(name = "file-handler", type = FileHandlerMetaData.class),
+ @XmlElement(name = "periodic-rotating-file-handler", type = PeriodicRotatingFileHandlerMetaData.class),
+ @XmlElement(name = "size-rotating-file-handler", type = SizeRotatingFileHandlerMetaData.class),
+ @XmlElement(name = "async-handler", type = AsyncHandlerMetaData.class),
+ @XmlElement(name = "null-handler", type = NullHandlerMetaData.class)
+ })
+ public void setHandlerMetaDataList(final List<AbstractHandlerMetaData> handlerMetaDataList) {
+ this.handlerMetaDataList = handlerMetaDataList;
+ }
+
+ public List<FormatterMetaData> getFormatterMetaDataList() {
+ return formatterMetaDataList;
+ }
+
+ @XmlElement(name = "formatter")
+ public void setFormatterMetaDataList(final List<FormatterMetaData> formatterMetaDataList) {
+ this.formatterMetaDataList = formatterMetaDataList;
+ }
+
+ public List<InstallHandlerMetaData> getInstallHandlerMetaDataList() {
+ return installHandlerMetaDataList;
+ }
+
+ @XmlElement(name = "install-handler")
+ public void setInstallHandlerMetaDataList(final List<InstallHandlerMetaData> installHandlerMetaDataList) {
+ this.installHandlerMetaDataList = installHandlerMetaDataList;
+ }
+
+ public String getContext() {
+ return context;
+ }
+
+ @XmlElement(name = "context")
+ public void setContext(final String context) {
+ this.context = context;
+ }
}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/MatchFilterMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/MatchFilterMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/MatchFilterMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlAttribute;
+
+ at XmlType(name = "regexFilterType", propOrder = {})
+public class MatchFilterMetaData extends AbstractSimpleFilterMetaData {
+ private String pattern;
+
+ public String getPattern() {
+ return pattern;
+ }
+
+ @XmlAttribute(required = true)
+ public void setPattern(final String pattern) {
+ this.pattern = pattern;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/NotFilterMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/NotFilterMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/NotFilterMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,26 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+public class NotFilterMetaData extends SimpleFilterMetaData {
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/NullHandlerMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/NullHandlerMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/NullHandlerMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,29 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlType(name = "handlerBaseType", propOrder = {})
+public class NullHandlerMetaData extends AbstractHandlerMetaData {
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/PatternFormatterMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/PatternFormatterMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/PatternFormatterMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlAttribute;
+
+ at XmlType(name = "patternFormatterType", propOrder = {})
+public class PatternFormatterMetaData {
+ private String pattern;
+ private String name;
+
+ public String getPattern() {
+ return pattern;
+ }
+
+ @XmlAttribute(required = true)
+ public void setPattern(final String pattern) {
+ this.pattern = pattern;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ @XmlAttribute
+ public void setName(final String name) {
+ this.name = name;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/PeriodicRotatingFileHandlerMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/PeriodicRotatingFileHandlerMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/PeriodicRotatingFileHandlerMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlAttribute;
+
+ at XmlType(name = "periodicFileHandlerType", propOrder = {})
+public class PeriodicRotatingFileHandlerMetaData extends FileHandlerMetaData {
+ private String suffix;
+
+ public String getSuffix() {
+ return suffix;
+ }
+
+ @XmlAttribute(required = true)
+ public void setSuffix(final String suffix) {
+ this.suffix = suffix;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/RefMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/RefMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/RefMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlType(name = "refType", propOrder = {})
+public class RefMetaData {
+ private String name;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(final String name) {
+ this.name = name;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/ReplaceFilterMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/ReplaceFilterMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/ReplaceFilterMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlAttribute;
+
+ at XmlType(name = "replaceFilterType")
+public class ReplaceFilterMetaData extends AbstractSimpleFilterMetaData {
+ private String pattern;
+ private String replacement;
+ private boolean replaceAll;
+
+ public String getPattern() {
+ return pattern;
+ }
+
+ @XmlAttribute(required = true)
+ public void setPattern(final String pattern) {
+ this.pattern = pattern;
+ }
+
+ public String getReplacement() {
+ return replacement;
+ }
+
+ @XmlAttribute(required = true)
+ public void setReplacement(final String replacement) {
+ this.replacement = replacement;
+ }
+
+ public boolean isReplaceAll() {
+ return replaceAll;
+ }
+
+ @XmlAttribute(name = "replace-all")
+ public void setReplaceAll(final boolean replaceAll) {
+ this.replaceAll = replaceAll;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/RootLoggerMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/RootLoggerMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/RootLoggerMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,30 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlType(name = "rootLoggerType", propOrder = {})
+public class RootLoggerMetaData extends AbstractLoggerMetaData {
+
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/RootLoggerRefMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/RootLoggerRefMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/RootLoggerRefMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,29 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlType(name = "contextRefType", propOrder = {})
+public class RootLoggerRefMetaData extends AbstractLoggerRefMetaData {
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/SimpleFilterMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/SimpleFilterMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/SimpleFilterMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import org.jboss.beans.metadata.spi.ValueMetaData;
+
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlType(name = "simpleFilterType")
+public class SimpleFilterMetaData {
+
+ private Object value;
+
+ public Object getValue() {
+ return value;
+ }
+
+ @XmlElements({
+ @XmlElement(name = "all", type = AllFilterMetaData.class),
+ @XmlElement(name = "any", type = AnyFilterMetaData.class),
+ @XmlElement(name = "accept", type = AcceptFilterMetaData.class),
+ @XmlElement(name = "deny", type = DenyFilterMetaData.class),
+ @XmlElement(name = "not", type = NotFilterMetaData.class),
+ @XmlElement(name = "match", type = MatchFilterMetaData.class),
+ @XmlElement(name = "replace", type = ReplaceFilterMetaData.class),
+ @XmlElement(name = "level", type = LevelFilterMetaData.class),
+ @XmlElement(name = "level-range", type = LevelRangeFilterMetaData.class),
+ @XmlElement(name = "change-level", type = LevelChangeFilterMetaData.class),
+
+ @XmlElement(name = "value", type = ValueMetaData.class),
+
+ @XmlElement(name = "filter-ref", type = RefMetaData.class)
+ })
+ public void setValue(final Object value) {
+ this.value = value;
+ }
+}
Added: projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/SizeRotatingFileHandlerMetaData.java
===================================================================
--- projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/SizeRotatingFileHandlerMetaData.java (rev 0)
+++ projects/logging-service-metadata/trunk/src/main/java/org/jboss/logging/metadata/SizeRotatingFileHandlerMetaData.java 2009-07-06 21:55:55 UTC (rev 90868)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.logging.metadata;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlAttribute;
+
+ at XmlType(name = "sizeFileHandlerType", propOrder = {})
+public class SizeRotatingFileHandlerMetaData extends FileHandlerMetaData {
+ private String rotateSizeString;
+ private int maxBackupIndex = 1;
+
+ public String getRotateSizeString() {
+ return rotateSizeString;
+ }
+
+ @XmlAttribute(name = "rotate-size")
+ public void setRotateSizeString(final String rotateSizeString) {
+ this.rotateSizeString = rotateSizeString;
+ }
+
+ public int getMaxBackupIndex() {
+ return maxBackupIndex;
+ }
+
+ @XmlAttribute(name = "max-backup-index")
+ public void setMaxBackupIndex(final int maxBackupIndex) {
+ this.maxBackupIndex = maxBackupIndex;
+ }
+}
Modified: projects/logging-service-metadata/trunk/src/main/resources/META-INF/schema/jboss-logging_6_0.xsd
===================================================================
--- projects/logging-service-metadata/trunk/src/main/resources/META-INF/schema/jboss-logging_6_0.xsd 2009-07-06 20:34:57 UTC (rev 90867)
+++ projects/logging-service-metadata/trunk/src/main/resources/META-INF/schema/jboss-logging_6_0.xsd 2009-07-06 21:55:55 UTC (rev 90868)
@@ -25,6 +25,8 @@
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:bd="urn:jboss:bean-deployer:2.0"
+ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
+ jaxb:version="2.0"
targetNamespace="urn:jboss:logging:6.0"
xmlns="urn:jboss:logging:6.0"
elementFormDefault="qualified"
@@ -52,6 +54,8 @@
<xs:element name="root-logger" type="rootLoggerType"/>
<!-- formatters -->
<xs:element name="formatter" type="formatterType"/>
+ <!-- install-handlers -->
+ <xs:element name="install-handler" type="installHandlerType"/>
</xs:choice>
<xs:attribute name="context" type="xs:string" use="optional"/>
</xs:complexType>
@@ -132,7 +136,7 @@
</xs:annotation>
<xs:all minOccurs="1" maxOccurs="1">
<xs:element name="level" type="refType" minOccurs="0"/>
- <xs:element name="filter" type="filter" minOccurs="0"/>
+ <xs:element name="filter" type="filterType" minOccurs="0"/>
<xs:element name="handlers" minOccurs="0" type="handlersType"/>
</xs:all>
</xs:complexType>
@@ -166,7 +170,7 @@
<xs:element name="file-handler" type="fileHandlerType"/>
<xs:element name="periodic-rotating-file-handler" type="periodicFileHandlerType"/>
<xs:element name="size-rotating-file-handler" type="sizeFileHandlerType"/>
- <xs:element name="async-handler" type="asyncHandler"/>
+ <xs:element name="async-handler" type="asyncHandlerType"/>
<xs:element name="null-handler" type="handlerBaseType"/>
</xs:choice>
</xs:group>
@@ -205,7 +209,7 @@
</xs:annotation>
<xs:all>
<xs:element name="level" type="refType" minOccurs="0"/>
- <xs:element name="filter" type="filter" minOccurs="0"/>
+ <xs:element name="filter" type="filterType" minOccurs="0"/>
<xs:element name="error-manager" type="errorManagerType" minOccurs="0"/>
<xs:element name="formatter" type="formatterType" minOccurs="0"/>
<xs:element name="loggers" type="loggersType" minOccurs="0"/>
@@ -311,7 +315,7 @@
</xs:complexContent>
</xs:complexType>
- <xs:complexType name="asyncHandler">
+ <xs:complexType name="asyncHandlerType">
<xs:annotation>
<xs:documentation>
Defines a handler which writes to the sub-handlers in an asynchronous thread. Used for handlers which
@@ -341,7 +345,7 @@
<!-- Filters -->
- <xs:complexType name="filter">
+ <xs:complexType name="filterType">
<xs:annotation>
<xs:documentation>
Defines a named logging filter.
@@ -406,7 +410,7 @@
</xs:annotation>
<xs:attribute name="pattern" type="xs:string" use="required"/>
<xs:attribute name="replacement" type="xs:string" use="required"/>
- <xs:attribute name="replaceAll" type="xs:boolean" default="true"/>
+ <xs:attribute name="replace-all" type="xs:boolean" default="true"/>
</xs:complexType>
<xs:complexType name="levelFilterType">
More information about the jboss-cvs-commits
mailing list