[jboss-cvs] JBossAS SVN: r90040 - in projects/jboss-man/tags: 2.1.1.Beta3 and 4 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jun 10 02:02:41 EDT 2009
Author: scott.stark at jboss.org
Date: 2009-06-10 02:02:40 -0400 (Wed, 10 Jun 2009)
New Revision: 90040
Added:
projects/jboss-man/tags/2.1.1.Beta3/
projects/jboss-man/tags/2.1.1.Beta3/build/pom.xml
projects/jboss-man/tags/2.1.1.Beta3/managed/pom.xml
projects/jboss-man/tags/2.1.1.Beta3/managed/src/main/java/org/jboss/managed/plugins/DefaultFieldsImpl.java
projects/jboss-man/tags/2.1.1.Beta3/managed/src/main/java/org/jboss/managed/plugins/ManagedObjectImpl.java
projects/jboss-man/tags/2.1.1.Beta3/metatype/pom.xml
projects/jboss-man/tags/2.1.1.Beta3/pom.xml
Removed:
projects/jboss-man/tags/2.1.1.Beta3/build/pom.xml
projects/jboss-man/tags/2.1.1.Beta3/managed/pom.xml
projects/jboss-man/tags/2.1.1.Beta3/managed/src/main/java/org/jboss/managed/plugins/DefaultFieldsImpl.java
projects/jboss-man/tags/2.1.1.Beta3/managed/src/main/java/org/jboss/managed/plugins/ManagedObjectImpl.java
projects/jboss-man/tags/2.1.1.Beta3/metatype/pom.xml
projects/jboss-man/tags/2.1.1.Beta3/pom.xml
Log:
[maven-release-plugin] copy for tag 2.1.1.Beta3
Copied: projects/jboss-man/tags/2.1.1.Beta3 (from rev 89708, projects/jboss-man/branches/Branch_2_1)
Deleted: projects/jboss-man/tags/2.1.1.Beta3/build/pom.xml
===================================================================
--- projects/jboss-man/branches/Branch_2_1/build/pom.xml 2009-06-03 01:52:14 UTC (rev 89708)
+++ projects/jboss-man/tags/2.1.1.Beta3/build/pom.xml 2009-06-10 06:02:40 UTC (rev 90040)
@@ -1,54 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <groupId>org.jboss.man</groupId>
- <artifactId>jboss-man-parent</artifactId>
- <version>2.1.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.jboss.man</groupId>
- <artifactId>jboss-man</artifactId>
- <version>2.1.1-SNAPSHOT</version>
- <packaging>pom</packaging>
- <name>JBoss Managed Distribution</name>
- <url>http://www.jboss.org/jbossmc</url>
- <description>JBoss Managed Distribution Build</description>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.2-beta-2</version>
- <executions>
- <execution>
- <id>make-assembly</id>
- <phase>package</phase>
- <goals>
- <goal>attached</goal>
- </goals>
- <configuration>
- <finalName>jboss-man-${project.version}</finalName>
- <descriptors>
- <descriptor>src/assembly/dist.xml</descriptor>
- <descriptor>src/assembly/dist-with-deps.xml</descriptor>
- <descriptor>src/assembly/src.xml</descriptor>
- </descriptors>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>org.jboss.man</groupId>
- <artifactId>jboss-managed</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jboss.man</groupId>
- <artifactId>jboss-metatype</artifactId>
- </dependency>
- </dependencies>
-
-</project>
Copied: projects/jboss-man/tags/2.1.1.Beta3/build/pom.xml (from rev 90039, projects/jboss-man/branches/Branch_2_1/build/pom.xml)
===================================================================
--- projects/jboss-man/tags/2.1.1.Beta3/build/pom.xml (rev 0)
+++ projects/jboss-man/tags/2.1.1.Beta3/build/pom.xml 2009-06-10 06:02:40 UTC (rev 90040)
@@ -0,0 +1,54 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.man</groupId>
+ <artifactId>jboss-man-parent</artifactId>
+ <version>2.1.1.Beta3</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.man</groupId>
+ <artifactId>jboss-man</artifactId>
+ <version>2.1.1.Beta3</version>
+ <packaging>pom</packaging>
+ <name>JBoss Managed Distribution</name>
+ <url>http://www.jboss.org/jbossmc</url>
+ <description>JBoss Managed Distribution Build</description>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-2</version>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attached</goal>
+ </goals>
+ <configuration>
+ <finalName>jboss-man-${project.version}</finalName>
+ <descriptors>
+ <descriptor>src/assembly/dist.xml</descriptor>
+ <descriptor>src/assembly/dist-with-deps.xml</descriptor>
+ <descriptor>src/assembly/src.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.man</groupId>
+ <artifactId>jboss-managed</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.man</groupId>
+ <artifactId>jboss-metatype</artifactId>
+ </dependency>
+ </dependencies>
+
+</project>
Deleted: projects/jboss-man/tags/2.1.1.Beta3/managed/pom.xml
===================================================================
--- projects/jboss-man/branches/Branch_2_1/managed/pom.xml 2009-06-03 01:52:14 UTC (rev 89708)
+++ projects/jboss-man/tags/2.1.1.Beta3/managed/pom.xml 2009-06-10 06:02:40 UTC (rev 90040)
@@ -1,66 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <groupId>org.jboss.man</groupId>
- <artifactId>jboss-man-parent</artifactId>
- <version>2.1.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>jboss-managed</artifactId>
- <packaging>jar</packaging>
- <name>JBoss Managed</name>
- <url>http://www.jboss.org/jbossmc</url>
- <description>JBoss Managed</description>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <configuration>
- <descriptors>
- <descriptor>src/assembly/api.xml</descriptor>
- <descriptor>src/assembly/plugins.xml</descriptor>
- </descriptors>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <!-- Do not add version information here, use ../pom.xml instead -->
- <dependencies>
- <!-- Global dependencies -->
- <dependency>
- <groupId>org.jboss.man</groupId>
- <artifactId>jboss-metatype</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-mdr</artifactId>
- </dependency>
- <!-- Test dependencies -->
- <dependency>
- <groupId>sun-jaxb</groupId>
- <artifactId>jaxb-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jboss.logging</groupId>
- <artifactId>jboss-logging-log4j</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.test</groupId>
- <artifactId>jboss-test</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>javassist</groupId>
- <artifactId>javassist</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
\ No newline at end of file
Copied: projects/jboss-man/tags/2.1.1.Beta3/managed/pom.xml (from rev 90039, projects/jboss-man/branches/Branch_2_1/managed/pom.xml)
===================================================================
--- projects/jboss-man/tags/2.1.1.Beta3/managed/pom.xml (rev 0)
+++ projects/jboss-man/tags/2.1.1.Beta3/managed/pom.xml 2009-06-10 06:02:40 UTC (rev 90040)
@@ -0,0 +1,66 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.man</groupId>
+ <artifactId>jboss-man-parent</artifactId>
+ <version>2.1.1.Beta3</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jboss-managed</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Managed</name>
+ <url>http://www.jboss.org/jbossmc</url>
+ <description>JBoss Managed</description>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <descriptors>
+ <descriptor>src/assembly/api.xml</descriptor>
+ <descriptor>src/assembly/plugins.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <!-- Do not add version information here, use ../pom.xml instead -->
+ <dependencies>
+ <!-- Global dependencies -->
+ <dependency>
+ <groupId>org.jboss.man</groupId>
+ <artifactId>jboss-metatype</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-mdr</artifactId>
+ </dependency>
+ <!-- Test dependencies -->
+ <dependency>
+ <groupId>sun-jaxb</groupId>
+ <artifactId>jaxb-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-log4j</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.test</groupId>
+ <artifactId>jboss-test</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>javassist</groupId>
+ <artifactId>javassist</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Deleted: projects/jboss-man/tags/2.1.1.Beta3/managed/src/main/java/org/jboss/managed/plugins/DefaultFieldsImpl.java
===================================================================
--- projects/jboss-man/branches/Branch_2_1/managed/src/main/java/org/jboss/managed/plugins/DefaultFieldsImpl.java 2009-06-03 01:52:14 UTC (rev 89708)
+++ projects/jboss-man/tags/2.1.1.Beta3/managed/src/main/java/org/jboss/managed/plugins/DefaultFieldsImpl.java 2009-06-10 06:02:40 UTC (rev 90040)
@@ -1,383 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt 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.managed.plugins;
-
-import java.io.IOException;
-import java.io.Serializable;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-
-import org.jboss.managed.api.Fields;
-import org.jboss.managed.api.annotation.ViewUse;
-import org.jboss.metatype.api.types.MetaType;
-import org.jboss.metatype.api.values.MetaValue;
-import org.jboss.metatype.api.values.SimpleValue;
-
-/**
- * A default implementation of the Fields interface.
- *
- * @author Scott.Stark at jboss.org
- * @version $Revision$
- */
-public class DefaultFieldsImpl
- implements Fields
-{
- private static String END_MARKER = "__END_OF_FIELDS__";
-
- /** The serialVersionUID */
- private static final long serialVersionUID = 1;
-
- /** The fields */
- private HashMap<String, Object> fields = new HashMap<String, Object>();
-
- /**
- * Create a new DefaultFieldsImpl.
- */
- public DefaultFieldsImpl()
- {
- }
-
- /**
- * Create a new DefaultFieldsImpl.
- *
- * @param name the property name
- */
- public DefaultFieldsImpl(String name)
- {
- this.setName(name);
- }
-
- /**
- * Get the property name
- *
- * @return the name
- */
- public String getName()
- {
- return getField(NAME, String.class);
- }
-
- /**
- * Set the property name
- *
- * @param name the name
- */
- public void setName(String name)
- {
- setField(NAME, name);
- }
-
- /**
- * Get the description
- *
- * @return the description
- */
- public String getDescription()
- {
- return getField(DESCRIPTION, String.class);
- }
-
- /**
- * Set the description
- *
- * @param description the description
- */
- public void setDescription(String description)
- {
- setField(DESCRIPTION, description);
- }
-
- /**
- * Get the meta type
- *
- * @return the meta type
- */
- public MetaType getMetaType()
- {
- return getField(META_TYPE, MetaType.class);
- }
-
- /**
- * Set the meta type
- *
- * @param type the meta type
- */
- public void setMetaType(MetaType type)
- {
- setField(META_TYPE, type);
- }
-
- /**
- * Get the value
- *
- * @return the value
- */
- public MetaValue getValue()
- {
- return getField(VALUE, MetaValue.class);
- }
-
- /**
- * Set the value
- *
- * @param value the value
- */
- public void setValue(MetaValue value)
- {
- setField(VALUE, value);
- }
-
- /**
- * Get the view use
- * @return the view use field
- */
- public ViewUse[] getViewUse()
- {
- return getField(VIEW_USE, ViewUse[].class);
- }
- /**
- * Set the view use
- * @param use - the view use
- */
- public void setViewUse(ViewUse[] use)
- {
- setField(VIEW_USE, use);
- }
-
- /**
- * Get the legal values
- *
- * @return the values
- */
- @SuppressWarnings("unchecked")
- public Set<MetaValue> getLegalValues()
- {
- return getField(LEGAL_VALUES, Set.class);
- }
-
- /**
- * Set the legal values
- *
- * @param values the values
- */
- public void setLegalValues(Set<MetaValue> values)
- {
- setField(LEGAL_VALUES, (Serializable)values);
- }
-
- /**
- * Get the minimum value
- *
- * @return the minimum value
- */
- public Comparable<?> getMinimumValue()
- {
- return getField(MINIMUM_VALUE, Comparable.class);
- }
-
- /**
- * Set the minimum value
- *
- * @param value the value
- */
- public void setMinimumValue(Comparable<?> value)
- {
- setField(MINIMUM_VALUE, (Serializable)value);
- }
-
- /**
- * Get the maximum value
- *
- * @return the value
- */
- public Comparable<?> getMaximumValue()
- {
- return getField(MAXIMUM_VALUE, Comparable.class);
- }
-
- /**
- * Get the maximum value
- *
- * @param value the value
- */
- public void setMaximumValue(Comparable<?> value)
- {
- setField(MAXIMUM_VALUE, (Serializable)value);
- }
-
- /**
- * Get whether the property is mandatory
- *
- * @return true when mandaotry
- */
- public boolean isMandatory()
- {
- Boolean result = getField(MANDATORY, Boolean.class);
- if (result == null)
- return false;
- return result;
- }
-
- /**
- * Set the mandatory value
- *
- * @param flag true when mandatory
- */
- public void setMandatory(boolean flag)
- {
- if (flag)
- setField(MANDATORY, flag);
- else
- setField(MANDATORY, null);
- }
-
- /**
- * Get a field
- *
- * @param name the field name
- */
- public Object getField(String name)
- {
- return fields.get(name);
- }
-
- /**
- * Set a field
- *
- * @param name the field name
- * @param value the value
- */
- public void setField(String name, Object value)
- {
- fields.put(name, value);
- }
-
- /**
- * Get a field
- *
- * @param <T> the expected type
- * @param fieldName the field name
- * @param expected the expected type
- * @return the field value
- */
- @SuppressWarnings("unchecked")
- public <T> T getField(String fieldName, Class<T> expected)
- {
- if (fieldName == null)
- throw new IllegalArgumentException("Null field name");
- if (expected == null)
- throw new IllegalArgumentException("Null expected type");
-
- Object field = getField(fieldName);
-
- if (field == null)
- return null;
-
- if (expected.isInstance(field))
- return expected.cast(field);
-
- if (field instanceof SimpleValue)
- {
- SimpleValue value = (SimpleValue) field;
- Object result = value.getValue();
- if (result == null)
- return null;
- return expected.cast(result);
- }
-
- throw new IllegalStateException("Field " + fieldName + " with value " + field + " is a of the expected type: " + expected.getName());
- }
-
- @SuppressWarnings("unchecked")
- public Fields copy()
- {
- DefaultFieldsImpl copy = new DefaultFieldsImpl();
- copy.fields = (HashMap<String, Object>) fields.clone();
- return copy;
- }
-
- /**
- * Display key fields like name, metaType and value
- */
- @Override
- public String toString()
- {
- StringBuilder sb = new StringBuilder(super.toString());
- //
- sb.append('(');
- sb.append(NAME);
- sb.append('=');
- sb.append(getName());
- sb.append(',');
- sb.append(META_TYPE);
- sb.append('=');
- sb.append(getMetaType());
- sb.append(',');
- sb.append(VALUE);
- sb.append('=');
- sb.append(getValue());
- sb.append(')');
- return sb.toString();
- }
-
- /**
- * Only write out the fields that should be usable by a remote client.
- * Excludes:
- * PROPERTY_INFO
- * ATTACHMENT
- *
- * @param out
- * @throws IOException
- */
- private void writeObject(java.io.ObjectOutputStream out)
- throws IOException
- {
- for (Map.Entry<String, Object> entry : fields.entrySet())
- {
- if(entry.getKey().equals(PROPERTY_INFO))
- continue;
- if(entry.getKey().equals(ATTACHMENT))
- continue;
- out.writeUTF(entry.getKey());
- out.writeObject(entry.getValue());
- }
- out.writeUTF(END_MARKER);
- }
- private void readObject(java.io.ObjectInputStream in)
- throws IOException, ClassNotFoundException
- {
- fields = new HashMap<String, Object>();
- String key;
- do
- {
- key = in.readUTF();
- if(key.equals(END_MARKER))
- key = null;
- else
- {
- Serializable value = (Serializable) in.readObject();
- fields.put(key, value);
- }
- } while(key != null);
- }
-}
Copied: projects/jboss-man/tags/2.1.1.Beta3/managed/src/main/java/org/jboss/managed/plugins/DefaultFieldsImpl.java (from rev 90037, projects/jboss-man/branches/Branch_2_1/managed/src/main/java/org/jboss/managed/plugins/DefaultFieldsImpl.java)
===================================================================
--- projects/jboss-man/tags/2.1.1.Beta3/managed/src/main/java/org/jboss/managed/plugins/DefaultFieldsImpl.java (rev 0)
+++ projects/jboss-man/tags/2.1.1.Beta3/managed/src/main/java/org/jboss/managed/plugins/DefaultFieldsImpl.java 2009-06-10 06:02:40 UTC (rev 90040)
@@ -0,0 +1,386 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt 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.managed.plugins;
+
+import java.io.IOException;
+import java.io.Serializable;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Set;
+
+import org.jboss.managed.api.Fields;
+import org.jboss.managed.api.annotation.ViewUse;
+import org.jboss.metatype.api.types.MetaType;
+import org.jboss.metatype.api.values.MetaValue;
+import org.jboss.metatype.api.values.SimpleValue;
+
+/**
+ * A default implementation of the Fields interface.
+ *
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public class DefaultFieldsImpl
+ implements Fields
+{
+ private static String END_MARKER = "__END_OF_FIELDS__";
+
+ /** The serialVersionUID */
+ private static final long serialVersionUID = 1;
+
+ /** The fields */
+ private HashMap<String, Object> fields = new HashMap<String, Object>();
+
+ /**
+ * Create a new DefaultFieldsImpl.
+ */
+ public DefaultFieldsImpl()
+ {
+ }
+
+ /**
+ * Create a new DefaultFieldsImpl.
+ *
+ * @param name the property name
+ */
+ public DefaultFieldsImpl(String name)
+ {
+ this.setName(name);
+ }
+
+ /**
+ * Get the property name
+ *
+ * @return the name
+ */
+ public String getName()
+ {
+ return getField(NAME, String.class);
+ }
+
+ /**
+ * Set the property name
+ *
+ * @param name the name
+ */
+ public void setName(String name)
+ {
+ setField(NAME, name);
+ }
+
+ /**
+ * Get the description
+ *
+ * @return the description
+ */
+ public String getDescription()
+ {
+ return getField(DESCRIPTION, String.class);
+ }
+
+ /**
+ * Set the description
+ *
+ * @param description the description
+ */
+ public void setDescription(String description)
+ {
+ setField(DESCRIPTION, description);
+ }
+
+ /**
+ * Get the meta type
+ *
+ * @return the meta type
+ */
+ public MetaType getMetaType()
+ {
+ return getField(META_TYPE, MetaType.class);
+ }
+
+ /**
+ * Set the meta type
+ *
+ * @param type the meta type
+ */
+ public void setMetaType(MetaType type)
+ {
+ setField(META_TYPE, type);
+ }
+
+ /**
+ * Get the value
+ *
+ * @return the value
+ */
+ public MetaValue getValue()
+ {
+ return getField(VALUE, MetaValue.class);
+ }
+
+ /**
+ * Set the value
+ *
+ * @param value the value
+ */
+ public void setValue(MetaValue value)
+ {
+ setField(VALUE, value);
+ }
+
+ /**
+ * Get the view use
+ * @return the view use field
+ */
+ public ViewUse[] getViewUse()
+ {
+ return getField(VIEW_USE, ViewUse[].class);
+ }
+ /**
+ * Set the view use
+ * @param use - the view use
+ */
+ public void setViewUse(ViewUse[] use)
+ {
+ setField(VIEW_USE, use);
+ }
+
+ /**
+ * Get the legal values
+ *
+ * @return the values
+ */
+ @SuppressWarnings("unchecked")
+ public Set<MetaValue> getLegalValues()
+ {
+ return getField(LEGAL_VALUES, Set.class);
+ }
+
+ /**
+ * Set the legal values
+ *
+ * @param values the values
+ */
+ public void setLegalValues(Set<MetaValue> values)
+ {
+ setField(LEGAL_VALUES, (Serializable)values);
+ }
+
+ /**
+ * Get the minimum value
+ *
+ * @return the minimum value
+ */
+ public Comparable<?> getMinimumValue()
+ {
+ return getField(MINIMUM_VALUE, Comparable.class);
+ }
+
+ /**
+ * Set the minimum value
+ *
+ * @param value the value
+ */
+ public void setMinimumValue(Comparable<?> value)
+ {
+ setField(MINIMUM_VALUE, (Serializable)value);
+ }
+
+ /**
+ * Get the maximum value
+ *
+ * @return the value
+ */
+ public Comparable<?> getMaximumValue()
+ {
+ return getField(MAXIMUM_VALUE, Comparable.class);
+ }
+
+ /**
+ * Get the maximum value
+ *
+ * @param value the value
+ */
+ public void setMaximumValue(Comparable<?> value)
+ {
+ setField(MAXIMUM_VALUE, (Serializable)value);
+ }
+
+ /**
+ * Get whether the property is mandatory
+ *
+ * @return true when mandaotry
+ */
+ public boolean isMandatory()
+ {
+ Boolean result = getField(MANDATORY, Boolean.class);
+ if (result == null)
+ return false;
+ return result;
+ }
+
+ /**
+ * Set the mandatory value
+ *
+ * @param flag true when mandatory
+ */
+ public void setMandatory(boolean flag)
+ {
+ if (flag)
+ setField(MANDATORY, flag);
+ else
+ setField(MANDATORY, null);
+ }
+
+ /**
+ * Get a field
+ *
+ * @param name the field name
+ */
+ public Object getField(String name)
+ {
+ return fields.get(name);
+ }
+
+ /**
+ * Set a field
+ *
+ * @param name the field name
+ * @param value the value
+ */
+ public void setField(String name, Object value)
+ {
+ fields.put(name, value);
+ }
+
+ /**
+ * Get a field
+ *
+ * @param <T> the expected type
+ * @param fieldName the field name
+ * @param expected the expected type
+ * @return the field value
+ */
+ @SuppressWarnings("unchecked")
+ public <T> T getField(String fieldName, Class<T> expected)
+ {
+ if (fieldName == null)
+ throw new IllegalArgumentException("Null field name");
+ if (expected == null)
+ throw new IllegalArgumentException("Null expected type");
+
+ Object field = getField(fieldName);
+
+ if (field == null)
+ return null;
+
+ if (expected.isInstance(field))
+ return expected.cast(field);
+
+ if (field instanceof SimpleValue)
+ {
+ SimpleValue value = (SimpleValue) field;
+ Object result = value.getValue();
+ if (result == null)
+ return null;
+ return expected.cast(result);
+ }
+
+ throw new IllegalStateException("Field " + fieldName + " with value " + field + " is a of the expected type: " + expected.getName());
+ }
+
+ @SuppressWarnings("unchecked")
+ public Fields copy()
+ {
+ DefaultFieldsImpl copy = new DefaultFieldsImpl();
+ copy.fields = (HashMap<String, Object>) fields.clone();
+ return copy;
+ }
+
+ /**
+ * Display key fields like name, metaType and value
+ */
+ @Override
+ public String toString()
+ {
+ StringBuilder sb = new StringBuilder(super.toString());
+ //
+ sb.append('(');
+ sb.append(NAME);
+ sb.append('=');
+ sb.append(getName());
+ sb.append(',');
+ sb.append(META_TYPE);
+ sb.append('=');
+ sb.append(getMetaType());
+ sb.append(',');
+ sb.append(VALUE);
+ sb.append('=');
+ sb.append(getValue());
+ sb.append(')');
+ return sb.toString();
+ }
+
+ /**
+ * Only write out the fields that should be usable by a remote client.
+ * Excludes:
+ * PROPERTY_INFO
+ * ATTACHMENT
+ *
+ * @param out
+ * @throws IOException
+ */
+ private void writeObject(java.io.ObjectOutputStream out)
+ throws IOException
+ {
+ for (Map.Entry<String, Object> entry : fields.entrySet())
+ {
+ if(entry.getKey().equals(PROPERTY_INFO))
+ continue;
+ else if(entry.getKey().equals(ATTACHMENT))
+ continue;
+ else if(entry.getKey().equals(ANNOTATIONS))
+ continue;
+
+ out.writeUTF(entry.getKey());
+ out.writeObject(entry.getValue());
+ }
+ out.writeUTF(END_MARKER);
+ }
+ private void readObject(java.io.ObjectInputStream in)
+ throws IOException, ClassNotFoundException
+ {
+ fields = new HashMap<String, Object>();
+ String key;
+ do
+ {
+ key = in.readUTF();
+ if(key.equals(END_MARKER))
+ key = null;
+ else
+ {
+ Serializable value = (Serializable) in.readObject();
+ fields.put(key, value);
+ }
+ } while(key != null);
+ }
+}
Deleted: projects/jboss-man/tags/2.1.1.Beta3/managed/src/main/java/org/jboss/managed/plugins/ManagedObjectImpl.java
===================================================================
--- projects/jboss-man/branches/Branch_2_1/managed/src/main/java/org/jboss/managed/plugins/ManagedObjectImpl.java 2009-06-03 01:52:14 UTC (rev 89708)
+++ projects/jboss-man/tags/2.1.1.Beta3/managed/src/main/java/org/jboss/managed/plugins/ManagedObjectImpl.java 2009-06-10 06:02:40 UTC (rev 90040)
@@ -1,388 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt 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.managed.plugins;
-
-import java.io.Serializable;
-import java.lang.annotation.Annotation;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Map;
-import java.util.Set;
-
-import org.jboss.managed.api.ManagedObject;
-import org.jboss.managed.api.ManagedOperation;
-import org.jboss.managed.api.ManagedProperty;
-import org.jboss.managed.api.MutableManagedObject;
-
-/**
- * ManagedObjectImpl.
- *
- * @author <a href="adrian at jboss.com">Adrian Brock</a>
- * @author Scott.Stark at jboss.org
- * @version $Revision$
- */
-public class ManagedObjectImpl implements MutableManagedObject
-{
- /** The serialVersionUID */
- private static final long serialVersionUID = 2L;
-
- /** The object name used for ManagementRef resolution */
- private String name;
- /** The name type/qualifier used for ManagementRef resolution */
- private String nameType;
- /** The attachment name */
- private String attachmentName;
-
- /** The attachment */
- private transient Object attachment;
- /** The object annotations <Class name, Annotation> */
- private Map<String, Annotation> annotations = Collections.emptyMap();
- /** The properties */
- private Map<String, ManagedProperty> properties;
- /** The operations */
- private Set<ManagedOperation> operations;
- /** The option parent of this ManagedObject */
- private ManagedObject parent;
- /** The runtime component name */
- private transient Object componentName;
- /** The transient attachments map */
- private transient Map<String, Object> transientAttachments;
-
- /**
- * Create a new ManagedObjectImpl
- *
- * @param name - The object name used for ManagementRef resolution
- */
- public ManagedObjectImpl(String name)
- {
- this(name, name, null, toMap(null), new HashSet<ManagedOperation>(), null);
- }
-
- /**
- * Create a new ManagedObjectImpl
- *
- * @param name - The object name used for ManagementRef resolution
- * @param properties the properties
- */
- public ManagedObjectImpl(String name, Set<ManagedProperty> properties)
- {
- this(name, name, null, properties, new HashSet<ManagedOperation>(), null);
- }
-
- /**
- * Create a new ManagedObjectImpl
- *
- * @param name - The object name used for ManagementRef resolution
- * @param properties the properties
- * @param operations the operations
- */
- public ManagedObjectImpl(String name, Set<ManagedProperty> properties,
- Set<ManagedOperation> operations)
- {
- this(name, name, null, properties, operations, null);
- }
- @Deprecated
- public ManagedObjectImpl(String name, Set<ManagedProperty> properties,
- HashSet<ManagedOperation> operations)
- {
- this(name, name, null, properties, operations, null);
- }
-
- /**
- * Create a new ManagedObjectImpl
- *
- * @param name - The object name used for ManagementRef resolution
- * @param nameType - The name type/qualifier used for ManagementRef resolution
- * @param attachmentName the attachment name
- * @param properties the properties
- * @param operations the operations
- * @param attachment the attachment
- */
- public ManagedObjectImpl(
- String name,
- String nameType,
- String attachmentName,
- Set<ManagedProperty> properties,
- Set<ManagedOperation> operations,
- Object attachment
- )
- {
- this(name, nameType, attachmentName, toMap(properties), operations, attachment);
- }
- @Deprecated
- public ManagedObjectImpl(
- String name,
- String nameType,
- String attachmentName,
- Set<ManagedProperty> properties,
- HashSet<ManagedOperation> operations,
- Serializable attachment
- )
- {
- this(name, nameType, attachmentName, toMap(properties), operations, attachment);
- }
-
- /**
- * Create a new ManagedObjectImpl
- *
- * @param name - The object name used for ManagementRef resolution
- * @param nameType - The name type/qualifier used for ManagementRef resolution
- * @param attachmentName the attachment name
- * @param properties the properties
- * @param operations the operations
- * @param attachment the attachment
- */
- public ManagedObjectImpl(
- String name,
- String nameType,
- String attachmentName,
- Map<String, ManagedProperty> properties,
- Set<ManagedOperation> operations,
- Object attachment
- )
- {
- if (name == null)
- throw new IllegalArgumentException("Null name");
- if (properties == null)
- throw new IllegalArgumentException("Null properties");
-
- this.name = name;
- // todo - check for null?
- this.nameType = nameType;
- this.attachmentName = attachmentName;
- this.properties = properties;
- this.operations = operations;
- setAttachment(attachment);
- }
- @Deprecated
- public ManagedObjectImpl(
- String name,
- String nameType,
- String attachmentName,
- Map<String, ManagedProperty> properties,
- HashSet<ManagedOperation> operations,
- Serializable attachment
- )
- {
- this(name, name, attachmentName, properties, (Set<ManagedOperation>)operations, attachment);
- }
-
- public String getName()
- {
- return name;
- }
-
- public void setName(String name)
- {
- this.name = name;
- }
-
- public String getNameType()
- {
- return nameType;
- }
-
- public void setNameType(String nameType)
- {
- this.nameType = nameType;
- }
-
- public String getAttachmentName()
- {
- return attachmentName;
- }
-
- public void setAttachmentName(String attachmentName)
- {
- this.attachmentName = attachmentName;
- }
-
- /**
- * Get the annotations associated with the property
- * @return the annotations associated with the property
- */
- public Map<String, Annotation> getAnnotations()
- {
- return annotations;
- }
-
- public void setAnnotations(Map<String, Annotation> annotations)
- {
- if (this.annotations.isEmpty())
- this.annotations = new HashMap<String, Annotation>();
- else
- this.annotations.clear();
- this.annotations.putAll(annotations);
- }
-
- public Set<String> getPropertyNames()
- {
- return properties.keySet();
- }
-
- public ManagedProperty getProperty(String name)
- {
- if (name == null)
- throw new IllegalArgumentException("Null name");
-
- return properties.get(name);
- }
-
- public Map<String, ManagedProperty> getProperties()
- {
- return properties;
- }
-
- public void setProperties(Map<String, ManagedProperty> properties)
- {
- this.properties = properties;
- }
-
- public Object getAttachment()
- {
- return attachment;
- }
-
- /**
- * Set the attachment.
- *
- * @param attachment the attachment.
- */
- public void setAttachment(Object attachment)
- {
- this.attachment = attachment;
- }
-
- /**
- * get the ManagedOperations
- * @return set of managed operations
- */
- public Set<ManagedOperation> getOperations()
- {
- return operations;
- }
-
- public void setOperations(Set<ManagedOperation> operations)
- {
- this.operations = operations;
- }
-
-
- public ManagedObject getParent()
- {
- return parent;
- }
-
- public void setParent(ManagedObject parent)
- {
- this.parent = parent;
- }
-
- public Object getComponentName()
- {
- return componentName;
- }
-
- public void setComponentName(Object name)
- {
- this.componentName = name;
- }
-
-
- public <T> T getTransientAttachment(Class<T> expectedType)
- {
- T tvalue = null;
- Object value = getTransientAttachment(expectedType.getName());
- if(value != null)
- tvalue = expectedType.cast(value);
- return tvalue;
- }
-
- public Object getTransientAttachment(String name)
- {
- Object value = null;
- if(transientAttachments != null)
- value = transientAttachments.get(name);
- return value;
- }
-
- public synchronized void setTransientAttachment(String name, Object attachment)
- {
- if(transientAttachments == null)
- transientAttachments = new HashMap<String, Object>();
- transientAttachments.put(name, attachment);
- }
-
- @Override
- public boolean equals(Object obj)
- {
- if (obj == this)
- return true;
- if (obj == null || obj instanceof ManagedObject == false)
- return false;
-
- ManagedObject other = (ManagedObject) obj;
- return getName().equals(other.getName()) && getProperties().equals(other.getProperties());
- }
-
- @Override
- public int hashCode()
- {
- return name.hashCode();
- }
-
- @Override
- public String toString()
- {
- return "ManagedObject{" + name + "}";
- }
-
- /**
- * Append the name and props
- * @param sb the buffer to append the name and props to
- */
- protected void toString(StringBuilder sb)
- {
- sb.append("name=");
- sb.append(name);
- sb.append(", nameType=");
- sb.append(nameType);
- sb.append(", attachmentName=");
- sb.append(attachmentName);
- sb.append(", properties=");
- sb.append(properties);
- }
-
- private static Map<String, ManagedProperty> toMap(Set<ManagedProperty> props)
- {
- HashMap<String, ManagedProperty> properties = new HashMap<String, ManagedProperty>();
- if (props != null && props.isEmpty() == false)
- {
- for (ManagedProperty prop : props)
- {
- properties.put(prop.getName(), prop);
- }
- }
- return properties;
- }
-}
Copied: projects/jboss-man/tags/2.1.1.Beta3/managed/src/main/java/org/jboss/managed/plugins/ManagedObjectImpl.java (from rev 90036, projects/jboss-man/branches/Branch_2_1/managed/src/main/java/org/jboss/managed/plugins/ManagedObjectImpl.java)
===================================================================
--- projects/jboss-man/tags/2.1.1.Beta3/managed/src/main/java/org/jboss/managed/plugins/ManagedObjectImpl.java (rev 0)
+++ projects/jboss-man/tags/2.1.1.Beta3/managed/src/main/java/org/jboss/managed/plugins/ManagedObjectImpl.java 2009-06-10 06:02:40 UTC (rev 90040)
@@ -0,0 +1,388 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.managed.plugins;
+
+import java.io.Serializable;
+import java.lang.annotation.Annotation;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import org.jboss.managed.api.ManagedObject;
+import org.jboss.managed.api.ManagedOperation;
+import org.jboss.managed.api.ManagedProperty;
+import org.jboss.managed.api.MutableManagedObject;
+
+/**
+ * ManagedObjectImpl.
+ *
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public class ManagedObjectImpl implements MutableManagedObject
+{
+ /** The serialVersionUID */
+ private static final long serialVersionUID = 3L;
+
+ /** The object name used for ManagementRef resolution */
+ private String name;
+ /** The name type/qualifier used for ManagementRef resolution */
+ private String nameType;
+ /** The attachment name */
+ private String attachmentName;
+
+ /** The attachment */
+ private transient Object attachment;
+ /** The object annotations <Class name, Annotation> */
+ private transient Map<String, Annotation> annotations = Collections.emptyMap();
+ /** The properties */
+ private Map<String, ManagedProperty> properties;
+ /** The operations */
+ private Set<ManagedOperation> operations;
+ /** The option parent of this ManagedObject */
+ private ManagedObject parent;
+ /** The runtime component name */
+ private transient Object componentName;
+ /** The transient attachments map */
+ private transient Map<String, Object> transientAttachments;
+
+ /**
+ * Create a new ManagedObjectImpl
+ *
+ * @param name - The object name used for ManagementRef resolution
+ */
+ public ManagedObjectImpl(String name)
+ {
+ this(name, name, null, toMap(null), new HashSet<ManagedOperation>(), null);
+ }
+
+ /**
+ * Create a new ManagedObjectImpl
+ *
+ * @param name - The object name used for ManagementRef resolution
+ * @param properties the properties
+ */
+ public ManagedObjectImpl(String name, Set<ManagedProperty> properties)
+ {
+ this(name, name, null, properties, new HashSet<ManagedOperation>(), null);
+ }
+
+ /**
+ * Create a new ManagedObjectImpl
+ *
+ * @param name - The object name used for ManagementRef resolution
+ * @param properties the properties
+ * @param operations the operations
+ */
+ public ManagedObjectImpl(String name, Set<ManagedProperty> properties,
+ Set<ManagedOperation> operations)
+ {
+ this(name, name, null, properties, operations, null);
+ }
+ @Deprecated
+ public ManagedObjectImpl(String name, Set<ManagedProperty> properties,
+ HashSet<ManagedOperation> operations)
+ {
+ this(name, name, null, properties, operations, null);
+ }
+
+ /**
+ * Create a new ManagedObjectImpl
+ *
+ * @param name - The object name used for ManagementRef resolution
+ * @param nameType - The name type/qualifier used for ManagementRef resolution
+ * @param attachmentName the attachment name
+ * @param properties the properties
+ * @param operations the operations
+ * @param attachment the attachment
+ */
+ public ManagedObjectImpl(
+ String name,
+ String nameType,
+ String attachmentName,
+ Set<ManagedProperty> properties,
+ Set<ManagedOperation> operations,
+ Object attachment
+ )
+ {
+ this(name, nameType, attachmentName, toMap(properties), operations, attachment);
+ }
+ @Deprecated
+ public ManagedObjectImpl(
+ String name,
+ String nameType,
+ String attachmentName,
+ Set<ManagedProperty> properties,
+ HashSet<ManagedOperation> operations,
+ Serializable attachment
+ )
+ {
+ this(name, nameType, attachmentName, toMap(properties), operations, attachment);
+ }
+
+ /**
+ * Create a new ManagedObjectImpl
+ *
+ * @param name - The object name used for ManagementRef resolution
+ * @param nameType - The name type/qualifier used for ManagementRef resolution
+ * @param attachmentName the attachment name
+ * @param properties the properties
+ * @param operations the operations
+ * @param attachment the attachment
+ */
+ public ManagedObjectImpl(
+ String name,
+ String nameType,
+ String attachmentName,
+ Map<String, ManagedProperty> properties,
+ Set<ManagedOperation> operations,
+ Object attachment
+ )
+ {
+ if (name == null)
+ throw new IllegalArgumentException("Null name");
+ if (properties == null)
+ throw new IllegalArgumentException("Null properties");
+
+ this.name = name;
+ // todo - check for null?
+ this.nameType = nameType;
+ this.attachmentName = attachmentName;
+ this.properties = properties;
+ this.operations = operations;
+ setAttachment(attachment);
+ }
+ @Deprecated
+ public ManagedObjectImpl(
+ String name,
+ String nameType,
+ String attachmentName,
+ Map<String, ManagedProperty> properties,
+ HashSet<ManagedOperation> operations,
+ Serializable attachment
+ )
+ {
+ this(name, name, attachmentName, properties, (Set<ManagedOperation>)operations, attachment);
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ public String getNameType()
+ {
+ return nameType;
+ }
+
+ public void setNameType(String nameType)
+ {
+ this.nameType = nameType;
+ }
+
+ public String getAttachmentName()
+ {
+ return attachmentName;
+ }
+
+ public void setAttachmentName(String attachmentName)
+ {
+ this.attachmentName = attachmentName;
+ }
+
+ /**
+ * Get the annotations associated with the property
+ * @return the annotations associated with the property
+ */
+ public Map<String, Annotation> getAnnotations()
+ {
+ return annotations;
+ }
+
+ public void setAnnotations(Map<String, Annotation> annotations)
+ {
+ if (this.annotations.isEmpty())
+ this.annotations = new HashMap<String, Annotation>();
+ else
+ this.annotations.clear();
+ this.annotations.putAll(annotations);
+ }
+
+ public Set<String> getPropertyNames()
+ {
+ return properties.keySet();
+ }
+
+ public ManagedProperty getProperty(String name)
+ {
+ if (name == null)
+ throw new IllegalArgumentException("Null name");
+
+ return properties.get(name);
+ }
+
+ public Map<String, ManagedProperty> getProperties()
+ {
+ return properties;
+ }
+
+ public void setProperties(Map<String, ManagedProperty> properties)
+ {
+ this.properties = properties;
+ }
+
+ public Object getAttachment()
+ {
+ return attachment;
+ }
+
+ /**
+ * Set the attachment.
+ *
+ * @param attachment the attachment.
+ */
+ public void setAttachment(Object attachment)
+ {
+ this.attachment = attachment;
+ }
+
+ /**
+ * get the ManagedOperations
+ * @return set of managed operations
+ */
+ public Set<ManagedOperation> getOperations()
+ {
+ return operations;
+ }
+
+ public void setOperations(Set<ManagedOperation> operations)
+ {
+ this.operations = operations;
+ }
+
+
+ public ManagedObject getParent()
+ {
+ return parent;
+ }
+
+ public void setParent(ManagedObject parent)
+ {
+ this.parent = parent;
+ }
+
+ public Object getComponentName()
+ {
+ return componentName;
+ }
+
+ public void setComponentName(Object name)
+ {
+ this.componentName = name;
+ }
+
+
+ public <T> T getTransientAttachment(Class<T> expectedType)
+ {
+ T tvalue = null;
+ Object value = getTransientAttachment(expectedType.getName());
+ if(value != null)
+ tvalue = expectedType.cast(value);
+ return tvalue;
+ }
+
+ public Object getTransientAttachment(String name)
+ {
+ Object value = null;
+ if(transientAttachments != null)
+ value = transientAttachments.get(name);
+ return value;
+ }
+
+ public synchronized void setTransientAttachment(String name, Object attachment)
+ {
+ if(transientAttachments == null)
+ transientAttachments = new HashMap<String, Object>();
+ transientAttachments.put(name, attachment);
+ }
+
+ @Override
+ public boolean equals(Object obj)
+ {
+ if (obj == this)
+ return true;
+ if (obj == null || obj instanceof ManagedObject == false)
+ return false;
+
+ ManagedObject other = (ManagedObject) obj;
+ return getName().equals(other.getName()) && getProperties().equals(other.getProperties());
+ }
+
+ @Override
+ public int hashCode()
+ {
+ return name.hashCode();
+ }
+
+ @Override
+ public String toString()
+ {
+ return "ManagedObject{" + name + "}";
+ }
+
+ /**
+ * Append the name and props
+ * @param sb the buffer to append the name and props to
+ */
+ protected void toString(StringBuilder sb)
+ {
+ sb.append("name=");
+ sb.append(name);
+ sb.append(", nameType=");
+ sb.append(nameType);
+ sb.append(", attachmentName=");
+ sb.append(attachmentName);
+ sb.append(", properties=");
+ sb.append(properties);
+ }
+
+ private static Map<String, ManagedProperty> toMap(Set<ManagedProperty> props)
+ {
+ HashMap<String, ManagedProperty> properties = new HashMap<String, ManagedProperty>();
+ if (props != null && props.isEmpty() == false)
+ {
+ for (ManagedProperty prop : props)
+ {
+ properties.put(prop.getName(), prop);
+ }
+ }
+ return properties;
+ }
+}
Deleted: projects/jboss-man/tags/2.1.1.Beta3/metatype/pom.xml
===================================================================
--- projects/jboss-man/branches/Branch_2_1/metatype/pom.xml 2009-06-03 01:52:14 UTC (rev 89708)
+++ projects/jboss-man/tags/2.1.1.Beta3/metatype/pom.xml 2009-06-10 06:02:40 UTC (rev 90040)
@@ -1,74 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <groupId>org.jboss.man</groupId>
- <artifactId>jboss-man-parent</artifactId>
- <version>2.1.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>jboss-metatype</artifactId>
- <packaging>jar</packaging>
- <name>JBoss Metatype</name>
- <url>http://www.jboss.org/jbossmc</url>
- <description>JBoss Metatype</description>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <testFailureIgnore>false</testFailureIgnore>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <!-- Do not add version information here, use ../pom.xml instead -->
- <dependencies>
- <!-- Global dependencies -->
- <dependency>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-reflect</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-common-core</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.jboss.logging</groupId>
- <artifactId>jboss-logging-spi</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.jboss.logging</groupId>
- <artifactId>jboss-logging-spi</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-common-core</artifactId>
- </dependency>
- <!-- Test dependencies -->
- <dependency>
- <groupId>org.jboss.logging</groupId>
- <artifactId>jboss-logging-log4j</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.test</groupId>
- <artifactId>jboss-test</artifactId>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <groupId>org.jboss.man</groupId>
- <artifactId>jboss-managed</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
-</project>
Copied: projects/jboss-man/tags/2.1.1.Beta3/metatype/pom.xml (from rev 90039, projects/jboss-man/branches/Branch_2_1/metatype/pom.xml)
===================================================================
--- projects/jboss-man/tags/2.1.1.Beta3/metatype/pom.xml (rev 0)
+++ projects/jboss-man/tags/2.1.1.Beta3/metatype/pom.xml 2009-06-10 06:02:40 UTC (rev 90040)
@@ -0,0 +1,74 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.man</groupId>
+ <artifactId>jboss-man-parent</artifactId>
+ <version>2.1.1.Beta3</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jboss-metatype</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Metatype</name>
+ <url>http://www.jboss.org/jbossmc</url>
+ <description>JBoss Metatype</description>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <testFailureIgnore>false</testFailureIgnore>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <!-- Do not add version information here, use ../pom.xml instead -->
+ <dependencies>
+ <!-- Global dependencies -->
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-reflect</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-common-core</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-spi</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-spi</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-common-core</artifactId>
+ </dependency>
+ <!-- Test dependencies -->
+ <dependency>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-log4j</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.test</groupId>
+ <artifactId>jboss-test</artifactId>
+ <scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>org.jboss.man</groupId>
+ <artifactId>jboss-managed</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
Deleted: projects/jboss-man/tags/2.1.1.Beta3/pom.xml
===================================================================
--- projects/jboss-man/branches/Branch_2_1/pom.xml 2009-06-03 01:52:14 UTC (rev 89708)
+++ projects/jboss-man/tags/2.1.1.Beta3/pom.xml 2009-06-10 06:02:40 UTC (rev 90040)
@@ -1,250 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-parent</artifactId>
- <version>4</version>
- </parent>
- <groupId>org.jboss.man</groupId>
- <artifactId>jboss-man-parent</artifactId>
- <version>2.1.1-SNAPSHOT</version>
- <packaging>pom</packaging>
- <name>JBoss Managed Parent POM</name>
- <url>http://www.jboss.org/jbossmc</url>
- <description>JBoss Managed Parent POM</description>
- <scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/jboss-man/branches/</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/jboss-man/branches/</developerConnection>
- <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/jboss-man/trunk/</url>
- </scm>
-
- <properties>
- <version.jboss.common.core>2.2.10.GA</version.jboss.common.core>
- <version.jboss.common.logging.spi>2.0.5.GA</version.jboss.common.logging.spi>
- <version.jboss.common.logging.log4j>2.0.5.GA</version.jboss.common.logging.log4j>
- <version.org.jboss.reflect>2.0.2.GA</version.org.jboss.reflect>
- <version.org.jboss.mdr>2.0.1.GA</version.org.jboss.mdr>
- <version.org.jboss.test>1.1.3.GA</version.org.jboss.test>
- <version.junit>4.4</version.junit>
- <version.sun.jaxb>2.1.4</version.sun.jaxb>
- <version.javassist>3.9.0.GA</version.javassist>
- </properties>
-
- <modules>
- <module>metatype</module>
- <module>managed</module>
- <module>build</module>
- </modules>
-
- <build>
- <outputDirectory>${microcontainer.outputDirectory}</outputDirectory>
- <testOutputDirectory>${microcontainer.testOutputDirectory}</testOutputDirectory>
- <finalName>${artifactId}</finalName>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.0.2</version>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- <showDeprecation>true</showDeprecation>
- <showWarnings>true</showWarnings>
- <optimize>true</optimize>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-release-plugin</artifactId>
- <version>2.0-beta-7</version>
- <configuration>
- <tagBase>https://svn.jboss.org/repos/jbossas/projects/jboss-man/tags</tagBase>
- <autoVersionSubmodules>true</autoVersionSubmodules>
- </configuration>
- </plugin>
- </plugins>
-
- <pluginManagement>
- <plugins>
- <plugin>
- <artifactId>maven-idea-plugin</artifactId>
- <configuration>
- <downloadSources>true</downloadSources>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.2</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.4.2</version>
- <configuration>
- <redirectTestOutputToFile>true</redirectTestOutputToFile>
- <includes>
- <include>org/jboss/test/**/*TestCase.java</include>
- </includes>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
-
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-project-info-reports-plugin</artifactId>
- <reportSets>
- <reportSet>
- <reports>
- <report>dependencies</report>
- <report>issue-tracking</report>
- <report>license</report>
- <report>scm</report>
- </reports>
- </reportSet>
- </reportSets>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <version>1.0.0</version>
- </plugin>
- </plugins>
- </reporting>
- <dependencyManagement>
- <!-- The parent pom manages the inter-dependencies of the modules. -->
- <dependencies>
- <dependency>
- <groupId>org.jboss.man</groupId>
- <artifactId>jboss-managed</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.man</groupId>
- <artifactId>jboss-metatype</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-common-core</artifactId>
- <version>${version.jboss.common.core}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.logging</groupId>
- <artifactId>jboss-logging-spi</artifactId>
- <version>${version.jboss.common.logging.spi}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.logging</groupId>
- <artifactId>jboss-logging-log4j</artifactId>
- <version>${version.jboss.common.logging.log4j}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-reflect</artifactId>
- <version>${version.org.jboss.reflect}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-mdr</artifactId>
- <version>${version.org.jboss.mdr}</version>
- </dependency>
- <!-- test dependencies -->
- <dependency>
- <groupId>org.jboss.test</groupId>
- <artifactId>jboss-test</artifactId>
- <version>${version.org.jboss.test}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${version.junit}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>sun-jaxb</groupId>
- <artifactId>jaxb-api</artifactId>
- <version>${version.sun.jaxb}</version>
- </dependency>
- <dependency>
- <groupId>javassist</groupId>
- <artifactId>javassist</artifactId>
- <version>${version.javassist}</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <repositories>
- <repository>
- <id>repository.jboss.org</id>
- <name>JBoss Repository</name>
- <layout>default</layout>
- <url>http://repository.jboss.org/maven2/</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- <repository>
- <id>snapshots.jboss.org</id>
- <name>JBoss Snapshots Repository</name>
- <layout>default</layout>
- <url>http://snapshots.jboss.org/maven2/</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </repository>
- </repositories>
-
- <profiles>
- <profile>
- <id>default</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <properties>
- <microcontainer.outputDirectory>target/classes</microcontainer.outputDirectory>
- <microcontainer.testOutputDirectory>target/tests-classes</microcontainer.testOutputDirectory>
- </properties>
- </profile>
- <profile>
- <id>eclipse</id>
- <build>
- <defaultGoal>process-test-resources</defaultGoal>
- <plugins>
- <plugin>
- <artifactId>maven-eclipse-plugin</artifactId>
- <executions>
- <execution>
- <id>eclipse</id>
- <phase>process-test-resources</phase>
- <goals>
- <goal>eclipse</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <downloadSources>true</downloadSources>
- <buildOutputDirectory>${microcontainer.outputDirectory}</buildOutputDirectory>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <properties>
- <microcontainer.outputDirectory>eclipse-target/classes</microcontainer.outputDirectory>
- <microcontainer.testOutputDirectory>eclipse-target/tests-classes</microcontainer.testOutputDirectory>
- </properties>
- </profile>
- </profiles>
-
-</project>
Copied: projects/jboss-man/tags/2.1.1.Beta3/pom.xml (from rev 90039, projects/jboss-man/branches/Branch_2_1/pom.xml)
===================================================================
--- projects/jboss-man/tags/2.1.1.Beta3/pom.xml (rev 0)
+++ projects/jboss-man/tags/2.1.1.Beta3/pom.xml 2009-06-10 06:02:40 UTC (rev 90040)
@@ -0,0 +1,250 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-parent</artifactId>
+ <version>4</version>
+ </parent>
+ <groupId>org.jboss.man</groupId>
+ <artifactId>jboss-man-parent</artifactId>
+ <version>2.1.1.Beta3</version>
+ <packaging>pom</packaging>
+ <name>JBoss Managed Parent POM</name>
+ <url>http://www.jboss.org/jbossmc</url>
+ <description>JBoss Managed Parent POM</description>
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/jboss-man/tags/2.1.1.Beta3</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/jboss-man/tags/2.1.1.Beta3</developerConnection>
+ <url>scm:svn:https://svn.jboss.org/repos/jbossas/projects/jboss-man/tags/2.1.1.Beta3</url>
+ </scm>
+
+ <properties>
+ <version.jboss.common.core>2.2.10.GA</version.jboss.common.core>
+ <version.jboss.common.logging.spi>2.0.5.GA</version.jboss.common.logging.spi>
+ <version.jboss.common.logging.log4j>2.0.5.GA</version.jboss.common.logging.log4j>
+ <version.org.jboss.reflect>2.0.2.GA</version.org.jboss.reflect>
+ <version.org.jboss.mdr>2.0.1.GA</version.org.jboss.mdr>
+ <version.org.jboss.test>1.1.3.GA</version.org.jboss.test>
+ <version.junit>4.4</version.junit>
+ <version.sun.jaxb>2.1.4</version.sun.jaxb>
+ <version.javassist>3.9.0.GA</version.javassist>
+ </properties>
+
+ <modules>
+ <module>metatype</module>
+ <module>managed</module>
+ <module>build</module>
+ </modules>
+
+ <build>
+ <outputDirectory>${microcontainer.outputDirectory}</outputDirectory>
+ <testOutputDirectory>${microcontainer.testOutputDirectory}</testOutputDirectory>
+ <finalName>${artifactId}</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ <showDeprecation>true</showDeprecation>
+ <showWarnings>true</showWarnings>
+ <optimize>true</optimize>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>2.0-beta-7</version>
+ <configuration>
+ <tagBase>https://svn.jboss.org/repos/jbossas/projects/jboss-man/tags</tagBase>
+ <autoVersionSubmodules>true</autoVersionSubmodules>
+ </configuration>
+ </plugin>
+ </plugins>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-idea-plugin</artifactId>
+ <configuration>
+ <downloadSources>true</downloadSources>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.4.2</version>
+ <configuration>
+ <redirectTestOutputToFile>true</redirectTestOutputToFile>
+ <includes>
+ <include>org/jboss/test/**/*TestCase.java</include>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>dependencies</report>
+ <report>issue-tracking</report>
+ <report>license</report>
+ <report>scm</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <version>1.0.0</version>
+ </plugin>
+ </plugins>
+ </reporting>
+ <dependencyManagement>
+ <!-- The parent pom manages the inter-dependencies of the modules. -->
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.man</groupId>
+ <artifactId>jboss-managed</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.man</groupId>
+ <artifactId>jboss-metatype</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-common-core</artifactId>
+ <version>${version.jboss.common.core}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-spi</artifactId>
+ <version>${version.jboss.common.logging.spi}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-log4j</artifactId>
+ <version>${version.jboss.common.logging.log4j}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-reflect</artifactId>
+ <version>${version.org.jboss.reflect}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-mdr</artifactId>
+ <version>${version.org.jboss.mdr}</version>
+ </dependency>
+ <!-- test dependencies -->
+ <dependency>
+ <groupId>org.jboss.test</groupId>
+ <artifactId>jboss-test</artifactId>
+ <version>${version.org.jboss.test}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${version.junit}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>sun-jaxb</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <version>${version.sun.jaxb}</version>
+ </dependency>
+ <dependency>
+ <groupId>javassist</groupId>
+ <artifactId>javassist</artifactId>
+ <version>${version.javassist}</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Repository</name>
+ <layout>default</layout>
+ <url>http://repository.jboss.org/maven2/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshots Repository</name>
+ <layout>default</layout>
+ <url>http://snapshots.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+ </repositories>
+
+ <profiles>
+ <profile>
+ <id>default</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <properties>
+ <microcontainer.outputDirectory>target/classes</microcontainer.outputDirectory>
+ <microcontainer.testOutputDirectory>target/tests-classes</microcontainer.testOutputDirectory>
+ </properties>
+ </profile>
+ <profile>
+ <id>eclipse</id>
+ <build>
+ <defaultGoal>process-test-resources</defaultGoal>
+ <plugins>
+ <plugin>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>eclipse</id>
+ <phase>process-test-resources</phase>
+ <goals>
+ <goal>eclipse</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <downloadSources>true</downloadSources>
+ <buildOutputDirectory>${microcontainer.outputDirectory}</buildOutputDirectory>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <properties>
+ <microcontainer.outputDirectory>eclipse-target/classes</microcontainer.outputDirectory>
+ <microcontainer.testOutputDirectory>eclipse-target/tests-classes</microcontainer.testOutputDirectory>
+ </properties>
+ </profile>
+ </profiles>
+
+</project>
More information about the jboss-cvs-commits
mailing list