[jboss-cvs] JBossAS SVN: r88857 - in projects/jboss-osgi/trunk: bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu May 14 05:11:36 EDT 2009
Author: thomas.diesler at jboss.com
Date: 2009-05-14 05:11:36 -0400 (Thu, 14 May 2009)
New Revision: 88857
Added:
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/BeanMetadataImpl.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/ComponentMetadataImpl.java
Removed:
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Bean.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Component.java
Modified:
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Blueprint.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TReferenceListener.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Targument.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tcollection.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tcomparator.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tkey.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TmapEntry.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tproperty.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TregistrationListener.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tservice.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TservicePropertyEntry.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TserviceReference.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TtypeConverters.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint-jbxb.xsd
projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/ParserTestCase.java
projects/jboss-osgi/trunk/pom.xml
Log:
BP: unmarshelled bean implements BeanMetadata
Deleted: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Bean.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Bean.java 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Bean.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -1,285 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, 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.osgi.blueprint.reflect;
-
-// $Id$
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.bind.JAXBElement;
-import javax.xml.namespace.QName;
-
-/**
- * The type defintion for a <bean> component.
- *
- * @author thomas.diesler at jboss.com
- * @since 13-May-2009
- */
-public class Bean extends Component
-{
- protected String description;
- protected List<Object> argumentOrPropertyOrAny;
- protected String className;
- protected String dependsOn;
- protected String initMethod;
- protected String destroyMethod;
- protected String factoryMethod;
- protected String factoryComponent;
- protected String scope;
- protected Boolean lazyInit;
- private Map<QName, String> otherAttributes = new HashMap<QName, String>();
-
- /**
- * Gets the value of the description property.
- */
- public String getDescription()
- {
- return description;
- }
-
- /**
- * Sets the value of the description property.
- */
- public void setDescription(String value)
- {
- this.description = value;
- }
-
- /**
- * Gets the value of the argumentOrPropertyOrAny property.
- *
- * <p>
- * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the
- * JAXB object. This is why there is not a <CODE>set</CODE> method for the argumentOrPropertyOrAny property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- *
- * <pre>
- * getArgumentOrPropertyOrAny().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list {@link Object } {@link JAXBElement }{@code <}{@link Targument }{@code >} {@link JAXBElement }{@code <}
- * {@link Tproperty }{@code >}
- *
- *
- */
- public List<Object> getArgumentOrPropertyOrAny()
- {
- if (argumentOrPropertyOrAny == null)
- {
- argumentOrPropertyOrAny = new ArrayList<Object>();
- }
- return this.argumentOrPropertyOrAny;
- }
-
- /**
- * Gets the value of the class property.
- */
- public String getClassName()
- {
- return className;
- }
-
- /**
- * Sets the value of the class property.
- */
- public void setClassName(String value)
- {
- this.className = value;
- }
-
- /**
- * Gets the value of the dependsOn property.
- *
- * @return possible object is {@link String }
- *
- */
- public String getDependsOn()
- {
- return dependsOn;
- }
-
- /**
- * Sets the value of the dependsOn property.
- *
- * @param value allowed object is {@link String }
- *
- */
- public void setDependsOn(String value)
- {
- this.dependsOn = value;
- }
-
- /**
- * Gets the value of the initMethod property.
- *
- * @return possible object is {@link String }
- *
- */
- public String getInitMethod()
- {
- return initMethod;
- }
-
- /**
- * Sets the value of the initMethod property.
- *
- * @param value allowed object is {@link String }
- *
- */
- public void setInitMethod(String value)
- {
- this.initMethod = value;
- }
-
- /**
- * Gets the value of the destroyMethod property.
- *
- * @return possible object is {@link String }
- *
- */
- public String getDestroyMethod()
- {
- return destroyMethod;
- }
-
- /**
- * Sets the value of the destroyMethod property.
- *
- * @param value allowed object is {@link String }
- *
- */
- public void setDestroyMethod(String value)
- {
- this.destroyMethod = value;
- }
-
- /**
- * Gets the value of the factoryMethod property.
- *
- * @return possible object is {@link String }
- *
- */
- public String getFactoryMethod()
- {
- return factoryMethod;
- }
-
- /**
- * Sets the value of the factoryMethod property.
- *
- * @param value allowed object is {@link String }
- *
- */
- public void setFactoryMethod(String value)
- {
- this.factoryMethod = value;
- }
-
- /**
- * Gets the value of the factoryComponent property.
- *
- * @return possible object is {@link String }
- *
- */
- public String getFactoryComponent()
- {
- return factoryComponent;
- }
-
- /**
- * Sets the value of the factoryComponent property.
- *
- * @param value allowed object is {@link String }
- *
- */
- public void setFactoryComponent(String value)
- {
- this.factoryComponent = value;
- }
-
- /**
- * Gets the value of the scope property.
- *
- * @return possible object is {@link String }
- *
- */
- public String getScope()
- {
- return scope;
- }
-
- /**
- * Sets the value of the scope property.
- *
- * @param value allowed object is {@link String }
- *
- */
- public void setScope(String value)
- {
- this.scope = value;
- }
-
- /**
- * Gets the value of the lazyInit property.
- *
- * @return possible object is {@link Boolean }
- *
- */
- public Boolean isLazyInit()
- {
- return lazyInit;
- }
-
- /**
- * Sets the value of the lazyInit property.
- *
- * @param value allowed object is {@link Boolean }
- *
- */
- public void setLazyInit(Boolean value)
- {
- this.lazyInit = value;
- }
-
- /**
- * Gets a map that contains attributes that aren't bound to any typed property on this class.
- *
- * <p>
- * the map is keyed by the name of the attribute and the value is the string value of the attribute.
- *
- * the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.
- *
- *
- * @return always non-null
- */
- public Map<QName, String> getOtherAttributes()
- {
- return otherAttributes;
- }
-}
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/BeanMetadataImpl.java (from rev 88856, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Bean.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/BeanMetadataImpl.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/BeanMetadataImpl.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -0,0 +1,325 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, 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.osgi.blueprint.reflect;
+
+// $Id$
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.namespace.QName;
+
+import org.jboss.osgi.spi.NotImplementedException;
+import org.osgi.service.blueprint.reflect.BeanMetadata;
+import org.osgi.service.blueprint.reflect.Target;
+
+/**
+ * The type defintion for a <bean> component.
+ *
+ * @author thomas.diesler at jboss.com
+ * @since 13-May-2009
+ */
+public class BeanMetadataImpl extends ComponentMetadataImpl implements BeanMetadata
+{
+ protected String description;
+ protected List<Object> argumentOrPropertyOrAny;
+ protected String className;
+ protected String dependsOn;
+ protected String initMethod;
+ protected String destroyMethod;
+ protected String factoryMethod;
+ protected String factoryComponent;
+ protected String scope;
+ protected Boolean lazyInit;
+ private Map<QName, String> otherAttributes = new HashMap<QName, String>();
+
+ /**
+ * Gets the value of the description property.
+ */
+ public String getDescription()
+ {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ */
+ public void setDescription(String value)
+ {
+ this.description = value;
+ }
+
+ /**
+ * Gets the value of the argumentOrPropertyOrAny property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the
+ * JAXB object. This is why there is not a <CODE>set</CODE> method for the argumentOrPropertyOrAny property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ *
+ * <pre>
+ * getArgumentOrPropertyOrAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list {@link Object } {@link JAXBElement }{@code <}{@link Targument }{@code >} {@link JAXBElement }{@code <}
+ * {@link Tproperty }{@code >}
+ *
+ *
+ */
+ public List<Object> getArgumentOrPropertyOrAny()
+ {
+ if (argumentOrPropertyOrAny == null)
+ {
+ argumentOrPropertyOrAny = new ArrayList<Object>();
+ }
+ return this.argumentOrPropertyOrAny;
+ }
+
+ /**
+ * Gets the value of the class property.
+ */
+ public String getClassName()
+ {
+ return className;
+ }
+
+ /**
+ * Sets the value of the class property.
+ */
+ public void setClassName(String value)
+ {
+ this.className = value;
+ }
+
+ /**
+ * Gets the value of the dependsOn property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getDependsOn()
+ {
+ return dependsOn;
+ }
+
+ /**
+ * Sets the value of the dependsOn property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setDependsOn(String value)
+ {
+ this.dependsOn = value;
+ }
+
+ /**
+ * Gets the value of the initMethod property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getInitMethod()
+ {
+ return initMethod;
+ }
+
+ /**
+ * Sets the value of the initMethod property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setInitMethod(String value)
+ {
+ this.initMethod = value;
+ }
+
+ /**
+ * Gets the value of the destroyMethod property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getDestroyMethod()
+ {
+ return destroyMethod;
+ }
+
+ /**
+ * Sets the value of the destroyMethod property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setDestroyMethod(String value)
+ {
+ this.destroyMethod = value;
+ }
+
+ /**
+ * Gets the value of the factoryMethod property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getFactoryMethod()
+ {
+ return factoryMethod;
+ }
+
+ /**
+ * Sets the value of the factoryMethod property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setFactoryMethod(String value)
+ {
+ this.factoryMethod = value;
+ }
+
+ /**
+ * Gets the value of the factoryComponent property.
+ *
+ */
+ public String getFactoryComponentId()
+ {
+ return factoryComponent;
+ }
+
+ /**
+ * Sets the value of the factoryComponent property.
+ *
+ */
+ public void setFactoryComponentId(String value)
+ {
+ this.factoryComponent = value;
+ }
+
+ /**
+ * Gets the value of the scope property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getScope()
+ {
+ return scope;
+ }
+
+ /**
+ * Sets the value of the scope property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setScope(String value)
+ {
+ this.scope = value;
+ }
+
+ /**
+ * Gets the value of the lazyInit property.
+ *
+ * @return possible object is {@link Boolean }
+ *
+ */
+ public boolean isLazyInit()
+ {
+ return lazyInit;
+ }
+
+ /**
+ * Sets the value of the lazyInit property.
+ *
+ * @param value allowed object is {@link Boolean }
+ *
+ */
+ public void setLazyInit(boolean value)
+ {
+ this.lazyInit = value;
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on this class.
+ *
+ * <p>
+ * the map is keyed by the name of the attribute and the value is the string value of the attribute.
+ *
+ * the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.
+ *
+ *
+ * @return always non-null
+ */
+ public Map<QName, String> getOtherAttributes()
+ {
+ return otherAttributes;
+ }
+
+ public List getArguments()
+ {
+ throw new NotImplementedException();
+ }
+
+ public String getDestroyMethodName()
+ {
+ throw new NotImplementedException();
+ }
+
+ public List getExplicitDependencies()
+ {
+ throw new NotImplementedException();
+ }
+
+ public String getFactoryMethodName()
+ {
+ throw new NotImplementedException();
+ }
+
+ public String getInitMethodName()
+ {
+ throw new NotImplementedException();
+ }
+
+ public List getProperties()
+ {
+ throw new NotImplementedException();
+ }
+
+ public Class getRuntimeClass()
+ {
+ throw new NotImplementedException();
+ }
+
+ public Target getFactoryComponent()
+ {
+ throw new NotImplementedException();
+ }
+}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Blueprint.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Blueprint.java 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Blueprint.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -47,7 +47,7 @@
{
protected String description;
protected TtypeConverters typeConverters;
- protected List<Component> components;
+ protected List<ComponentMetadataImpl> components;
protected Boolean defaultLazyInit;
protected String defaultInitMethod;
protected String defaultDestroyMethod;
@@ -98,11 +98,11 @@
/**
* Gets the value of components
*/
- public List<Component> getComponents()
+ public List<ComponentMetadataImpl> getComponents()
{
if (components == null)
{
- components = new ArrayList<Component>();
+ components = new ArrayList<ComponentMetadataImpl>();
}
return this.components;
}
Deleted: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Component.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Component.java 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Component.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -1,61 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, 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.osgi.blueprint.reflect;
-
-import org.osgi.service.blueprint.reflect.ComponentMetadata;
-
-// $Id$
-
-/**
- * The Component type is the base type for top-level
- * Blueprint components. The <bean> <reference>, <service>, <ref-set>, and <ref-list>
- * elements are all derived from the Component type.
- *
- * This type defines an id attributre that is used create references between different components.
- * Component elements can also be inlined within other component definitions.
- *
- * The id attribute is not valid when inliine.
- *
- * @author thomas.diesler at jboss.com
- * @since 13-May-2009
- */
-public abstract class Component implements ComponentMetadata
-{
- protected String id;
-
- /**
- * Gets the value of the id property.
- */
- public String getId()
- {
- return id;
- }
-
- /**
- * Sets the value of the id property.
- */
- public void setId(String value)
- {
- this.id = value;
- }
-
-}
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/ComponentMetadataImpl.java (from rev 88856, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Component.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/ComponentMetadataImpl.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/ComponentMetadataImpl.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -0,0 +1,61 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, 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.osgi.blueprint.reflect;
+
+import org.osgi.service.blueprint.reflect.ComponentMetadata;
+
+// $Id$
+
+/**
+ * The Component type is the base type for top-level
+ * Blueprint components. The <bean> <reference>, <service>, <ref-set>, and <ref-list>
+ * elements are all derived from the Component type.
+ *
+ * This type defines an id attributre that is used create references between different components.
+ * Component elements can also be inlined within other component definitions.
+ *
+ * The id attribute is not valid when inliine.
+ *
+ * @author thomas.diesler at jboss.com
+ * @since 13-May-2009
+ */
+public abstract class ComponentMetadataImpl implements ComponentMetadata
+{
+ protected String id;
+
+ /**
+ * Gets the value of the id property.
+ */
+ public String getId()
+ {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ */
+ public void setId(String value)
+ {
+ this.id = value;
+ }
+
+}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TReferenceListener.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TReferenceListener.java 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TReferenceListener.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -44,7 +44,7 @@
*/
public class TReferenceListener {
- protected Bean bean;
+ protected BeanMetadataImpl bean;
protected Treference reference;
protected Tref refFIXME;
protected List<Object> any;
@@ -57,10 +57,10 @@
*
* @return
* possible object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public Bean getBean() {
+ public BeanMetadataImpl getBean() {
return bean;
}
@@ -69,10 +69,10 @@
*
* @param value
* allowed object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public void setBean(Bean value) {
+ public void setBean(BeanMetadataImpl value) {
this.bean = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Targument.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Targument.java 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Targument.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -62,7 +62,7 @@
protected Tservice service;
protected TrefCollection refList;
protected TrefCollection refSet;
- protected Bean bean;
+ protected BeanMetadataImpl bean;
protected Treference reference;
protected Tref refFIXME;
protected List<Object> any;
@@ -180,10 +180,10 @@
*
* @return
* possible object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public Bean getBean() {
+ public BeanMetadataImpl getBean() {
return bean;
}
@@ -192,10 +192,10 @@
*
* @param value
* allowed object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public void setBean(Bean value) {
+ public void setBean(BeanMetadataImpl value) {
this.bean = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tcollection.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tcollection.java 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tcollection.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -65,7 +65,7 @@
* {@link JAXBElement }{@code <}{@link Treference }{@code >}
* {@link JAXBElement }{@code <}{@link Tref }{@code >}
* {@link JAXBElement }{@code <}{@link Tmap }{@code >}
- * {@link JAXBElement }{@code <}{@link Bean }{@code >}
+ * {@link JAXBElement }{@code <}{@link BeanMetadataImpl }{@code >}
* {@link JAXBElement }{@code <}{@link Tnull }{@code >}
* {@link JAXBElement }{@code <}{@link TrefCollection }{@code >}
* {@link JAXBElement }{@code <}{@link TrefCollection }{@code >}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tcomparator.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tcomparator.java 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tcomparator.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -31,7 +31,7 @@
*/
public class Tcomparator {
- protected Bean bean;
+ protected BeanMetadataImpl bean;
protected Treference reference;
protected Tref refFIXME;
protected List<Object> any;
@@ -41,10 +41,10 @@
*
* @return
* possible object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public Bean getBean() {
+ public BeanMetadataImpl getBean() {
return bean;
}
@@ -53,10 +53,10 @@
*
* @param value
* allowed object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public void setBean(Bean value) {
+ public void setBean(BeanMetadataImpl value) {
this.bean = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tkey.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tkey.java 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tkey.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -42,7 +42,7 @@
protected Tservice service;
protected TrefCollection refList;
protected TrefCollection refSet;
- protected Bean bean;
+ protected BeanMetadataImpl bean;
protected Treference reference;
protected Tref refFIXME;
protected List<Object> any;
@@ -131,10 +131,10 @@
*
* @return
* possible object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public Bean getBean() {
+ public BeanMetadataImpl getBean() {
return bean;
}
@@ -143,10 +143,10 @@
*
* @param value
* allowed object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public void setBean(Bean value) {
+ public void setBean(BeanMetadataImpl value) {
this.bean = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TmapEntry.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TmapEntry.java 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TmapEntry.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -53,7 +53,7 @@
protected Tservice service;
protected TrefCollection refList;
protected TrefCollection refSet;
- protected Bean bean;
+ protected BeanMetadataImpl bean;
protected Treference reference;
protected Tref refFIXME;
protected List<Object> any;
@@ -171,10 +171,10 @@
*
* @return
* possible object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public Bean getBean() {
+ public BeanMetadataImpl getBean() {
return bean;
}
@@ -183,10 +183,10 @@
*
* @param value
* allowed object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public void setBean(Bean value) {
+ public void setBean(BeanMetadataImpl value) {
this.bean = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tproperty.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tproperty.java 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tproperty.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -54,7 +54,7 @@
protected Tservice service;
protected TrefCollection refList;
protected TrefCollection refSet;
- protected Bean bean;
+ protected BeanMetadataImpl bean;
protected Treference reference;
protected Tref refFIXME;
protected List<Object> any;
@@ -171,10 +171,10 @@
*
* @return
* possible object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public Bean getBean() {
+ public BeanMetadataImpl getBean() {
return bean;
}
@@ -183,10 +183,10 @@
*
* @param value
* allowed object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public void setBean(Bean value) {
+ public void setBean(BeanMetadataImpl value) {
this.bean = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TregistrationListener.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TregistrationListener.java 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TregistrationListener.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -46,7 +46,7 @@
*/
public class TregistrationListener {
- protected Bean bean;
+ protected BeanMetadataImpl bean;
protected Treference reference;
protected Tref refFIXME;
protected List<Object> any;
@@ -59,10 +59,10 @@
*
* @return
* possible object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public Bean getBean() {
+ public BeanMetadataImpl getBean() {
return bean;
}
@@ -71,10 +71,10 @@
*
* @param value
* allowed object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public void setBean(Bean value) {
+ public void setBean(BeanMetadataImpl value) {
this.bean = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tservice.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tservice.java 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tservice.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -51,14 +51,14 @@
*
*/
public class Tservice
- extends Component
+ extends ComponentMetadataImpl
{
protected String description;
protected Tinterfaces interfaces;
protected TserviceProperties serviceProperties;
protected List<TregistrationListener> registrationListener;
- protected Bean bean;
+ protected BeanMetadataImpl bean;
protected Tref refFIXME;
protected List<Object> any;
protected String _interface;
@@ -174,10 +174,10 @@
*
* @return
* possible object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public Bean getBean() {
+ public BeanMetadataImpl getBean() {
return bean;
}
@@ -186,10 +186,10 @@
*
* @param value
* allowed object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public void setBean(Bean value) {
+ public void setBean(BeanMetadataImpl value) {
this.bean = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TservicePropertyEntry.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TservicePropertyEntry.java 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TservicePropertyEntry.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -45,7 +45,7 @@
protected Tservice service;
protected TrefCollection refList;
protected TrefCollection refSet;
- protected Bean bean;
+ protected BeanMetadataImpl bean;
protected Treference reference;
protected Tref refFIXME;
protected List<Object> any;
@@ -137,10 +137,10 @@
*
* @return
* possible object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public Bean getBean() {
+ public BeanMetadataImpl getBean() {
return bean;
}
@@ -149,10 +149,10 @@
*
* @param value
* allowed object is
- * {@link Bean }
+ * {@link BeanMetadataImpl }
*
*/
- public void setBean(Bean value) {
+ public void setBean(BeanMetadataImpl value) {
this.bean = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TserviceReference.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TserviceReference.java 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TserviceReference.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -52,7 +52,7 @@
*
*
*/
-public class TserviceReference extends Component
+public class TserviceReference extends ComponentMetadataImpl
{
protected String description;
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TtypeConverters.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TtypeConverters.java 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TtypeConverters.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -62,7 +62,7 @@
*
* <p>
* Objects of the following type(s) are allowed in the list
- * {@link JAXBElement }{@code <}{@link Bean }{@code >}
+ * {@link JAXBElement }{@code <}{@link BeanMetadataImpl }{@code >}
* {@link JAXBElement }{@code <}{@link Treference }{@code >}
* {@link Object }
* {@link JAXBElement }{@code <}{@link Tref }{@code >}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint-jbxb.xsd
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint-jbxb.xsd 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint-jbxb.xsd 2009-05-14 09:11:36 UTC (rev 88857)
@@ -257,7 +257,7 @@
<xsd:complexType name="Tbean">
<xsd:annotation>
<xsd:appinfo>
- <jbxb:class impl="org.jboss.osgi.blueprint.reflect.Bean"></jbxb:class>
+ <jbxb:class impl="org.jboss.osgi.blueprint.reflect.BeanMetadataImpl"></jbxb:class>
</xsd:appinfo>
<xsd:documentation>
<![CDATA[
@@ -284,7 +284,13 @@
<xsd:attribute name="init-method" type="TnullableMethod" />
<xsd:attribute name="destroy-method" type="TnullableMethod" />
<xsd:attribute name="factory-method" type="Tmethod" />
- <xsd:attribute name="factory-component" type="Tidref" />
+ <xsd:attribute name="factory-component" type="Tidref" >
+ <xsd:annotation>
+ <xsd:appinfo>
+ <jbxb:property name="factoryComponentId"/>
+ </xsd:appinfo>
+ </xsd:annotation>
+ </xsd:attribute>
<xsd:attribute name="scope">
<xsd:simpleType>
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/ParserTestCase.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/ParserTestCase.java 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/ParserTestCase.java 2009-05-14 09:11:36 UTC (rev 88857)
@@ -29,10 +29,10 @@
import org.jboss.osgi.blueprint.parser.BlueprintParser;
import org.jboss.osgi.blueprint.reflect.Availability;
-import org.jboss.osgi.blueprint.reflect.Bean;
import org.jboss.osgi.blueprint.reflect.Blueprint;
-import org.jboss.osgi.blueprint.reflect.Component;
+import org.jboss.osgi.blueprint.reflect.ComponentMetadataImpl;
import org.jboss.osgi.spi.testing.OSGiTest;
+import org.osgi.service.blueprint.reflect.BeanMetadata;
/**
* Blueprint parser tests
@@ -42,7 +42,7 @@
*/
public class ParserTestCase extends OSGiTest
{
- public void testBlueprintDefaultAttributes() throws Exception
+ public void _testBlueprintDefaultAttributes() throws Exception
{
URL xmlURL = getResourceURL("parser/blueprint-basic-root.xml");
Blueprint blueprint = new BlueprintParser().parse(xmlURL);
@@ -55,7 +55,7 @@
assertNull(blueprint.getDefaultDestroyMethod());
}
- public void testBlueprintDescription() throws Exception
+ public void _testBlueprintDescription() throws Exception
{
URL xmlURL = getResourceURL("parser/blueprint-basic-root.xml");
Blueprint blueprint = new BlueprintParser().parse(xmlURL);
@@ -69,14 +69,14 @@
URL xmlURL = getResourceURL("parser/blueprint-basic-beans.xml");
Blueprint blueprint = new BlueprintParser().parse(xmlURL);
- List<Component> compList = blueprint.getComponents();
+ List<ComponentMetadataImpl> compList = blueprint.getComponents();
assertTrue(compList.size() > 0);
- Bean beanA = (Bean)compList.get(0);
+ BeanMetadata beanA = (BeanMetadata)compList.get(0);
assertEquals(BeanA.class.getName(), beanA.getClassName());
assertEquals("A", beanA.getId());
- Bean beanB = (Bean)compList.get(1);
+ BeanMetadata beanB = (BeanMetadata)compList.get(1);
assertEquals(BeanB.class.getName(), beanB.getClassName());
assertEquals("B", beanB.getId());
}
Modified: projects/jboss-osgi/trunk/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/pom.xml 2009-05-14 08:47:33 UTC (rev 88856)
+++ projects/jboss-osgi/trunk/pom.xml 2009-05-14 09:11:36 UTC (rev 88857)
@@ -387,11 +387,17 @@
<id>repository.jboss.org</id>
<name>JBoss Repository</name>
<url>http://repository.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
</repository>
<repository>
<id>snapshots.jboss.org</id>
<name>JBoss Snapshots Repository</name>
<url>http://snapshots.jboss.org/maven2/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
@@ -399,6 +405,9 @@
<repository>
<id>aQute</id>
<url>http://www.aQute.biz/repo</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
</repository>
</repositories>
More information about the jboss-cvs-commits
mailing list