JBoss-OSGI SVN: r88857 - in projects/jboss-osgi/trunk: bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect and 2 other directories.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)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(a)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(a)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(a)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(a)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>
17 years, 2 months
JBoss-OSGI SVN: r88856 - in projects/jboss-osgi/trunk/bundle/blueprint/src: main/java/org/jboss/osgi/blueprint/parser and 3 other directories.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-14 04:47:33 -0400 (Thu, 14 May 2009)
New Revision: 88856
Added:
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Availability.java
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/Blueprint.java
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/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
Removed:
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/
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/Tavailability.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tbean.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tblueprint.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/Tcomponent.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tdescription.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
Modified:
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintParser.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TautoExportModes.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tinterfaces.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tmap.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tnull.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tprop.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tprops.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tref.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TrefCollection.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Treference.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TserviceProperties.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TtypedCollection.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tvalue.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
Log:
BP: rename package model to reflect
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintParser.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintParser.java 2009-05-14 08:11:21 UTC (rev 88855)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintParser.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -25,7 +25,7 @@
import java.net.URL;
-import org.jboss.osgi.blueprint.model.Blueprint;
+import org.jboss.osgi.blueprint.reflect.Blueprint;
import org.jboss.xb.binding.JBossXBException;
import org.jboss.xb.binding.Unmarshaller;
import org.jboss.xb.binding.UnmarshallerFactory;
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect (from rev 88810, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model)
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Availability.java (from rev 88821, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Availability.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Availability.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Availability.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -0,0 +1,60 @@
+/*
+ * 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;
+
+/**
+ * Defines an availability attribute type. This is used in this
+ * schema by the <blueprint> default-availability attribute and the
+ * <reference>, <ref-set>, and <ref-list> availability attribute.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 13-May-2009
+ */
+public enum Availability
+{
+ MANDATORY("mandatory"),
+ OPTIONAL("optional");
+
+ private final String value;
+
+ Availability(String v)
+ {
+ value = v;
+ }
+
+ public String value()
+ {
+ return value;
+ }
+
+ public static Availability fromValue(String v)
+ {
+ for (Availability c : Availability.values())
+ {
+ if (c.value.equals(v))
+ {
+ return c;
+ }
+ }
+ throw new IllegalArgumentException(v);
+ }
+}
\ No newline at end of file
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Bean.java (from rev 88854, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Bean.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Bean.java (rev 0)
+++ 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)
@@ -0,0 +1,285 @@
+/*
+ * 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(a)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/Blueprint.java (from rev 88854, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Blueprint.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Blueprint.java (rev 0)
+++ 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)
@@ -0,0 +1,243 @@
+/*
+ * 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.math.BigInteger;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+
+/**
+ * The blueprint element is the top element. The definitions consist of two sections:
+ * the type-converter section and the components section.
+ *
+ * blueprint ::= <type-converters> component *
+ * component ::= <bean> | <service> | service-reference
+ * service-reference ::= <reference> | <ref-list> | <ref-set>
+ * type-converter ::= <bean> | <ref> *
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 13-May-2009
+ */
+public class Blueprint
+{
+ protected String description;
+ protected TtypeConverters typeConverters;
+ protected List<Component> components;
+ protected Boolean defaultLazyInit;
+ protected String defaultInitMethod;
+ protected String defaultDestroyMethod;
+ protected BigInteger defaultTimeout;
+ protected Availability defaultAvailability;
+ 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 typeConverters property.
+ *
+ * @return possible object is {@link TtypeConverters }
+ *
+ */
+ public TtypeConverters getTypeConverters()
+ {
+ return typeConverters;
+ }
+
+ /**
+ * Sets the value of the typeConverters property.
+ *
+ * @param value allowed object is {@link TtypeConverters }
+ *
+ */
+ public void setTypeConverters(TtypeConverters value)
+ {
+ this.typeConverters = value;
+ }
+
+ /**
+ * Gets the value of components
+ */
+ public List<Component> getComponents()
+ {
+ if (components == null)
+ {
+ components = new ArrayList<Component>();
+ }
+ return this.components;
+ }
+
+ /**
+ * Gets the value of the defaultLazyInit property.
+ *
+ * @return possible object is {@link Boolean }
+ *
+ */
+ public Boolean isDefaultLazyInit()
+ {
+ return defaultLazyInit;
+ }
+
+ /**
+ * Sets the value of the defaultLazyInit property.
+ *
+ * @param value allowed object is {@link Boolean }
+ *
+ */
+ public void setDefaultLazyInit(Boolean value)
+ {
+ this.defaultLazyInit = value;
+ }
+
+ /**
+ * Gets the value of the defaultInitMethod property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getDefaultInitMethod()
+ {
+ return defaultInitMethod;
+ }
+
+ /**
+ * Sets the value of the defaultInitMethod property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setDefaultInitMethod(String value)
+ {
+ this.defaultInitMethod = value;
+ }
+
+ /**
+ * Gets the value of the defaultDestroyMethod property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getDefaultDestroyMethod()
+ {
+ return defaultDestroyMethod;
+ }
+
+ /**
+ * Sets the value of the defaultDestroyMethod property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setDefaultDestroyMethod(String value)
+ {
+ this.defaultDestroyMethod = value;
+ }
+
+ /**
+ * Gets the value of the defaultTimeout property.
+ */
+ public BigInteger getDefaultTimeout()
+ {
+ if (defaultTimeout == null)
+ {
+ return new BigInteger("300000");
+ }
+ else
+ {
+ return defaultTimeout;
+ }
+ }
+
+ /**
+ * Sets the value of the defaultTimeout property.
+ */
+ public void setDefaultTimeout(BigInteger value)
+ {
+ this.defaultTimeout = value;
+ }
+
+ /**
+ * Gets the value of the defaultAvailability property.
+ *
+ * @return possible object is {@link Tavailability }
+ *
+ */
+ public Availability getDefaultAvailability()
+ {
+ if (defaultAvailability == null)
+ {
+ return Availability.MANDATORY;
+ }
+ else
+ {
+ return defaultAvailability;
+ }
+ }
+
+ /**
+ * Sets the value of the defaultAvailability property.
+ *
+ * @param value allowed object is {@link Tavailability }
+ *
+ */
+ public void setDefaultAvailability(Availability value)
+ {
+ this.defaultAvailability = 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/Component.java (from rev 88854, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Component.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Component.java (rev 0)
+++ 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)
@@ -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(a)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;
+ }
+
+}
Deleted: 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/model/TReferenceListener.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ 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)
@@ -1,228 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-
-/**
- *
- *
- * TReferenceListener defines a reference listener that is attached
- * to a <reference>, <ref-set>, or <ref-list> element. The listener
- * object can be specified as a <ref> or as an inline <bean> or
- * <reference> component. Listener events are mapped to the indicated
- * bind or unbind methods.
- *
- *
- *
- * <p>Java class for TReferenceListener complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="TReferenceListener">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}targetComponent"/>
- * <attribute name="ref" type="{http://www.w3.org/2001/XMLSchema}token" />
- * <attribute name="bind-method" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
- * <attribute name="unbind-method" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class TReferenceListener {
-
- protected Tbean bean;
- protected Treference reference;
- protected Tref refFIXME;
- protected List<Object> any;
- protected String ref;
- protected String bindMethod;
- protected String unbindMethod;
-
- /**
- * Gets the value of the bean property.
- *
- * @return
- * possible object is
- * {@link Tbean }
- *
- */
- public Tbean getBean() {
- return bean;
- }
-
- /**
- * Sets the value of the bean property.
- *
- * @param value
- * allowed object is
- * {@link Tbean }
- *
- */
- public void setBean(Tbean value) {
- this.bean = value;
- }
-
- /**
- * Gets the value of the reference property.
- *
- * @return
- * possible object is
- * {@link Treference }
- *
- */
- public Treference getReference() {
- return reference;
- }
-
- /**
- * Sets the value of the reference property.
- *
- * @param value
- * allowed object is
- * {@link Treference }
- *
- */
- public void setReference(Treference value) {
- this.reference = value;
- }
-
- /**
- * Gets the value of the refFIXME property.
- *
- * @return
- * possible object is
- * {@link Tref }
- *
- */
- public Tref getRefFIXME() {
- return refFIXME;
- }
-
- /**
- * Sets the value of the refFIXME property.
- *
- * @param value
- * allowed object is
- * {@link Tref }
- *
- */
- public void setRefFIXME(Tref value) {
- this.refFIXME = value;
- }
-
- /**
- * Gets the value of the any 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 any property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getAny().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Object }
- *
- *
- */
- public List<Object> getAny() {
- if (any == null) {
- any = new ArrayList<Object>();
- }
- return this.any;
- }
-
- /**
- * Gets the value of the ref property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getRef() {
- return ref;
- }
-
- /**
- * Sets the value of the ref property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setRef(String value) {
- this.ref = value;
- }
-
- /**
- * Gets the value of the bindMethod property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getBindMethod() {
- return bindMethod;
- }
-
- /**
- * Sets the value of the bindMethod property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setBindMethod(String value) {
- this.bindMethod = value;
- }
-
- /**
- * Gets the value of the unbindMethod property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getUnbindMethod() {
- return unbindMethod;
- }
-
- /**
- * Sets the value of the unbindMethod property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setUnbindMethod(String value) {
- this.unbindMethod = value;
- }
-
-}
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TReferenceListener.java (from rev 88854, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TReferenceListener.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TReferenceListener.java (rev 0)
+++ 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)
@@ -0,0 +1,228 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.reflect;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * TReferenceListener defines a reference listener that is attached
+ * to a <reference>, <ref-set>, or <ref-list> element. The listener
+ * object can be specified as a <ref> or as an inline <bean> or
+ * <reference> component. Listener events are mapped to the indicated
+ * bind or unbind methods.
+ *
+ *
+ *
+ * <p>Java class for TReferenceListener complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="TReferenceListener">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}targetComponent"/>
+ * <attribute name="ref" type="{http://www.w3.org/2001/XMLSchema}token" />
+ * <attribute name="bind-method" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
+ * <attribute name="unbind-method" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class TReferenceListener {
+
+ protected Bean bean;
+ protected Treference reference;
+ protected Tref refFIXME;
+ protected List<Object> any;
+ protected String ref;
+ protected String bindMethod;
+ protected String unbindMethod;
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Bean }
+ *
+ */
+ public Bean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Bean }
+ *
+ */
+ public void setBean(Bean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the reference property.
+ *
+ * @return
+ * possible object is
+ * {@link Treference }
+ *
+ */
+ public Treference getReference() {
+ return reference;
+ }
+
+ /**
+ * Sets the value of the reference property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Treference }
+ *
+ */
+ public void setReference(Treference value) {
+ this.reference = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the ref property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRef() {
+ return ref;
+ }
+
+ /**
+ * Sets the value of the ref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRef(String value) {
+ this.ref = value;
+ }
+
+ /**
+ * Gets the value of the bindMethod property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getBindMethod() {
+ return bindMethod;
+ }
+
+ /**
+ * Sets the value of the bindMethod property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setBindMethod(String value) {
+ this.bindMethod = value;
+ }
+
+ /**
+ * Gets the value of the unbindMethod property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getUnbindMethod() {
+ return unbindMethod;
+ }
+
+ /**
+ * Sets the value of the unbindMethod property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setUnbindMethod(String value) {
+ this.unbindMethod = value;
+ }
+
+}
Deleted: 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/model/Targument.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ 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)
@@ -1,567 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.math.BigInteger;
-import java.util.ArrayList;
-import java.util.List;
-
-
-/**
- *
- *
- * An argument used to create an object defined by a <bean>
- * component. The <argument> elements are the arguments for the
- * bean class constructor or passed to the bean factory method.
- *
- * The type, if specified, is used to disambiguate the constructor
- * or method signature. Arguments may also be matched up with
- * arguments by explicitly specifying the index position. If the
- * index is used, then all <argument> elements for the bean must
- * also specify the index.
- *
- * The value and ref attributes are convenience shortcuts to make
- * the <argument> tag easier to code. A fuller set of injected
- * values and types can be specified using one of the "value"
- * type elements.
- *
- *
- *
- * <p>Java class for Targument complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Targument">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tdescription" minOccurs="0"/>
- * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value"/>
- * </sequence>
- * <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
- * <attribute name="type" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
- * <attribute name="ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
- * <attribute name="valueFIXME" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class Targument {
-
- protected Tdescription description;
- protected Tservice service;
- protected TrefCollection refList;
- protected TrefCollection refSet;
- protected Tbean bean;
- protected Treference reference;
- protected Tref refFIXME;
- protected List<Object> any;
- protected Tref idref;
- protected Tvalue value;
- protected Tcollection list;
- protected Tcollection set;
- protected Tmap map;
- protected Tcollection array;
- protected Tprops props;
- protected Tnull _null;
- protected BigInteger index;
- protected String type;
- protected String ref;
- protected String valueFIXME;
-
- /**
- * Gets the value of the description property.
- *
- * @return
- * possible object is
- * {@link Tdescription }
- *
- */
- public Tdescription getDescription() {
- return description;
- }
-
- /**
- * Sets the value of the description property.
- *
- * @param value
- * allowed object is
- * {@link Tdescription }
- *
- */
- public void setDescription(Tdescription value) {
- this.description = value;
- }
-
- /**
- * Gets the value of the service property.
- *
- * @return
- * possible object is
- * {@link Tservice }
- *
- */
- public Tservice getService() {
- return service;
- }
-
- /**
- * Sets the value of the service property.
- *
- * @param value
- * allowed object is
- * {@link Tservice }
- *
- */
- public void setService(Tservice value) {
- this.service = value;
- }
-
- /**
- * Gets the value of the refList property.
- *
- * @return
- * possible object is
- * {@link TrefCollection }
- *
- */
- public TrefCollection getRefList() {
- return refList;
- }
-
- /**
- * Sets the value of the refList property.
- *
- * @param value
- * allowed object is
- * {@link TrefCollection }
- *
- */
- public void setRefList(TrefCollection value) {
- this.refList = value;
- }
-
- /**
- * Gets the value of the refSet property.
- *
- * @return
- * possible object is
- * {@link TrefCollection }
- *
- */
- public TrefCollection getRefSet() {
- return refSet;
- }
-
- /**
- * Sets the value of the refSet property.
- *
- * @param value
- * allowed object is
- * {@link TrefCollection }
- *
- */
- public void setRefSet(TrefCollection value) {
- this.refSet = value;
- }
-
- /**
- * Gets the value of the bean property.
- *
- * @return
- * possible object is
- * {@link Tbean }
- *
- */
- public Tbean getBean() {
- return bean;
- }
-
- /**
- * Sets the value of the bean property.
- *
- * @param value
- * allowed object is
- * {@link Tbean }
- *
- */
- public void setBean(Tbean value) {
- this.bean = value;
- }
-
- /**
- * Gets the value of the reference property.
- *
- * @return
- * possible object is
- * {@link Treference }
- *
- */
- public Treference getReference() {
- return reference;
- }
-
- /**
- * Sets the value of the reference property.
- *
- * @param value
- * allowed object is
- * {@link Treference }
- *
- */
- public void setReference(Treference value) {
- this.reference = value;
- }
-
- /**
- * Gets the value of the refFIXME property.
- *
- * @return
- * possible object is
- * {@link Tref }
- *
- */
- public Tref getRefFIXME() {
- return refFIXME;
- }
-
- /**
- * Sets the value of the refFIXME property.
- *
- * @param value
- * allowed object is
- * {@link Tref }
- *
- */
- public void setRefFIXME(Tref value) {
- this.refFIXME = value;
- }
-
- /**
- * Gets the value of the any 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 any property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getAny().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Object }
- *
- *
- */
- public List<Object> getAny() {
- if (any == null) {
- any = new ArrayList<Object>();
- }
- return this.any;
- }
-
- /**
- * Gets the value of the idref property.
- *
- * @return
- * possible object is
- * {@link Tref }
- *
- */
- public Tref getIdref() {
- return idref;
- }
-
- /**
- * Sets the value of the idref property.
- *
- * @param value
- * allowed object is
- * {@link Tref }
- *
- */
- public void setIdref(Tref value) {
- this.idref = value;
- }
-
- /**
- * Gets the value of the value property.
- *
- * @return
- * possible object is
- * {@link Tvalue }
- *
- */
- public Tvalue getValue() {
- return value;
- }
-
- /**
- * Sets the value of the value property.
- *
- * @param value
- * allowed object is
- * {@link Tvalue }
- *
- */
- public void setValue(Tvalue value) {
- this.value = value;
- }
-
- /**
- * Gets the value of the list property.
- *
- * @return
- * possible object is
- * {@link Tcollection }
- *
- */
- public Tcollection getList() {
- return list;
- }
-
- /**
- * Sets the value of the list property.
- *
- * @param value
- * allowed object is
- * {@link Tcollection }
- *
- */
- public void setList(Tcollection value) {
- this.list = value;
- }
-
- /**
- * Gets the value of the set property.
- *
- * @return
- * possible object is
- * {@link Tcollection }
- *
- */
- public Tcollection getSet() {
- return set;
- }
-
- /**
- * Sets the value of the set property.
- *
- * @param value
- * allowed object is
- * {@link Tcollection }
- *
- */
- public void setSet(Tcollection value) {
- this.set = value;
- }
-
- /**
- * Gets the value of the map property.
- *
- * @return
- * possible object is
- * {@link Tmap }
- *
- */
- public Tmap getMap() {
- return map;
- }
-
- /**
- * Sets the value of the map property.
- *
- * @param value
- * allowed object is
- * {@link Tmap }
- *
- */
- public void setMap(Tmap value) {
- this.map = value;
- }
-
- /**
- * Gets the value of the array property.
- *
- * @return
- * possible object is
- * {@link Tcollection }
- *
- */
- public Tcollection getArray() {
- return array;
- }
-
- /**
- * Sets the value of the array property.
- *
- * @param value
- * allowed object is
- * {@link Tcollection }
- *
- */
- public void setArray(Tcollection value) {
- this.array = value;
- }
-
- /**
- * Gets the value of the props property.
- *
- * @return
- * possible object is
- * {@link Tprops }
- *
- */
- public Tprops getProps() {
- return props;
- }
-
- /**
- * Sets the value of the props property.
- *
- * @param value
- * allowed object is
- * {@link Tprops }
- *
- */
- public void setProps(Tprops value) {
- this.props = value;
- }
-
- /**
- * Gets the value of the null property.
- *
- * @return
- * possible object is
- * {@link Tnull }
- *
- */
- public Tnull getNull() {
- return _null;
- }
-
- /**
- * Sets the value of the null property.
- *
- * @param value
- * allowed object is
- * {@link Tnull }
- *
- */
- public void setNull(Tnull value) {
- this._null = value;
- }
-
- /**
- * Gets the value of the index property.
- *
- * @return
- * possible object is
- * {@link BigInteger }
- *
- */
- public BigInteger getIndex() {
- return index;
- }
-
- /**
- * Sets the value of the index property.
- *
- * @param value
- * allowed object is
- * {@link BigInteger }
- *
- */
- public void setIndex(BigInteger value) {
- this.index = value;
- }
-
- /**
- * Gets the value of the type property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getType() {
- return type;
- }
-
- /**
- * Sets the value of the type property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setType(String value) {
- this.type = value;
- }
-
- /**
- * Gets the value of the ref property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getRef() {
- return ref;
- }
-
- /**
- * Sets the value of the ref property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setRef(String value) {
- this.ref = value;
- }
-
- /**
- * Gets the value of the valueFIXME property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getValueFIXME() {
- return valueFIXME;
- }
-
- /**
- * Sets the value of the valueFIXME property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setValueFIXME(String value) {
- this.valueFIXME = value;
- }
-
-}
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Targument.java (from rev 88854, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Targument.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Targument.java (rev 0)
+++ 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)
@@ -0,0 +1,567 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.reflect;
+
+import java.math.BigInteger;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * An argument used to create an object defined by a <bean>
+ * component. The <argument> elements are the arguments for the
+ * bean class constructor or passed to the bean factory method.
+ *
+ * The type, if specified, is used to disambiguate the constructor
+ * or method signature. Arguments may also be matched up with
+ * arguments by explicitly specifying the index position. If the
+ * index is used, then all <argument> elements for the bean must
+ * also specify the index.
+ *
+ * The value and ref attributes are convenience shortcuts to make
+ * the <argument> tag easier to code. A fuller set of injected
+ * values and types can be specified using one of the "value"
+ * type elements.
+ *
+ *
+ *
+ * <p>Java class for Targument complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Targument">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}String" minOccurs="0"/>
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value"/>
+ * </sequence>
+ * <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
+ * <attribute name="type" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
+ * <attribute name="ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * <attribute name="valueFIXME" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Targument {
+
+ protected String description;
+ protected Tservice service;
+ protected TrefCollection refList;
+ protected TrefCollection refSet;
+ protected Bean bean;
+ protected Treference reference;
+ protected Tref refFIXME;
+ protected List<Object> any;
+ protected Tref idref;
+ protected Tvalue value;
+ protected Tcollection list;
+ protected Tcollection set;
+ protected Tmap map;
+ protected Tcollection array;
+ protected Tprops props;
+ protected Tnull _null;
+ protected BigInteger index;
+ protected String type;
+ protected String ref;
+ protected String valueFIXME;
+
+ /**
+ * Gets the value of the description property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDescription(String value) {
+ this.description = value;
+ }
+
+ /**
+ * Gets the value of the service property.
+ *
+ * @return
+ * possible object is
+ * {@link Tservice }
+ *
+ */
+ public Tservice getService() {
+ return service;
+ }
+
+ /**
+ * Sets the value of the service property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tservice }
+ *
+ */
+ public void setService(Tservice value) {
+ this.service = value;
+ }
+
+ /**
+ * Gets the value of the refList property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefList() {
+ return refList;
+ }
+
+ /**
+ * Sets the value of the refList property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefList(TrefCollection value) {
+ this.refList = value;
+ }
+
+ /**
+ * Gets the value of the refSet property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefSet() {
+ return refSet;
+ }
+
+ /**
+ * Sets the value of the refSet property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefSet(TrefCollection value) {
+ this.refSet = value;
+ }
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Bean }
+ *
+ */
+ public Bean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Bean }
+ *
+ */
+ public void setBean(Bean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the reference property.
+ *
+ * @return
+ * possible object is
+ * {@link Treference }
+ *
+ */
+ public Treference getReference() {
+ return reference;
+ }
+
+ /**
+ * Sets the value of the reference property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Treference }
+ *
+ */
+ public void setReference(Treference value) {
+ this.reference = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the idref property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getIdref() {
+ return idref;
+ }
+
+ /**
+ * Sets the value of the idref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setIdref(Tref value) {
+ this.idref = value;
+ }
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link Tvalue }
+ *
+ */
+ public Tvalue getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tvalue }
+ *
+ */
+ public void setValue(Tvalue value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the list property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getList() {
+ return list;
+ }
+
+ /**
+ * Sets the value of the list property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setList(Tcollection value) {
+ this.list = value;
+ }
+
+ /**
+ * Gets the value of the set property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getSet() {
+ return set;
+ }
+
+ /**
+ * Sets the value of the set property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setSet(Tcollection value) {
+ this.set = value;
+ }
+
+ /**
+ * Gets the value of the map property.
+ *
+ * @return
+ * possible object is
+ * {@link Tmap }
+ *
+ */
+ public Tmap getMap() {
+ return map;
+ }
+
+ /**
+ * Sets the value of the map property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tmap }
+ *
+ */
+ public void setMap(Tmap value) {
+ this.map = value;
+ }
+
+ /**
+ * Gets the value of the array property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getArray() {
+ return array;
+ }
+
+ /**
+ * Sets the value of the array property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setArray(Tcollection value) {
+ this.array = value;
+ }
+
+ /**
+ * Gets the value of the props property.
+ *
+ * @return
+ * possible object is
+ * {@link Tprops }
+ *
+ */
+ public Tprops getProps() {
+ return props;
+ }
+
+ /**
+ * Sets the value of the props property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tprops }
+ *
+ */
+ public void setProps(Tprops value) {
+ this.props = value;
+ }
+
+ /**
+ * Gets the value of the null property.
+ *
+ * @return
+ * possible object is
+ * {@link Tnull }
+ *
+ */
+ public Tnull getNull() {
+ return _null;
+ }
+
+ /**
+ * Sets the value of the null property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tnull }
+ *
+ */
+ public void setNull(Tnull value) {
+ this._null = value;
+ }
+
+ /**
+ * Gets the value of the index property.
+ *
+ * @return
+ * possible object is
+ * {@link BigInteger }
+ *
+ */
+ public BigInteger getIndex() {
+ return index;
+ }
+
+ /**
+ * Sets the value of the index property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BigInteger }
+ *
+ */
+ public void setIndex(BigInteger value) {
+ this.index = value;
+ }
+
+ /**
+ * Gets the value of the type property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * Sets the value of the type property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setType(String value) {
+ this.type = value;
+ }
+
+ /**
+ * Gets the value of the ref property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRef() {
+ return ref;
+ }
+
+ /**
+ * Sets the value of the ref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRef(String value) {
+ this.ref = value;
+ }
+
+ /**
+ * Gets the value of the valueFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValueFIXME() {
+ return valueFIXME;
+ }
+
+ /**
+ * Sets the value of the valueFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValueFIXME(String value) {
+ this.valueFIXME = value;
+ }
+
+}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TautoExportModes.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TautoExportModes.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TautoExportModes.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -6,7 +6,7 @@
//
-package org.jboss.osgi.blueprint.model;
+package org.jboss.osgi.blueprint.reflect;
/**
Deleted: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tavailability.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tavailability.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tavailability.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -1,50 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-
-/**
- * <p>Java class for Tavailability.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- * <p>
- * <pre>
- * <simpleType name="Tavailability">
- * <restriction base="{http://www.w3.org/2001/XMLSchema}token">
- * <enumeration value="mandatory"/>
- * <enumeration value="optional"/>
- * </restriction>
- * </simpleType>
- * </pre>
- *
- */
-public enum Tavailability {
-
- MANDATORY("mandatory"),
- OPTIONAL("optional");
- private final String value;
-
- Tavailability(String v) {
- value = v;
- }
-
- public String value() {
- return value;
- }
-
- public static Tavailability fromValue(String v) {
- for (Tavailability c: Tavailability.values()) {
- if (c.value.equals(v)) {
- return c;
- }
- }
- throw new IllegalArgumentException(v);
- }
-
-}
Deleted: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tbean.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tbean.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tbean.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -1,344 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import javax.xml.namespace.QName;
-
-
-/**
- *
- *
- * The type defintion for a <bean> component.
- * This definition is also used by the <bpcm:managed-component>
- * element used in the blueprint-cm schema. The <bean> attributes
- * provide the characteristics for how to create a bean instance.
- * Constructor arguments and injected properties are specified
- * via child <argument> and <property> elements.
- *
- *
- *
- * <p>Java class for Tbean complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Tbean">
- * <complexContent>
- * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tcomponent">
- * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}beanElements"/>
- * <attribute name="class" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
- * <attribute name="depends-on" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TdependsOn" />
- * <attribute name="init-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TnullableMethod" />
- * <attribute name="destroy-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TnullableMethod" />
- * <attribute name="factory-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
- * <attribute name="factory-component" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
- * <attribute name="scope">
- * <simpleType>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
- * <enumeration value="singleton"/>
- * <enumeration value="prototype"/>
- * <enumeration value="bundle"/>
- * </restriction>
- * </simpleType>
- * </attribute>
- * <attribute name="lazy-init" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tlazy-init" />
- * <anyAttribute processContents='lax' namespace='##other'/>
- * </extension>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class Tbean
- extends Tcomponent
-{
-
- protected Tdescription description;
- protected List<Object> argumentOrPropertyOrAny;
- protected String clazz;
- 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.
- *
- * @return
- * possible object is
- * {@link Tdescription }
- *
- */
- public Tdescription getDescription() {
- return description;
- }
-
- /**
- * Sets the value of the description property.
- *
- * @param value
- * allowed object is
- * {@link Tdescription }
- *
- */
- public void setDescription(Tdescription 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 clazz property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getClazz() {
- return clazz;
- }
-
- /**
- * Sets the value of the clazz property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setClazz(String value) {
- this.clazz = 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;
- }
-
-}
Deleted: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tblueprint.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tblueprint.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tblueprint.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -1,293 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.math.BigInteger;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import javax.xml.namespace.QName;
-
-
-/**
- * <p>Java class for Tblueprint complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Tblueprint">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tdescription" minOccurs="0"/>
- * <element name="type-converters" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Ttype-converters" minOccurs="0"/>
- * <choice maxOccurs="unbounded" minOccurs="0">
- * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}allComponents"/>
- * </choice>
- * </sequence>
- * <attribute name="default-lazy-init" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tlazy-init" default="false" />
- * <attribute name="default-init-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
- * <attribute name="default-destroy-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
- * <attribute name="default-timeout" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Ttimeout" default="300000" />
- * <attribute name="default-availability" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tavailability" default="mandatory" />
- * <anyAttribute processContents='lax' namespace='##other'/>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class Tblueprint {
-
- protected Tdescription description;
- protected TtypeConverters typeConverters;
- protected List<Object> serviceOrRefListOrRefSet;
- protected Boolean defaultLazyInit;
- protected String defaultInitMethod;
- protected String defaultDestroyMethod;
- protected BigInteger defaultTimeout;
- protected Tavailability defaultAvailability;
- private Map<QName, String> otherAttributes = new HashMap<QName, String>();
-
- /**
- * Gets the value of the description property.
- *
- * @return
- * possible object is
- * {@link Tdescription }
- *
- */
- public Tdescription getDescription() {
- return description;
- }
-
- /**
- * Sets the value of the description property.
- *
- * @param value
- * allowed object is
- * {@link Tdescription }
- *
- */
- public void setDescription(Tdescription value) {
- this.description = value;
- }
-
- /**
- * Gets the value of the typeConverters property.
- *
- * @return
- * possible object is
- * {@link TtypeConverters }
- *
- */
- public TtypeConverters getTypeConverters() {
- return typeConverters;
- }
-
- /**
- * Sets the value of the typeConverters property.
- *
- * @param value
- * allowed object is
- * {@link TtypeConverters }
- *
- */
- public void setTypeConverters(TtypeConverters value) {
- this.typeConverters = value;
- }
-
- /**
- * Gets the value of the serviceOrRefListOrRefSet 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 serviceOrRefListOrRefSet property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getServiceOrRefListOrRefSet().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link JAXBElement }{@code <}{@link TrefCollection }{@code >}
- * {@link JAXBElement }{@code <}{@link Treference }{@code >}
- * {@link JAXBElement }{@code <}{@link Tservice }{@code >}
- * {@link JAXBElement }{@code <}{@link TrefCollection }{@code >}
- * {@link JAXBElement }{@code <}{@link Tref }{@code >}
- * {@link Object }
- * {@link JAXBElement }{@code <}{@link Tbean }{@code >}
- *
- *
- */
- public List<Object> getServiceOrRefListOrRefSet() {
- if (serviceOrRefListOrRefSet == null) {
- serviceOrRefListOrRefSet = new ArrayList<Object>();
- }
- return this.serviceOrRefListOrRefSet;
- }
-
- /**
- * Gets the value of the defaultLazyInit property.
- *
- * @return
- * possible object is
- * {@link Boolean }
- *
- */
- public boolean isDefaultLazyInit() {
- if (defaultLazyInit == null) {
- return false;
- } else {
- return defaultLazyInit;
- }
- }
-
- /**
- * Sets the value of the defaultLazyInit property.
- *
- * @param value
- * allowed object is
- * {@link Boolean }
- *
- */
- public void setDefaultLazyInit(Boolean value) {
- this.defaultLazyInit = value;
- }
-
- /**
- * Gets the value of the defaultInitMethod property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getDefaultInitMethod() {
- return defaultInitMethod;
- }
-
- /**
- * Sets the value of the defaultInitMethod property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setDefaultInitMethod(String value) {
- this.defaultInitMethod = value;
- }
-
- /**
- * Gets the value of the defaultDestroyMethod property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getDefaultDestroyMethod() {
- return defaultDestroyMethod;
- }
-
- /**
- * Sets the value of the defaultDestroyMethod property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setDefaultDestroyMethod(String value) {
- this.defaultDestroyMethod = value;
- }
-
- /**
- * Gets the value of the defaultTimeout property.
- *
- * @return
- * possible object is
- * {@link BigInteger }
- *
- */
- public BigInteger getDefaultTimeout() {
- if (defaultTimeout == null) {
- return new BigInteger("300000");
- } else {
- return defaultTimeout;
- }
- }
-
- /**
- * Sets the value of the defaultTimeout property.
- *
- * @param value
- * allowed object is
- * {@link BigInteger }
- *
- */
- public void setDefaultTimeout(BigInteger value) {
- this.defaultTimeout = value;
- }
-
- /**
- * Gets the value of the defaultAvailability property.
- *
- * @return
- * possible object is
- * {@link Tavailability }
- *
- */
- public Tavailability getDefaultAvailability() {
- if (defaultAvailability == null) {
- return Tavailability.MANDATORY;
- } else {
- return defaultAvailability;
- }
- }
-
- /**
- * Sets the value of the defaultAvailability property.
- *
- * @param value
- * allowed object is
- * {@link Tavailability }
- *
- */
- public void setDefaultAvailability(Tavailability value) {
- this.defaultAvailability = 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;
- }
-
-}
Deleted: 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/model/Tcollection.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ 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)
@@ -1,87 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-
-/**
- *
- *
- * Tcollection is the base schema type for different ordered collection
- * types. This is shared between the <array>, <list>, and <set> elements.
- *
- *
- *
- * <p>Java class for Tcollection complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Tcollection">
- * <complexContent>
- * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TtypedCollection">
- * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value" maxOccurs="unbounded" minOccurs="0"/>
- * </extension>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class Tcollection
- extends TtypedCollection
-{
- protected List<Object> value;
-
- /**
- * Gets the value of the value 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 value property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getValue().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link JAXBElement }{@code <}{@link Tvalue }{@code >}
- * {@link JAXBElement }{@code <}{@link Tservice }{@code >}
- * {@link JAXBElement }{@code <}{@link Tref }{@code >}
- * {@link JAXBElement }{@code <}{@link Treference }{@code >}
- * {@link JAXBElement }{@code <}{@link Tref }{@code >}
- * {@link JAXBElement }{@code <}{@link Tmap }{@code >}
- * {@link JAXBElement }{@code <}{@link Tbean }{@code >}
- * {@link JAXBElement }{@code <}{@link Tnull }{@code >}
- * {@link JAXBElement }{@code <}{@link TrefCollection }{@code >}
- * {@link JAXBElement }{@code <}{@link TrefCollection }{@code >}
- * {@link JAXBElement }{@code <}{@link Tcollection }{@code >}
- * {@link Object }
- * {@link JAXBElement }{@code <}{@link Tcollection }{@code >}
- * {@link JAXBElement }{@code <}{@link Tcollection }{@code >}
- * {@link JAXBElement }{@code <}{@link Tprops }{@code >}
- *
- *
- */
- public List<Object> getValue() {
- if (value == null) {
- value = new ArrayList<Object>();
- }
- return this.value;
- }
-
-}
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tcollection.java (from rev 88854, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcollection.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tcollection.java (rev 0)
+++ 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)
@@ -0,0 +1,87 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.reflect;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * Tcollection is the base schema type for different ordered collection
+ * types. This is shared between the <array>, <list>, and <set> elements.
+ *
+ *
+ *
+ * <p>Java class for Tcollection complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tcollection">
+ * <complexContent>
+ * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TtypedCollection">
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value" maxOccurs="unbounded" minOccurs="0"/>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tcollection
+ extends TtypedCollection
+{
+ protected List<Object> value;
+
+ /**
+ * Gets the value of the value 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 value property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getValue().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JAXBElement }{@code <}{@link Tvalue }{@code >}
+ * {@link JAXBElement }{@code <}{@link Tservice }{@code >}
+ * {@link JAXBElement }{@code <}{@link Tref }{@code >}
+ * {@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 Tnull }{@code >}
+ * {@link JAXBElement }{@code <}{@link TrefCollection }{@code >}
+ * {@link JAXBElement }{@code <}{@link TrefCollection }{@code >}
+ * {@link JAXBElement }{@code <}{@link Tcollection }{@code >}
+ * {@link Object }
+ * {@link JAXBElement }{@code <}{@link Tcollection }{@code >}
+ * {@link JAXBElement }{@code <}{@link Tcollection }{@code >}
+ * {@link JAXBElement }{@code <}{@link Tprops }{@code >}
+ *
+ *
+ */
+ public List<Object> getValue() {
+ if (value == null) {
+ value = new ArrayList<Object>();
+ }
+ return this.value;
+ }
+
+}
Deleted: 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/model/Tcomparator.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ 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)
@@ -1,140 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-
-/**
- * <p>Java class for Tcomparator complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Tcomparator">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}targetComponent"/>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class Tcomparator {
-
- protected Tbean bean;
- protected Treference reference;
- protected Tref refFIXME;
- protected List<Object> any;
-
- /**
- * Gets the value of the bean property.
- *
- * @return
- * possible object is
- * {@link Tbean }
- *
- */
- public Tbean getBean() {
- return bean;
- }
-
- /**
- * Sets the value of the bean property.
- *
- * @param value
- * allowed object is
- * {@link Tbean }
- *
- */
- public void setBean(Tbean value) {
- this.bean = value;
- }
-
- /**
- * Gets the value of the reference property.
- *
- * @return
- * possible object is
- * {@link Treference }
- *
- */
- public Treference getReference() {
- return reference;
- }
-
- /**
- * Sets the value of the reference property.
- *
- * @param value
- * allowed object is
- * {@link Treference }
- *
- */
- public void setReference(Treference value) {
- this.reference = value;
- }
-
- /**
- * Gets the value of the refFIXME property.
- *
- * @return
- * possible object is
- * {@link Tref }
- *
- */
- public Tref getRefFIXME() {
- return refFIXME;
- }
-
- /**
- * Sets the value of the refFIXME property.
- *
- * @param value
- * allowed object is
- * {@link Tref }
- *
- */
- public void setRefFIXME(Tref value) {
- this.refFIXME = value;
- }
-
- /**
- * Gets the value of the any 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 any property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getAny().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Object }
- *
- *
- */
- public List<Object> getAny() {
- if (any == null) {
- any = new ArrayList<Object>();
- }
- return this.any;
- }
-
-}
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tcomparator.java (from rev 88854, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomparator.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tcomparator.java (rev 0)
+++ 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)
@@ -0,0 +1,140 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.reflect;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for Tcomparator complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tcomparator">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}targetComponent"/>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tcomparator {
+
+ protected Bean bean;
+ protected Treference reference;
+ protected Tref refFIXME;
+ protected List<Object> any;
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Bean }
+ *
+ */
+ public Bean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Bean }
+ *
+ */
+ public void setBean(Bean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the reference property.
+ *
+ * @return
+ * possible object is
+ * {@link Treference }
+ *
+ */
+ public Treference getReference() {
+ return reference;
+ }
+
+ /**
+ * Sets the value of the reference property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Treference }
+ *
+ */
+ public void setReference(Treference value) {
+ this.reference = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+}
Deleted: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tcomponent.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomponent.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tcomponent.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -1,69 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-/**
- *
- *
- *
- * The Tcomponent 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 Tcomponent 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.
- *
- *
- *
- * <p>Java class for Tcomponent complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Tcomponent">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public abstract class Tcomponent {
-
- protected String id;
-
- /**
- * Gets the value of the id property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getId() {
- return id;
- }
-
- /**
- * Sets the value of the id property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setId(String value) {
- this.id = value;
- }
-
-}
Deleted: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tdescription.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tdescription.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tdescription.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -1,78 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-
-/**
- *
- *
- * A generic <description> element type to allow documentation to added to the
- * blueprint configuration.
- *
- *
- *
- * <p>Java class for Tdescription complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Tdescription">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <choice maxOccurs="unbounded" minOccurs="0">
- * </choice>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class Tdescription {
-
- protected List<String> content;
-
- /**
- *
- *
- * A generic <description> element type to allow documentation to added to the
- * blueprint configuration.
- *
- * Gets the value of the content 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 content property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getContent().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link String }
- *
- *
- */
- public List<String> getContent() {
- if (content == null) {
- content = new ArrayList<String>();
- }
- return this.content;
- }
-
-}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tinterfaces.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tinterfaces.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tinterfaces.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -6,7 +6,7 @@
//
-package org.jboss.osgi.blueprint.model;
+package org.jboss.osgi.blueprint.reflect;
import java.util.ArrayList;
import java.util.List;
Deleted: 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/model/Tkey.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ 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)
@@ -1,398 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-
-/**
- *
- *
- * The Tkey type defines the element types that are permitted
- * for Map key situations. These can be any of the "value"
- * types other than the <null> element.
- *
- *
- *
- * <p>Java class for Tkey complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Tkey">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}nonNullValue"/>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class Tkey {
-
- protected Tservice service;
- protected TrefCollection refList;
- protected TrefCollection refSet;
- protected Tbean bean;
- protected Treference reference;
- protected Tref refFIXME;
- protected List<Object> any;
- protected Tref idref;
- protected Tvalue value;
- protected Tcollection list;
- protected Tcollection set;
- protected Tmap map;
- protected Tcollection array;
- protected Tprops props;
-
- /**
- * Gets the value of the service property.
- *
- * @return
- * possible object is
- * {@link Tservice }
- *
- */
- public Tservice getService() {
- return service;
- }
-
- /**
- * Sets the value of the service property.
- *
- * @param value
- * allowed object is
- * {@link Tservice }
- *
- */
- public void setService(Tservice value) {
- this.service = value;
- }
-
- /**
- * Gets the value of the refList property.
- *
- * @return
- * possible object is
- * {@link TrefCollection }
- *
- */
- public TrefCollection getRefList() {
- return refList;
- }
-
- /**
- * Sets the value of the refList property.
- *
- * @param value
- * allowed object is
- * {@link TrefCollection }
- *
- */
- public void setRefList(TrefCollection value) {
- this.refList = value;
- }
-
- /**
- * Gets the value of the refSet property.
- *
- * @return
- * possible object is
- * {@link TrefCollection }
- *
- */
- public TrefCollection getRefSet() {
- return refSet;
- }
-
- /**
- * Sets the value of the refSet property.
- *
- * @param value
- * allowed object is
- * {@link TrefCollection }
- *
- */
- public void setRefSet(TrefCollection value) {
- this.refSet = value;
- }
-
- /**
- * Gets the value of the bean property.
- *
- * @return
- * possible object is
- * {@link Tbean }
- *
- */
- public Tbean getBean() {
- return bean;
- }
-
- /**
- * Sets the value of the bean property.
- *
- * @param value
- * allowed object is
- * {@link Tbean }
- *
- */
- public void setBean(Tbean value) {
- this.bean = value;
- }
-
- /**
- * Gets the value of the reference property.
- *
- * @return
- * possible object is
- * {@link Treference }
- *
- */
- public Treference getReference() {
- return reference;
- }
-
- /**
- * Sets the value of the reference property.
- *
- * @param value
- * allowed object is
- * {@link Treference }
- *
- */
- public void setReference(Treference value) {
- this.reference = value;
- }
-
- /**
- * Gets the value of the refFIXME property.
- *
- * @return
- * possible object is
- * {@link Tref }
- *
- */
- public Tref getRefFIXME() {
- return refFIXME;
- }
-
- /**
- * Sets the value of the refFIXME property.
- *
- * @param value
- * allowed object is
- * {@link Tref }
- *
- */
- public void setRefFIXME(Tref value) {
- this.refFIXME = value;
- }
-
- /**
- * Gets the value of the any 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 any property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getAny().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Object }
- *
- *
- */
- public List<Object> getAny() {
- if (any == null) {
- any = new ArrayList<Object>();
- }
- return this.any;
- }
-
- /**
- * Gets the value of the idref property.
- *
- * @return
- * possible object is
- * {@link Tref }
- *
- */
- public Tref getIdref() {
- return idref;
- }
-
- /**
- * Sets the value of the idref property.
- *
- * @param value
- * allowed object is
- * {@link Tref }
- *
- */
- public void setIdref(Tref value) {
- this.idref = value;
- }
-
- /**
- * Gets the value of the value property.
- *
- * @return
- * possible object is
- * {@link Tvalue }
- *
- */
- public Tvalue getValue() {
- return value;
- }
-
- /**
- * Sets the value of the value property.
- *
- * @param value
- * allowed object is
- * {@link Tvalue }
- *
- */
- public void setValue(Tvalue value) {
- this.value = value;
- }
-
- /**
- * Gets the value of the list property.
- *
- * @return
- * possible object is
- * {@link Tcollection }
- *
- */
- public Tcollection getList() {
- return list;
- }
-
- /**
- * Sets the value of the list property.
- *
- * @param value
- * allowed object is
- * {@link Tcollection }
- *
- */
- public void setList(Tcollection value) {
- this.list = value;
- }
-
- /**
- * Gets the value of the set property.
- *
- * @return
- * possible object is
- * {@link Tcollection }
- *
- */
- public Tcollection getSet() {
- return set;
- }
-
- /**
- * Sets the value of the set property.
- *
- * @param value
- * allowed object is
- * {@link Tcollection }
- *
- */
- public void setSet(Tcollection value) {
- this.set = value;
- }
-
- /**
- * Gets the value of the map property.
- *
- * @return
- * possible object is
- * {@link Tmap }
- *
- */
- public Tmap getMap() {
- return map;
- }
-
- /**
- * Sets the value of the map property.
- *
- * @param value
- * allowed object is
- * {@link Tmap }
- *
- */
- public void setMap(Tmap value) {
- this.map = value;
- }
-
- /**
- * Gets the value of the array property.
- *
- * @return
- * possible object is
- * {@link Tcollection }
- *
- */
- public Tcollection getArray() {
- return array;
- }
-
- /**
- * Sets the value of the array property.
- *
- * @param value
- * allowed object is
- * {@link Tcollection }
- *
- */
- public void setArray(Tcollection value) {
- this.array = value;
- }
-
- /**
- * Gets the value of the props property.
- *
- * @return
- * possible object is
- * {@link Tprops }
- *
- */
- public Tprops getProps() {
- return props;
- }
-
- /**
- * Sets the value of the props property.
- *
- * @param value
- * allowed object is
- * {@link Tprops }
- *
- */
- public void setProps(Tprops value) {
- this.props = value;
- }
-
-}
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tkey.java (from rev 88854, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tkey.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tkey.java (rev 0)
+++ 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)
@@ -0,0 +1,398 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.reflect;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * The Tkey type defines the element types that are permitted
+ * for Map key situations. These can be any of the "value"
+ * types other than the <null> element.
+ *
+ *
+ *
+ * <p>Java class for Tkey complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tkey">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}nonNullValue"/>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tkey {
+
+ protected Tservice service;
+ protected TrefCollection refList;
+ protected TrefCollection refSet;
+ protected Bean bean;
+ protected Treference reference;
+ protected Tref refFIXME;
+ protected List<Object> any;
+ protected Tref idref;
+ protected Tvalue value;
+ protected Tcollection list;
+ protected Tcollection set;
+ protected Tmap map;
+ protected Tcollection array;
+ protected Tprops props;
+
+ /**
+ * Gets the value of the service property.
+ *
+ * @return
+ * possible object is
+ * {@link Tservice }
+ *
+ */
+ public Tservice getService() {
+ return service;
+ }
+
+ /**
+ * Sets the value of the service property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tservice }
+ *
+ */
+ public void setService(Tservice value) {
+ this.service = value;
+ }
+
+ /**
+ * Gets the value of the refList property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefList() {
+ return refList;
+ }
+
+ /**
+ * Sets the value of the refList property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefList(TrefCollection value) {
+ this.refList = value;
+ }
+
+ /**
+ * Gets the value of the refSet property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefSet() {
+ return refSet;
+ }
+
+ /**
+ * Sets the value of the refSet property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefSet(TrefCollection value) {
+ this.refSet = value;
+ }
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Bean }
+ *
+ */
+ public Bean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Bean }
+ *
+ */
+ public void setBean(Bean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the reference property.
+ *
+ * @return
+ * possible object is
+ * {@link Treference }
+ *
+ */
+ public Treference getReference() {
+ return reference;
+ }
+
+ /**
+ * Sets the value of the reference property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Treference }
+ *
+ */
+ public void setReference(Treference value) {
+ this.reference = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the idref property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getIdref() {
+ return idref;
+ }
+
+ /**
+ * Sets the value of the idref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setIdref(Tref value) {
+ this.idref = value;
+ }
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link Tvalue }
+ *
+ */
+ public Tvalue getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tvalue }
+ *
+ */
+ public void setValue(Tvalue value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the list property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getList() {
+ return list;
+ }
+
+ /**
+ * Sets the value of the list property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setList(Tcollection value) {
+ this.list = value;
+ }
+
+ /**
+ * Gets the value of the set property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getSet() {
+ return set;
+ }
+
+ /**
+ * Sets the value of the set property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setSet(Tcollection value) {
+ this.set = value;
+ }
+
+ /**
+ * Gets the value of the map property.
+ *
+ * @return
+ * possible object is
+ * {@link Tmap }
+ *
+ */
+ public Tmap getMap() {
+ return map;
+ }
+
+ /**
+ * Sets the value of the map property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tmap }
+ *
+ */
+ public void setMap(Tmap value) {
+ this.map = value;
+ }
+
+ /**
+ * Gets the value of the array property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getArray() {
+ return array;
+ }
+
+ /**
+ * Sets the value of the array property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setArray(Tcollection value) {
+ this.array = value;
+ }
+
+ /**
+ * Gets the value of the props property.
+ *
+ * @return
+ * possible object is
+ * {@link Tprops }
+ *
+ */
+ public Tprops getProps() {
+ return props;
+ }
+
+ /**
+ * Sets the value of the props property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tprops }
+ *
+ */
+ public void setProps(Tprops value) {
+ this.props = value;
+ }
+
+}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tmap.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tmap.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tmap.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -6,7 +6,7 @@
//
-package org.jboss.osgi.blueprint.model;
+package org.jboss.osgi.blueprint.reflect;
import java.util.ArrayList;
import java.util.List;
Deleted: 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/model/TmapEntry.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ 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)
@@ -1,558 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-
-/**
- *
- *
- * TmapEntry is used for <entry> elements nested inside of a <map> element.
- * Each <entry> instance defines a key/value pair that will be added to the
- * Map. Both the keys and values may be arbitrary types. Keys must not
- * be <null> but <null> is permitted for entry values. A default type
- * can be specified for both the keys and the values, but individual keys
- * or values can override the default.
- *
- *
- *
- * <p>Java class for TmapEntry complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="TmapEntry">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="keyFIXME" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tkey" minOccurs="0"/>
- * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value"/>
- * </sequence>
- * <attribute name="key" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
- * <attribute name="key-ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
- * <attribute name="valueFIXME" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
- * <attribute name="value-ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class TmapEntry {
-
- protected Tkey keyFIXME;
- protected Tservice service;
- protected TrefCollection refList;
- protected TrefCollection refSet;
- protected Tbean bean;
- protected Treference reference;
- protected Tref refFIXME;
- protected List<Object> any;
- protected Tref idref;
- protected Tvalue value;
- protected Tcollection list;
- protected Tcollection set;
- protected Tmap map;
- protected Tcollection array;
- protected Tprops props;
- protected Tnull _null;
- protected String key;
- protected String keyRef;
- protected String valueFIXME;
- protected String valueRef;
-
- /**
- * Gets the value of the keyFIXME property.
- *
- * @return
- * possible object is
- * {@link Tkey }
- *
- */
- public Tkey getKeyFIXME() {
- return keyFIXME;
- }
-
- /**
- * Sets the value of the keyFIXME property.
- *
- * @param value
- * allowed object is
- * {@link Tkey }
- *
- */
- public void setKeyFIXME(Tkey value) {
- this.keyFIXME = value;
- }
-
- /**
- * Gets the value of the service property.
- *
- * @return
- * possible object is
- * {@link Tservice }
- *
- */
- public Tservice getService() {
- return service;
- }
-
- /**
- * Sets the value of the service property.
- *
- * @param value
- * allowed object is
- * {@link Tservice }
- *
- */
- public void setService(Tservice value) {
- this.service = value;
- }
-
- /**
- * Gets the value of the refList property.
- *
- * @return
- * possible object is
- * {@link TrefCollection }
- *
- */
- public TrefCollection getRefList() {
- return refList;
- }
-
- /**
- * Sets the value of the refList property.
- *
- * @param value
- * allowed object is
- * {@link TrefCollection }
- *
- */
- public void setRefList(TrefCollection value) {
- this.refList = value;
- }
-
- /**
- * Gets the value of the refSet property.
- *
- * @return
- * possible object is
- * {@link TrefCollection }
- *
- */
- public TrefCollection getRefSet() {
- return refSet;
- }
-
- /**
- * Sets the value of the refSet property.
- *
- * @param value
- * allowed object is
- * {@link TrefCollection }
- *
- */
- public void setRefSet(TrefCollection value) {
- this.refSet = value;
- }
-
- /**
- * Gets the value of the bean property.
- *
- * @return
- * possible object is
- * {@link Tbean }
- *
- */
- public Tbean getBean() {
- return bean;
- }
-
- /**
- * Sets the value of the bean property.
- *
- * @param value
- * allowed object is
- * {@link Tbean }
- *
- */
- public void setBean(Tbean value) {
- this.bean = value;
- }
-
- /**
- * Gets the value of the reference property.
- *
- * @return
- * possible object is
- * {@link Treference }
- *
- */
- public Treference getReference() {
- return reference;
- }
-
- /**
- * Sets the value of the reference property.
- *
- * @param value
- * allowed object is
- * {@link Treference }
- *
- */
- public void setReference(Treference value) {
- this.reference = value;
- }
-
- /**
- * Gets the value of the refFIXME property.
- *
- * @return
- * possible object is
- * {@link Tref }
- *
- */
- public Tref getRefFIXME() {
- return refFIXME;
- }
-
- /**
- * Sets the value of the refFIXME property.
- *
- * @param value
- * allowed object is
- * {@link Tref }
- *
- */
- public void setRefFIXME(Tref value) {
- this.refFIXME = value;
- }
-
- /**
- * Gets the value of the any 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 any property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getAny().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Object }
- *
- *
- */
- public List<Object> getAny() {
- if (any == null) {
- any = new ArrayList<Object>();
- }
- return this.any;
- }
-
- /**
- * Gets the value of the idref property.
- *
- * @return
- * possible object is
- * {@link Tref }
- *
- */
- public Tref getIdref() {
- return idref;
- }
-
- /**
- * Sets the value of the idref property.
- *
- * @param value
- * allowed object is
- * {@link Tref }
- *
- */
- public void setIdref(Tref value) {
- this.idref = value;
- }
-
- /**
- * Gets the value of the value property.
- *
- * @return
- * possible object is
- * {@link Tvalue }
- *
- */
- public Tvalue getValue() {
- return value;
- }
-
- /**
- * Sets the value of the value property.
- *
- * @param value
- * allowed object is
- * {@link Tvalue }
- *
- */
- public void setValue(Tvalue value) {
- this.value = value;
- }
-
- /**
- * Gets the value of the list property.
- *
- * @return
- * possible object is
- * {@link Tcollection }
- *
- */
- public Tcollection getList() {
- return list;
- }
-
- /**
- * Sets the value of the list property.
- *
- * @param value
- * allowed object is
- * {@link Tcollection }
- *
- */
- public void setList(Tcollection value) {
- this.list = value;
- }
-
- /**
- * Gets the value of the set property.
- *
- * @return
- * possible object is
- * {@link Tcollection }
- *
- */
- public Tcollection getSet() {
- return set;
- }
-
- /**
- * Sets the value of the set property.
- *
- * @param value
- * allowed object is
- * {@link Tcollection }
- *
- */
- public void setSet(Tcollection value) {
- this.set = value;
- }
-
- /**
- * Gets the value of the map property.
- *
- * @return
- * possible object is
- * {@link Tmap }
- *
- */
- public Tmap getMap() {
- return map;
- }
-
- /**
- * Sets the value of the map property.
- *
- * @param value
- * allowed object is
- * {@link Tmap }
- *
- */
- public void setMap(Tmap value) {
- this.map = value;
- }
-
- /**
- * Gets the value of the array property.
- *
- * @return
- * possible object is
- * {@link Tcollection }
- *
- */
- public Tcollection getArray() {
- return array;
- }
-
- /**
- * Sets the value of the array property.
- *
- * @param value
- * allowed object is
- * {@link Tcollection }
- *
- */
- public void setArray(Tcollection value) {
- this.array = value;
- }
-
- /**
- * Gets the value of the props property.
- *
- * @return
- * possible object is
- * {@link Tprops }
- *
- */
- public Tprops getProps() {
- return props;
- }
-
- /**
- * Sets the value of the props property.
- *
- * @param value
- * allowed object is
- * {@link Tprops }
- *
- */
- public void setProps(Tprops value) {
- this.props = value;
- }
-
- /**
- * Gets the value of the null property.
- *
- * @return
- * possible object is
- * {@link Tnull }
- *
- */
- public Tnull getNull() {
- return _null;
- }
-
- /**
- * Sets the value of the null property.
- *
- * @param value
- * allowed object is
- * {@link Tnull }
- *
- */
- public void setNull(Tnull value) {
- this._null = value;
- }
-
- /**
- * Gets the value of the key property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getKey() {
- return key;
- }
-
- /**
- * Sets the value of the key property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setKey(String value) {
- this.key = value;
- }
-
- /**
- * Gets the value of the keyRef property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getKeyRef() {
- return keyRef;
- }
-
- /**
- * Sets the value of the keyRef property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setKeyRef(String value) {
- this.keyRef = value;
- }
-
- /**
- * Gets the value of the valueFIXME property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getValueFIXME() {
- return valueFIXME;
- }
-
- /**
- * Sets the value of the valueFIXME property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setValueFIXME(String value) {
- this.valueFIXME = value;
- }
-
- /**
- * Gets the value of the valueRef property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getValueRef() {
- return valueRef;
- }
-
- /**
- * Sets the value of the valueRef property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setValueRef(String value) {
- this.valueRef = value;
- }
-
-}
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TmapEntry.java (from rev 88854, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TmapEntry.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TmapEntry.java (rev 0)
+++ 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)
@@ -0,0 +1,558 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.reflect;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * TmapEntry is used for <entry> elements nested inside of a <map> element.
+ * Each <entry> instance defines a key/value pair that will be added to the
+ * Map. Both the keys and values may be arbitrary types. Keys must not
+ * be <null> but <null> is permitted for entry values. A default type
+ * can be specified for both the keys and the values, but individual keys
+ * or values can override the default.
+ *
+ *
+ *
+ * <p>Java class for TmapEntry complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="TmapEntry">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="keyFIXME" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tkey" minOccurs="0"/>
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value"/>
+ * </sequence>
+ * <attribute name="key" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
+ * <attribute name="key-ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * <attribute name="valueFIXME" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
+ * <attribute name="value-ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class TmapEntry {
+
+ protected Tkey keyFIXME;
+ protected Tservice service;
+ protected TrefCollection refList;
+ protected TrefCollection refSet;
+ protected Bean bean;
+ protected Treference reference;
+ protected Tref refFIXME;
+ protected List<Object> any;
+ protected Tref idref;
+ protected Tvalue value;
+ protected Tcollection list;
+ protected Tcollection set;
+ protected Tmap map;
+ protected Tcollection array;
+ protected Tprops props;
+ protected Tnull _null;
+ protected String key;
+ protected String keyRef;
+ protected String valueFIXME;
+ protected String valueRef;
+
+ /**
+ * Gets the value of the keyFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tkey }
+ *
+ */
+ public Tkey getKeyFIXME() {
+ return keyFIXME;
+ }
+
+ /**
+ * Sets the value of the keyFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tkey }
+ *
+ */
+ public void setKeyFIXME(Tkey value) {
+ this.keyFIXME = value;
+ }
+
+ /**
+ * Gets the value of the service property.
+ *
+ * @return
+ * possible object is
+ * {@link Tservice }
+ *
+ */
+ public Tservice getService() {
+ return service;
+ }
+
+ /**
+ * Sets the value of the service property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tservice }
+ *
+ */
+ public void setService(Tservice value) {
+ this.service = value;
+ }
+
+ /**
+ * Gets the value of the refList property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefList() {
+ return refList;
+ }
+
+ /**
+ * Sets the value of the refList property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefList(TrefCollection value) {
+ this.refList = value;
+ }
+
+ /**
+ * Gets the value of the refSet property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefSet() {
+ return refSet;
+ }
+
+ /**
+ * Sets the value of the refSet property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefSet(TrefCollection value) {
+ this.refSet = value;
+ }
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Bean }
+ *
+ */
+ public Bean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Bean }
+ *
+ */
+ public void setBean(Bean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the reference property.
+ *
+ * @return
+ * possible object is
+ * {@link Treference }
+ *
+ */
+ public Treference getReference() {
+ return reference;
+ }
+
+ /**
+ * Sets the value of the reference property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Treference }
+ *
+ */
+ public void setReference(Treference value) {
+ this.reference = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the idref property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getIdref() {
+ return idref;
+ }
+
+ /**
+ * Sets the value of the idref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setIdref(Tref value) {
+ this.idref = value;
+ }
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link Tvalue }
+ *
+ */
+ public Tvalue getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tvalue }
+ *
+ */
+ public void setValue(Tvalue value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the list property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getList() {
+ return list;
+ }
+
+ /**
+ * Sets the value of the list property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setList(Tcollection value) {
+ this.list = value;
+ }
+
+ /**
+ * Gets the value of the set property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getSet() {
+ return set;
+ }
+
+ /**
+ * Sets the value of the set property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setSet(Tcollection value) {
+ this.set = value;
+ }
+
+ /**
+ * Gets the value of the map property.
+ *
+ * @return
+ * possible object is
+ * {@link Tmap }
+ *
+ */
+ public Tmap getMap() {
+ return map;
+ }
+
+ /**
+ * Sets the value of the map property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tmap }
+ *
+ */
+ public void setMap(Tmap value) {
+ this.map = value;
+ }
+
+ /**
+ * Gets the value of the array property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getArray() {
+ return array;
+ }
+
+ /**
+ * Sets the value of the array property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setArray(Tcollection value) {
+ this.array = value;
+ }
+
+ /**
+ * Gets the value of the props property.
+ *
+ * @return
+ * possible object is
+ * {@link Tprops }
+ *
+ */
+ public Tprops getProps() {
+ return props;
+ }
+
+ /**
+ * Sets the value of the props property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tprops }
+ *
+ */
+ public void setProps(Tprops value) {
+ this.props = value;
+ }
+
+ /**
+ * Gets the value of the null property.
+ *
+ * @return
+ * possible object is
+ * {@link Tnull }
+ *
+ */
+ public Tnull getNull() {
+ return _null;
+ }
+
+ /**
+ * Sets the value of the null property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tnull }
+ *
+ */
+ public void setNull(Tnull value) {
+ this._null = value;
+ }
+
+ /**
+ * Gets the value of the key property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * Sets the value of the key property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setKey(String value) {
+ this.key = value;
+ }
+
+ /**
+ * Gets the value of the keyRef property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getKeyRef() {
+ return keyRef;
+ }
+
+ /**
+ * Sets the value of the keyRef property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setKeyRef(String value) {
+ this.keyRef = value;
+ }
+
+ /**
+ * Gets the value of the valueFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValueFIXME() {
+ return valueFIXME;
+ }
+
+ /**
+ * Sets the value of the valueFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValueFIXME(String value) {
+ this.valueFIXME = value;
+ }
+
+ /**
+ * Gets the value of the valueRef property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValueRef() {
+ return valueRef;
+ }
+
+ /**
+ * Sets the value of the valueRef property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValueRef(String value) {
+ this.valueRef = value;
+ }
+
+}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tnull.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tnull.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tnull.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -6,7 +6,7 @@
//
-package org.jboss.osgi.blueprint.model;
+package org.jboss.osgi.blueprint.reflect;
/**
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tprop.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tprop.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tprop.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -6,7 +6,7 @@
//
-package org.jboss.osgi.blueprint.model;
+package org.jboss.osgi.blueprint.reflect;
/**
*
Deleted: 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/model/Tproperty.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ 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)
@@ -1,534 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-
-/**
- *
- *
- * A property that will be injected into a created <bean>
- * component. The <property> elements correspond to named
- * JavaBean setting methods for a created bean object.
- *
- * The value and ref attributes are convenience shortcuts to make
- * the <argument> tag easier to code. A fuller set of injected
- * values and types can be specified using one of the "value"
- * type elements.
- *
- *
- *
- * <p>Java class for Tproperty complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Tproperty">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tdescription" minOccurs="0"/>
- * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value"/>
- * </sequence>
- * <attribute name="name" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
- * <attribute name="ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
- * <attribute name="valueFIXME" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class Tproperty {
-
- protected Tdescription description;
- protected Tservice service;
- protected TrefCollection refList;
- protected TrefCollection refSet;
- protected Tbean bean;
- protected Treference reference;
- protected Tref refFIXME;
- protected List<Object> any;
- protected Tref idref;
- protected Tvalue value;
- protected Tcollection list;
- protected Tcollection set;
- protected Tmap map;
- protected Tcollection array;
- protected Tprops props;
- protected Tnull _null;
- protected String name;
- protected String ref;
- protected String valueFIXME;
-
- /**
- * Gets the value of the description property.
- *
- * @return
- * possible object is
- * {@link Tdescription }
- *
- */
- public Tdescription getDescription() {
- return description;
- }
-
- /**
- * Sets the value of the description property.
- *
- * @param value
- * allowed object is
- * {@link Tdescription }
- *
- */
- public void setDescription(Tdescription value) {
- this.description = value;
- }
-
- /**
- * Gets the value of the service property.
- *
- * @return
- * possible object is
- * {@link Tservice }
- *
- */
- public Tservice getService() {
- return service;
- }
-
- /**
- * Sets the value of the service property.
- *
- * @param value
- * allowed object is
- * {@link Tservice }
- *
- */
- public void setService(Tservice value) {
- this.service = value;
- }
-
- /**
- * Gets the value of the refList property.
- *
- * @return
- * possible object is
- * {@link TrefCollection }
- *
- */
- public TrefCollection getRefList() {
- return refList;
- }
-
- /**
- * Sets the value of the refList property.
- *
- * @param value
- * allowed object is
- * {@link TrefCollection }
- *
- */
- public void setRefList(TrefCollection value) {
- this.refList = value;
- }
-
- /**
- * Gets the value of the refSet property.
- *
- * @return
- * possible object is
- * {@link TrefCollection }
- *
- */
- public TrefCollection getRefSet() {
- return refSet;
- }
-
- /**
- * Sets the value of the refSet property.
- *
- * @param value
- * allowed object is
- * {@link TrefCollection }
- *
- */
- public void setRefSet(TrefCollection value) {
- this.refSet = value;
- }
-
- /**
- * Gets the value of the bean property.
- *
- * @return
- * possible object is
- * {@link Tbean }
- *
- */
- public Tbean getBean() {
- return bean;
- }
-
- /**
- * Sets the value of the bean property.
- *
- * @param value
- * allowed object is
- * {@link Tbean }
- *
- */
- public void setBean(Tbean value) {
- this.bean = value;
- }
-
- /**
- * Gets the value of the reference property.
- *
- * @return
- * possible object is
- * {@link Treference }
- *
- */
- public Treference getReference() {
- return reference;
- }
-
- /**
- * Sets the value of the reference property.
- *
- * @param value
- * allowed object is
- * {@link Treference }
- *
- */
- public void setReference(Treference value) {
- this.reference = value;
- }
-
- /**
- * Gets the value of the refFIXME property.
- *
- * @return
- * possible object is
- * {@link Tref }
- *
- */
- public Tref getRefFIXME() {
- return refFIXME;
- }
-
- /**
- * Sets the value of the refFIXME property.
- *
- * @param value
- * allowed object is
- * {@link Tref }
- *
- */
- public void setRefFIXME(Tref value) {
- this.refFIXME = value;
- }
-
- /**
- * Gets the value of the any 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 any property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getAny().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Object }
- *
- *
- */
- public List<Object> getAny() {
- if (any == null) {
- any = new ArrayList<Object>();
- }
- return this.any;
- }
-
- /**
- * Gets the value of the idref property.
- *
- * @return
- * possible object is
- * {@link Tref }
- *
- */
- public Tref getIdref() {
- return idref;
- }
-
- /**
- * Sets the value of the idref property.
- *
- * @param value
- * allowed object is
- * {@link Tref }
- *
- */
- public void setIdref(Tref value) {
- this.idref = value;
- }
-
- /**
- * Gets the value of the value property.
- *
- * @return
- * possible object is
- * {@link Tvalue }
- *
- */
- public Tvalue getValue() {
- return value;
- }
-
- /**
- * Sets the value of the value property.
- *
- * @param value
- * allowed object is
- * {@link Tvalue }
- *
- */
- public void setValue(Tvalue value) {
- this.value = value;
- }
-
- /**
- * Gets the value of the list property.
- *
- * @return
- * possible object is
- * {@link Tcollection }
- *
- */
- public Tcollection getList() {
- return list;
- }
-
- /**
- * Sets the value of the list property.
- *
- * @param value
- * allowed object is
- * {@link Tcollection }
- *
- */
- public void setList(Tcollection value) {
- this.list = value;
- }
-
- /**
- * Gets the value of the set property.
- *
- * @return
- * possible object is
- * {@link Tcollection }
- *
- */
- public Tcollection getSet() {
- return set;
- }
-
- /**
- * Sets the value of the set property.
- *
- * @param value
- * allowed object is
- * {@link Tcollection }
- *
- */
- public void setSet(Tcollection value) {
- this.set = value;
- }
-
- /**
- * Gets the value of the map property.
- *
- * @return
- * possible object is
- * {@link Tmap }
- *
- */
- public Tmap getMap() {
- return map;
- }
-
- /**
- * Sets the value of the map property.
- *
- * @param value
- * allowed object is
- * {@link Tmap }
- *
- */
- public void setMap(Tmap value) {
- this.map = value;
- }
-
- /**
- * Gets the value of the array property.
- *
- * @return
- * possible object is
- * {@link Tcollection }
- *
- */
- public Tcollection getArray() {
- return array;
- }
-
- /**
- * Sets the value of the array property.
- *
- * @param value
- * allowed object is
- * {@link Tcollection }
- *
- */
- public void setArray(Tcollection value) {
- this.array = value;
- }
-
- /**
- * Gets the value of the props property.
- *
- * @return
- * possible object is
- * {@link Tprops }
- *
- */
- public Tprops getProps() {
- return props;
- }
-
- /**
- * Sets the value of the props property.
- *
- * @param value
- * allowed object is
- * {@link Tprops }
- *
- */
- public void setProps(Tprops value) {
- this.props = value;
- }
-
- /**
- * Gets the value of the null property.
- *
- * @return
- * possible object is
- * {@link Tnull }
- *
- */
- public Tnull getNull() {
- return _null;
- }
-
- /**
- * Sets the value of the null property.
- *
- * @param value
- * allowed object is
- * {@link Tnull }
- *
- */
- public void setNull(Tnull value) {
- this._null = value;
- }
-
- /**
- * Gets the value of the name property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getName() {
- return name;
- }
-
- /**
- * Sets the value of the name property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setName(String value) {
- this.name = value;
- }
-
- /**
- * Gets the value of the ref property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getRef() {
- return ref;
- }
-
- /**
- * Sets the value of the ref property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setRef(String value) {
- this.ref = value;
- }
-
- /**
- * Gets the value of the valueFIXME property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getValueFIXME() {
- return valueFIXME;
- }
-
- /**
- * Sets the value of the valueFIXME property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setValueFIXME(String value) {
- this.valueFIXME = value;
- }
-
-}
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tproperty.java (from rev 88854, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tproperty.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tproperty.java (rev 0)
+++ 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)
@@ -0,0 +1,534 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.reflect;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * A property that will be injected into a created <bean>
+ * component. The <property> elements correspond to named
+ * JavaBean setting methods for a created bean object.
+ *
+ * The value and ref attributes are convenience shortcuts to make
+ * the <argument> tag easier to code. A fuller set of injected
+ * values and types can be specified using one of the "value"
+ * type elements.
+ *
+ *
+ *
+ * <p>Java class for Tproperty complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tproperty">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}String" minOccurs="0"/>
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value"/>
+ * </sequence>
+ * <attribute name="name" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
+ * <attribute name="ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * <attribute name="valueFIXME" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tproperty {
+
+ protected String description;
+ protected Tservice service;
+ protected TrefCollection refList;
+ protected TrefCollection refSet;
+ protected Bean bean;
+ protected Treference reference;
+ protected Tref refFIXME;
+ protected List<Object> any;
+ protected Tref idref;
+ protected Tvalue value;
+ protected Tcollection list;
+ protected Tcollection set;
+ protected Tmap map;
+ protected Tcollection array;
+ protected Tprops props;
+ protected Tnull _null;
+ protected String name;
+ protected String ref;
+ protected String valueFIXME;
+
+ /**
+ * Gets the value of the description property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDescription(String value) {
+ this.description = value;
+ }
+
+ /**
+ * Gets the value of the service property.
+ *
+ * @return
+ * possible object is
+ * {@link Tservice }
+ *
+ */
+ public Tservice getService() {
+ return service;
+ }
+
+ /**
+ * Sets the value of the service property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tservice }
+ *
+ */
+ public void setService(Tservice value) {
+ this.service = value;
+ }
+
+ /**
+ * Gets the value of the refList property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefList() {
+ return refList;
+ }
+
+ /**
+ * Sets the value of the refList property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefList(TrefCollection value) {
+ this.refList = value;
+ }
+
+ /**
+ * Gets the value of the refSet property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefSet() {
+ return refSet;
+ }
+
+ /**
+ * Sets the value of the refSet property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefSet(TrefCollection value) {
+ this.refSet = value;
+ }
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Bean }
+ *
+ */
+ public Bean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Bean }
+ *
+ */
+ public void setBean(Bean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the reference property.
+ *
+ * @return
+ * possible object is
+ * {@link Treference }
+ *
+ */
+ public Treference getReference() {
+ return reference;
+ }
+
+ /**
+ * Sets the value of the reference property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Treference }
+ *
+ */
+ public void setReference(Treference value) {
+ this.reference = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the idref property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getIdref() {
+ return idref;
+ }
+
+ /**
+ * Sets the value of the idref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setIdref(Tref value) {
+ this.idref = value;
+ }
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link Tvalue }
+ *
+ */
+ public Tvalue getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tvalue }
+ *
+ */
+ public void setValue(Tvalue value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the list property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getList() {
+ return list;
+ }
+
+ /**
+ * Sets the value of the list property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setList(Tcollection value) {
+ this.list = value;
+ }
+
+ /**
+ * Gets the value of the set property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getSet() {
+ return set;
+ }
+
+ /**
+ * Sets the value of the set property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setSet(Tcollection value) {
+ this.set = value;
+ }
+
+ /**
+ * Gets the value of the map property.
+ *
+ * @return
+ * possible object is
+ * {@link Tmap }
+ *
+ */
+ public Tmap getMap() {
+ return map;
+ }
+
+ /**
+ * Sets the value of the map property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tmap }
+ *
+ */
+ public void setMap(Tmap value) {
+ this.map = value;
+ }
+
+ /**
+ * Gets the value of the array property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getArray() {
+ return array;
+ }
+
+ /**
+ * Sets the value of the array property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setArray(Tcollection value) {
+ this.array = value;
+ }
+
+ /**
+ * Gets the value of the props property.
+ *
+ * @return
+ * possible object is
+ * {@link Tprops }
+ *
+ */
+ public Tprops getProps() {
+ return props;
+ }
+
+ /**
+ * Sets the value of the props property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tprops }
+ *
+ */
+ public void setProps(Tprops value) {
+ this.props = value;
+ }
+
+ /**
+ * Gets the value of the null property.
+ *
+ * @return
+ * possible object is
+ * {@link Tnull }
+ *
+ */
+ public Tnull getNull() {
+ return _null;
+ }
+
+ /**
+ * Sets the value of the null property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tnull }
+ *
+ */
+ public void setNull(Tnull value) {
+ this._null = value;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the ref property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRef() {
+ return ref;
+ }
+
+ /**
+ * Sets the value of the ref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRef(String value) {
+ this.ref = value;
+ }
+
+ /**
+ * Gets the value of the valueFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValueFIXME() {
+ return valueFIXME;
+ }
+
+ /**
+ * Sets the value of the valueFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValueFIXME(String value) {
+ this.valueFIXME = value;
+ }
+
+}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tprops.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tprops.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tprops.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -6,7 +6,7 @@
//
-package org.jboss.osgi.blueprint.model;
+package org.jboss.osgi.blueprint.reflect;
import java.util.ArrayList;
import java.util.List;
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tref.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tref.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tref.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -6,7 +6,7 @@
//
-package org.jboss.osgi.blueprint.model;
+package org.jboss.osgi.blueprint.reflect;
/**
*
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TrefCollection.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TrefCollection.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TrefCollection.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -6,7 +6,7 @@
//
-package org.jboss.osgi.blueprint.model;
+package org.jboss.osgi.blueprint.reflect;
/**
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Treference.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Treference.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Treference.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -6,7 +6,7 @@
//
-package org.jboss.osgi.blueprint.model;
+package org.jboss.osgi.blueprint.reflect;
import java.math.BigInteger;
Deleted: 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/model/TregistrationListener.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ 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)
@@ -1,230 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- *
- *
- * A registration listener definition. The target registration listener
- * can be either a <ref> to a <bean> or <service> component, or an inline
- * <bean> or <service> component definition. The registration-method and
- * unregistration-method attributes define the methods that will be called
- * for the respective events.
- *
- * For the very common case of using a <ref> to a listener component, the
- * ref attribute may also be used as a shortcut.
- *
- *
- *
- * <p>Java class for TregistrationListener complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="TregistrationListener">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}targetComponent"/>
- * <attribute name="ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
- * <attribute name="registration-method" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
- * <attribute name="unregistration-method" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class TregistrationListener {
-
- protected Tbean bean;
- protected Treference reference;
- protected Tref refFIXME;
- protected List<Object> any;
- protected String ref;
- protected String registrationMethod;
- protected String unregistrationMethod;
-
- /**
- * Gets the value of the bean property.
- *
- * @return
- * possible object is
- * {@link Tbean }
- *
- */
- public Tbean getBean() {
- return bean;
- }
-
- /**
- * Sets the value of the bean property.
- *
- * @param value
- * allowed object is
- * {@link Tbean }
- *
- */
- public void setBean(Tbean value) {
- this.bean = value;
- }
-
- /**
- * Gets the value of the reference property.
- *
- * @return
- * possible object is
- * {@link Treference }
- *
- */
- public Treference getReference() {
- return reference;
- }
-
- /**
- * Sets the value of the reference property.
- *
- * @param value
- * allowed object is
- * {@link Treference }
- *
- */
- public void setReference(Treference value) {
- this.reference = value;
- }
-
- /**
- * Gets the value of the refFIXME property.
- *
- * @return
- * possible object is
- * {@link Tref }
- *
- */
- public Tref getRefFIXME() {
- return refFIXME;
- }
-
- /**
- * Sets the value of the refFIXME property.
- *
- * @param value
- * allowed object is
- * {@link Tref }
- *
- */
- public void setRefFIXME(Tref value) {
- this.refFIXME = value;
- }
-
- /**
- * Gets the value of the any 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 any property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getAny().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Object }
- *
- *
- */
- public List<Object> getAny() {
- if (any == null) {
- any = new ArrayList<Object>();
- }
- return this.any;
- }
-
- /**
- * Gets the value of the ref property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getRef() {
- return ref;
- }
-
- /**
- * Sets the value of the ref property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setRef(String value) {
- this.ref = value;
- }
-
- /**
- * Gets the value of the registrationMethod property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getRegistrationMethod() {
- return registrationMethod;
- }
-
- /**
- * Sets the value of the registrationMethod property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setRegistrationMethod(String value) {
- this.registrationMethod = value;
- }
-
- /**
- * Gets the value of the unregistrationMethod property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getUnregistrationMethod() {
- return unregistrationMethod;
- }
-
- /**
- * Sets the value of the unregistrationMethod property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setUnregistrationMethod(String value) {
- this.unregistrationMethod = value;
- }
-
-}
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TregistrationListener.java (from rev 88854, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TregistrationListener.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TregistrationListener.java (rev 0)
+++ 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)
@@ -0,0 +1,230 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.reflect;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ *
+ *
+ * A registration listener definition. The target registration listener
+ * can be either a <ref> to a <bean> or <service> component, or an inline
+ * <bean> or <service> component definition. The registration-method and
+ * unregistration-method attributes define the methods that will be called
+ * for the respective events.
+ *
+ * For the very common case of using a <ref> to a listener component, the
+ * ref attribute may also be used as a shortcut.
+ *
+ *
+ *
+ * <p>Java class for TregistrationListener complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="TregistrationListener">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}targetComponent"/>
+ * <attribute name="ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * <attribute name="registration-method" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
+ * <attribute name="unregistration-method" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class TregistrationListener {
+
+ protected Bean bean;
+ protected Treference reference;
+ protected Tref refFIXME;
+ protected List<Object> any;
+ protected String ref;
+ protected String registrationMethod;
+ protected String unregistrationMethod;
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Bean }
+ *
+ */
+ public Bean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Bean }
+ *
+ */
+ public void setBean(Bean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the reference property.
+ *
+ * @return
+ * possible object is
+ * {@link Treference }
+ *
+ */
+ public Treference getReference() {
+ return reference;
+ }
+
+ /**
+ * Sets the value of the reference property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Treference }
+ *
+ */
+ public void setReference(Treference value) {
+ this.reference = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the ref property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRef() {
+ return ref;
+ }
+
+ /**
+ * Sets the value of the ref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRef(String value) {
+ this.ref = value;
+ }
+
+ /**
+ * Gets the value of the registrationMethod property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRegistrationMethod() {
+ return registrationMethod;
+ }
+
+ /**
+ * Sets the value of the registrationMethod property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRegistrationMethod(String value) {
+ this.registrationMethod = value;
+ }
+
+ /**
+ * Gets the value of the unregistrationMethod property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getUnregistrationMethod() {
+ return unregistrationMethod;
+ }
+
+ /**
+ * Sets the value of the unregistrationMethod property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setUnregistrationMethod(String value) {
+ this.unregistrationMethod = value;
+ }
+
+}
Deleted: 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/model/Tservice.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ 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)
@@ -1,396 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import javax.xml.namespace.QName;
-import org.w3c.dom.Element;
-
-
-/**
- *
- *
- * Tservice is the type for services exported by this blueprint bundle.
- * Services are sourced by either a <ref> to a <bean> component or an
- * <inline> bean component.
- *
- *
- *
- * <p>Java class for Tservice complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Tservice">
- * <complexContent>
- * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tcomponent">
- * <sequence>
- * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}serviceElements"/>
- * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
- * </sequence>
- * <attribute name="interface" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
- * <attribute name="ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
- * <attribute name="depends-on" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TdependsOn" />
- * <attribute name="auto-export" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TautoExportModes" default="disabled" />
- * <attribute name="ranking" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
- * <anyAttribute processContents='lax' namespace='##other'/>
- * </extension>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class Tservice
- extends Tcomponent
-{
-
- protected Tdescription description;
- protected Tinterfaces interfaces;
- protected TserviceProperties serviceProperties;
- protected List<TregistrationListener> registrationListener;
- protected Tbean bean;
- protected Tref refFIXME;
- protected List<Object> any;
- protected String _interface;
- protected String ref;
- protected String dependsOn;
- protected TautoExportModes autoExport;
- protected Integer ranking;
- private Map<QName, String> otherAttributes = new HashMap<QName, String>();
-
- /**
- * Gets the value of the description property.
- *
- * @return
- * possible object is
- * {@link Tdescription }
- *
- */
- public Tdescription getDescription() {
- return description;
- }
-
- /**
- * Sets the value of the description property.
- *
- * @param value
- * allowed object is
- * {@link Tdescription }
- *
- */
- public void setDescription(Tdescription value) {
- this.description = value;
- }
-
- /**
- * Gets the value of the interfaces property.
- *
- * @return
- * possible object is
- * {@link Tinterfaces }
- *
- */
- public Tinterfaces getInterfaces() {
- return interfaces;
- }
-
- /**
- * Sets the value of the interfaces property.
- *
- * @param value
- * allowed object is
- * {@link Tinterfaces }
- *
- */
- public void setInterfaces(Tinterfaces value) {
- this.interfaces = value;
- }
-
- /**
- * Gets the value of the serviceProperties property.
- *
- * @return
- * possible object is
- * {@link TserviceProperties }
- *
- */
- public TserviceProperties getServiceProperties() {
- return serviceProperties;
- }
-
- /**
- * Sets the value of the serviceProperties property.
- *
- * @param value
- * allowed object is
- * {@link TserviceProperties }
- *
- */
- public void setServiceProperties(TserviceProperties value) {
- this.serviceProperties = value;
- }
-
- /**
- * Gets the value of the registrationListener 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 registrationListener property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getRegistrationListener().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link TregistrationListener }
- *
- *
- */
- public List<TregistrationListener> getRegistrationListener() {
- if (registrationListener == null) {
- registrationListener = new ArrayList<TregistrationListener>();
- }
- return this.registrationListener;
- }
-
- /**
- * Gets the value of the bean property.
- *
- * @return
- * possible object is
- * {@link Tbean }
- *
- */
- public Tbean getBean() {
- return bean;
- }
-
- /**
- * Sets the value of the bean property.
- *
- * @param value
- * allowed object is
- * {@link Tbean }
- *
- */
- public void setBean(Tbean value) {
- this.bean = value;
- }
-
- /**
- * Gets the value of the refFIXME property.
- *
- * @return
- * possible object is
- * {@link Tref }
- *
- */
- public Tref getRefFIXME() {
- return refFIXME;
- }
-
- /**
- * Sets the value of the refFIXME property.
- *
- * @param value
- * allowed object is
- * {@link Tref }
- *
- */
- public void setRefFIXME(Tref value) {
- this.refFIXME = value;
- }
-
- /**
- * Gets the value of the any 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 any property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getAny().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Object }
- * {@link Element }
- *
- *
- */
- public List<Object> getAny() {
- if (any == null) {
- any = new ArrayList<Object>();
- }
- return this.any;
- }
-
- /**
- * Gets the value of the interface property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getInterface() {
- return _interface;
- }
-
- /**
- * Sets the value of the interface property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setInterface(String value) {
- this._interface = value;
- }
-
- /**
- * Gets the value of the ref property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getRef() {
- return ref;
- }
-
- /**
- * Sets the value of the ref property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setRef(String value) {
- this.ref = 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 autoExport property.
- *
- * @return
- * possible object is
- * {@link TautoExportModes }
- *
- */
- public TautoExportModes getAutoExport() {
- if (autoExport == null) {
- return TautoExportModes.DISABLED;
- } else {
- return autoExport;
- }
- }
-
- /**
- * Sets the value of the autoExport property.
- *
- * @param value
- * allowed object is
- * {@link TautoExportModes }
- *
- */
- public void setAutoExport(TautoExportModes value) {
- this.autoExport = value;
- }
-
- /**
- * Gets the value of the ranking property.
- *
- * @return
- * possible object is
- * {@link Integer }
- *
- */
- public int getRanking() {
- if (ranking == null) {
- return 0;
- } else {
- return ranking;
- }
- }
-
- /**
- * Sets the value of the ranking property.
- *
- * @param value
- * allowed object is
- * {@link Integer }
- *
- */
- public void setRanking(Integer value) {
- this.ranking = 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/Tservice.java (from rev 88854, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tservice.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tservice.java (rev 0)
+++ 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)
@@ -0,0 +1,396 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.reflect;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import javax.xml.namespace.QName;
+import org.w3c.dom.Element;
+
+
+/**
+ *
+ *
+ * Tservice is the type for services exported by this blueprint bundle.
+ * Services are sourced by either a <ref> to a <bean> component or an
+ * <inline> bean component.
+ *
+ *
+ *
+ * <p>Java class for Tservice complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tservice">
+ * <complexContent>
+ * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tcomponent">
+ * <sequence>
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}serviceElements"/>
+ * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="interface" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
+ * <attribute name="ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * <attribute name="depends-on" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TdependsOn" />
+ * <attribute name="auto-export" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TautoExportModes" default="disabled" />
+ * <attribute name="ranking" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+ * <anyAttribute processContents='lax' namespace='##other'/>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tservice
+ extends Component
+{
+
+ protected String description;
+ protected Tinterfaces interfaces;
+ protected TserviceProperties serviceProperties;
+ protected List<TregistrationListener> registrationListener;
+ protected Bean bean;
+ protected Tref refFIXME;
+ protected List<Object> any;
+ protected String _interface;
+ protected String ref;
+ protected String dependsOn;
+ protected TautoExportModes autoExport;
+ protected Integer ranking;
+ private Map<QName, String> otherAttributes = new HashMap<QName, String>();
+
+ /**
+ * Gets the value of the description property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDescription(String value) {
+ this.description = value;
+ }
+
+ /**
+ * Gets the value of the interfaces property.
+ *
+ * @return
+ * possible object is
+ * {@link Tinterfaces }
+ *
+ */
+ public Tinterfaces getInterfaces() {
+ return interfaces;
+ }
+
+ /**
+ * Sets the value of the interfaces property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tinterfaces }
+ *
+ */
+ public void setInterfaces(Tinterfaces value) {
+ this.interfaces = value;
+ }
+
+ /**
+ * Gets the value of the serviceProperties property.
+ *
+ * @return
+ * possible object is
+ * {@link TserviceProperties }
+ *
+ */
+ public TserviceProperties getServiceProperties() {
+ return serviceProperties;
+ }
+
+ /**
+ * Sets the value of the serviceProperties property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TserviceProperties }
+ *
+ */
+ public void setServiceProperties(TserviceProperties value) {
+ this.serviceProperties = value;
+ }
+
+ /**
+ * Gets the value of the registrationListener 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 registrationListener property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getRegistrationListener().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link TregistrationListener }
+ *
+ *
+ */
+ public List<TregistrationListener> getRegistrationListener() {
+ if (registrationListener == null) {
+ registrationListener = new ArrayList<TregistrationListener>();
+ }
+ return this.registrationListener;
+ }
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Bean }
+ *
+ */
+ public Bean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Bean }
+ *
+ */
+ public void setBean(Bean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ * {@link Element }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the interface property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getInterface() {
+ return _interface;
+ }
+
+ /**
+ * Sets the value of the interface property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setInterface(String value) {
+ this._interface = value;
+ }
+
+ /**
+ * Gets the value of the ref property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRef() {
+ return ref;
+ }
+
+ /**
+ * Sets the value of the ref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRef(String value) {
+ this.ref = 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 autoExport property.
+ *
+ * @return
+ * possible object is
+ * {@link TautoExportModes }
+ *
+ */
+ public TautoExportModes getAutoExport() {
+ if (autoExport == null) {
+ return TautoExportModes.DISABLED;
+ } else {
+ return autoExport;
+ }
+ }
+
+ /**
+ * Sets the value of the autoExport property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TautoExportModes }
+ *
+ */
+ public void setAutoExport(TautoExportModes value) {
+ this.autoExport = value;
+ }
+
+ /**
+ * Gets the value of the ranking property.
+ *
+ * @return
+ * possible object is
+ * {@link Integer }
+ *
+ */
+ public int getRanking() {
+ if (ranking == null) {
+ return 0;
+ } else {
+ return ranking;
+ }
+ }
+
+ /**
+ * Sets the value of the ranking property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Integer }
+ *
+ */
+ public void setRanking(Integer value) {
+ this.ranking = 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;
+ }
+
+}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TserviceProperties.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceProperties.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TserviceProperties.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -6,7 +6,7 @@
//
-package org.jboss.osgi.blueprint.model;
+package org.jboss.osgi.blueprint.reflect;
import java.util.ArrayList;
import java.util.List;
Deleted: 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/model/TservicePropertyEntry.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ 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)
@@ -1,476 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- *
- *
- * TservicePropertyEntry is an entry value used for the <service-properties>
- * element. This does not allow a child <key> element and there are no
- * key-ref or value-ref attributes.
- *
- *
- *
- * <p>Java class for TservicePropertyEntry complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="TservicePropertyEntry">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value"/>
- * </sequence>
- * <attribute name="key" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
- * <attribute name="valueFIXME" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class TservicePropertyEntry {
-
- protected Tservice service;
- protected TrefCollection refList;
- protected TrefCollection refSet;
- protected Tbean bean;
- protected Treference reference;
- protected Tref refFIXME;
- protected List<Object> any;
- protected Tref idref;
- protected Tvalue value;
- protected Tcollection list;
- protected Tcollection set;
- protected Tmap map;
- protected Tcollection array;
- protected Tprops props;
- protected Tnull _null;
- protected String key;
- protected String valueFIXME;
-
- /**
- * Gets the value of the service property.
- *
- * @return
- * possible object is
- * {@link Tservice }
- *
- */
- public Tservice getService() {
- return service;
- }
-
- /**
- * Sets the value of the service property.
- *
- * @param value
- * allowed object is
- * {@link Tservice }
- *
- */
- public void setService(Tservice value) {
- this.service = value;
- }
-
- /**
- * Gets the value of the refList property.
- *
- * @return
- * possible object is
- * {@link TrefCollection }
- *
- */
- public TrefCollection getRefList() {
- return refList;
- }
-
- /**
- * Sets the value of the refList property.
- *
- * @param value
- * allowed object is
- * {@link TrefCollection }
- *
- */
- public void setRefList(TrefCollection value) {
- this.refList = value;
- }
-
- /**
- * Gets the value of the refSet property.
- *
- * @return
- * possible object is
- * {@link TrefCollection }
- *
- */
- public TrefCollection getRefSet() {
- return refSet;
- }
-
- /**
- * Sets the value of the refSet property.
- *
- * @param value
- * allowed object is
- * {@link TrefCollection }
- *
- */
- public void setRefSet(TrefCollection value) {
- this.refSet = value;
- }
-
- /**
- * Gets the value of the bean property.
- *
- * @return
- * possible object is
- * {@link Tbean }
- *
- */
- public Tbean getBean() {
- return bean;
- }
-
- /**
- * Sets the value of the bean property.
- *
- * @param value
- * allowed object is
- * {@link Tbean }
- *
- */
- public void setBean(Tbean value) {
- this.bean = value;
- }
-
- /**
- * Gets the value of the reference property.
- *
- * @return
- * possible object is
- * {@link Treference }
- *
- */
- public Treference getReference() {
- return reference;
- }
-
- /**
- * Sets the value of the reference property.
- *
- * @param value
- * allowed object is
- * {@link Treference }
- *
- */
- public void setReference(Treference value) {
- this.reference = value;
- }
-
- /**
- * Gets the value of the refFIXME property.
- *
- * @return
- * possible object is
- * {@link Tref }
- *
- */
- public Tref getRefFIXME() {
- return refFIXME;
- }
-
- /**
- * Sets the value of the refFIXME property.
- *
- * @param value
- * allowed object is
- * {@link Tref }
- *
- */
- public void setRefFIXME(Tref value) {
- this.refFIXME = value;
- }
-
- /**
- * Gets the value of the any 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 any property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getAny().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Object }
- *
- *
- */
- public List<Object> getAny() {
- if (any == null) {
- any = new ArrayList<Object>();
- }
- return this.any;
- }
-
- /**
- * Gets the value of the idref property.
- *
- * @return
- * possible object is
- * {@link Tref }
- *
- */
- public Tref getIdref() {
- return idref;
- }
-
- /**
- * Sets the value of the idref property.
- *
- * @param value
- * allowed object is
- * {@link Tref }
- *
- */
- public void setIdref(Tref value) {
- this.idref = value;
- }
-
- /**
- * Gets the value of the value property.
- *
- * @return
- * possible object is
- * {@link Tvalue }
- *
- */
- public Tvalue getValue() {
- return value;
- }
-
- /**
- * Sets the value of the value property.
- *
- * @param value
- * allowed object is
- * {@link Tvalue }
- *
- */
- public void setValue(Tvalue value) {
- this.value = value;
- }
-
- /**
- * Gets the value of the list property.
- *
- * @return
- * possible object is
- * {@link Tcollection }
- *
- */
- public Tcollection getList() {
- return list;
- }
-
- /**
- * Sets the value of the list property.
- *
- * @param value
- * allowed object is
- * {@link Tcollection }
- *
- */
- public void setList(Tcollection value) {
- this.list = value;
- }
-
- /**
- * Gets the value of the set property.
- *
- * @return
- * possible object is
- * {@link Tcollection }
- *
- */
- public Tcollection getSet() {
- return set;
- }
-
- /**
- * Sets the value of the set property.
- *
- * @param value
- * allowed object is
- * {@link Tcollection }
- *
- */
- public void setSet(Tcollection value) {
- this.set = value;
- }
-
- /**
- * Gets the value of the map property.
- *
- * @return
- * possible object is
- * {@link Tmap }
- *
- */
- public Tmap getMap() {
- return map;
- }
-
- /**
- * Sets the value of the map property.
- *
- * @param value
- * allowed object is
- * {@link Tmap }
- *
- */
- public void setMap(Tmap value) {
- this.map = value;
- }
-
- /**
- * Gets the value of the array property.
- *
- * @return
- * possible object is
- * {@link Tcollection }
- *
- */
- public Tcollection getArray() {
- return array;
- }
-
- /**
- * Sets the value of the array property.
- *
- * @param value
- * allowed object is
- * {@link Tcollection }
- *
- */
- public void setArray(Tcollection value) {
- this.array = value;
- }
-
- /**
- * Gets the value of the props property.
- *
- * @return
- * possible object is
- * {@link Tprops }
- *
- */
- public Tprops getProps() {
- return props;
- }
-
- /**
- * Sets the value of the props property.
- *
- * @param value
- * allowed object is
- * {@link Tprops }
- *
- */
- public void setProps(Tprops value) {
- this.props = value;
- }
-
- /**
- * Gets the value of the null property.
- *
- * @return
- * possible object is
- * {@link Tnull }
- *
- */
- public Tnull getNull() {
- return _null;
- }
-
- /**
- * Sets the value of the null property.
- *
- * @param value
- * allowed object is
- * {@link Tnull }
- *
- */
- public void setNull(Tnull value) {
- this._null = value;
- }
-
- /**
- * Gets the value of the key property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getKey() {
- return key;
- }
-
- /**
- * Sets the value of the key property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setKey(String value) {
- this.key = value;
- }
-
- /**
- * Gets the value of the valueFIXME property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getValueFIXME() {
- return valueFIXME;
- }
-
- /**
- * Sets the value of the valueFIXME property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setValueFIXME(String value) {
- this.valueFIXME = value;
- }
-
-}
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TservicePropertyEntry.java (from rev 88854, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TservicePropertyEntry.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TservicePropertyEntry.java (rev 0)
+++ 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)
@@ -0,0 +1,476 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.reflect;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ *
+ *
+ * TservicePropertyEntry is an entry value used for the <service-properties>
+ * element. This does not allow a child <key> element and there are no
+ * key-ref or value-ref attributes.
+ *
+ *
+ *
+ * <p>Java class for TservicePropertyEntry complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="TservicePropertyEntry">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value"/>
+ * </sequence>
+ * <attribute name="key" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
+ * <attribute name="valueFIXME" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class TservicePropertyEntry {
+
+ protected Tservice service;
+ protected TrefCollection refList;
+ protected TrefCollection refSet;
+ protected Bean bean;
+ protected Treference reference;
+ protected Tref refFIXME;
+ protected List<Object> any;
+ protected Tref idref;
+ protected Tvalue value;
+ protected Tcollection list;
+ protected Tcollection set;
+ protected Tmap map;
+ protected Tcollection array;
+ protected Tprops props;
+ protected Tnull _null;
+ protected String key;
+ protected String valueFIXME;
+
+ /**
+ * Gets the value of the service property.
+ *
+ * @return
+ * possible object is
+ * {@link Tservice }
+ *
+ */
+ public Tservice getService() {
+ return service;
+ }
+
+ /**
+ * Sets the value of the service property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tservice }
+ *
+ */
+ public void setService(Tservice value) {
+ this.service = value;
+ }
+
+ /**
+ * Gets the value of the refList property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefList() {
+ return refList;
+ }
+
+ /**
+ * Sets the value of the refList property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefList(TrefCollection value) {
+ this.refList = value;
+ }
+
+ /**
+ * Gets the value of the refSet property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefSet() {
+ return refSet;
+ }
+
+ /**
+ * Sets the value of the refSet property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefSet(TrefCollection value) {
+ this.refSet = value;
+ }
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Bean }
+ *
+ */
+ public Bean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Bean }
+ *
+ */
+ public void setBean(Bean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the reference property.
+ *
+ * @return
+ * possible object is
+ * {@link Treference }
+ *
+ */
+ public Treference getReference() {
+ return reference;
+ }
+
+ /**
+ * Sets the value of the reference property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Treference }
+ *
+ */
+ public void setReference(Treference value) {
+ this.reference = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the idref property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getIdref() {
+ return idref;
+ }
+
+ /**
+ * Sets the value of the idref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setIdref(Tref value) {
+ this.idref = value;
+ }
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link Tvalue }
+ *
+ */
+ public Tvalue getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tvalue }
+ *
+ */
+ public void setValue(Tvalue value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the list property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getList() {
+ return list;
+ }
+
+ /**
+ * Sets the value of the list property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setList(Tcollection value) {
+ this.list = value;
+ }
+
+ /**
+ * Gets the value of the set property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getSet() {
+ return set;
+ }
+
+ /**
+ * Sets the value of the set property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setSet(Tcollection value) {
+ this.set = value;
+ }
+
+ /**
+ * Gets the value of the map property.
+ *
+ * @return
+ * possible object is
+ * {@link Tmap }
+ *
+ */
+ public Tmap getMap() {
+ return map;
+ }
+
+ /**
+ * Sets the value of the map property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tmap }
+ *
+ */
+ public void setMap(Tmap value) {
+ this.map = value;
+ }
+
+ /**
+ * Gets the value of the array property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getArray() {
+ return array;
+ }
+
+ /**
+ * Sets the value of the array property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setArray(Tcollection value) {
+ this.array = value;
+ }
+
+ /**
+ * Gets the value of the props property.
+ *
+ * @return
+ * possible object is
+ * {@link Tprops }
+ *
+ */
+ public Tprops getProps() {
+ return props;
+ }
+
+ /**
+ * Sets the value of the props property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tprops }
+ *
+ */
+ public void setProps(Tprops value) {
+ this.props = value;
+ }
+
+ /**
+ * Gets the value of the null property.
+ *
+ * @return
+ * possible object is
+ * {@link Tnull }
+ *
+ */
+ public Tnull getNull() {
+ return _null;
+ }
+
+ /**
+ * Sets the value of the null property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tnull }
+ *
+ */
+ public void setNull(Tnull value) {
+ this._null = value;
+ }
+
+ /**
+ * Gets the value of the key property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * Sets the value of the key property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setKey(String value) {
+ this.key = value;
+ }
+
+ /**
+ * Gets the value of the valueFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValueFIXME() {
+ return valueFIXME;
+ }
+
+ /**
+ * Sets the value of the valueFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValueFIXME(String value) {
+ this.valueFIXME = value;
+ }
+
+}
Deleted: 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/model/TserviceReference.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ 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)
@@ -1,289 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import javax.xml.namespace.QName;
-import org.w3c.dom.Element;
-
-
-/**
- *
- *
- * TserviceReference is the base element type used for <reference>,
- * <ref-set>, and <ref-list> elements. This type defines all of the
- * characteristics common to both sorts of references.
- *
- *
- *
- * <p>Java class for TserviceReference complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="TserviceReference">
- * <complexContent>
- * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tcomponent">
- * <sequence>
- * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tdescription" minOccurs="0"/>
- * <element name="interfaces" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tinterfaces" minOccurs="0"/>
- * <element name="listener" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TReferenceListener" maxOccurs="unbounded" minOccurs="0"/>
- * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
- * </sequence>
- * <attribute name="interface" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
- * <attribute name="filter" type="{http://www.w3.org/2001/XMLSchema}normalizedString" />
- * <attribute name="component-name" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
- * <attribute name="availability" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tavailability" />
- * <anyAttribute processContents='lax' namespace='##other'/>
- * </extension>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class TserviceReference
- extends Tcomponent
-{
-
- protected Tdescription description;
- protected Tinterfaces interfaces;
- protected List<TReferenceListener> listener;
- protected List<Object> any;
- protected String _interface;
- protected String filter;
- protected String componentName;
- protected Tavailability availability;
- private Map<QName, String> otherAttributes = new HashMap<QName, String>();
-
- /**
- * Gets the value of the description property.
- *
- * @return
- * possible object is
- * {@link Tdescription }
- *
- */
- public Tdescription getDescription() {
- return description;
- }
-
- /**
- * Sets the value of the description property.
- *
- * @param value
- * allowed object is
- * {@link Tdescription }
- *
- */
- public void setDescription(Tdescription value) {
- this.description = value;
- }
-
- /**
- * Gets the value of the interfaces property.
- *
- * @return
- * possible object is
- * {@link Tinterfaces }
- *
- */
- public Tinterfaces getInterfaces() {
- return interfaces;
- }
-
- /**
- * Sets the value of the interfaces property.
- *
- * @param value
- * allowed object is
- * {@link Tinterfaces }
- *
- */
- public void setInterfaces(Tinterfaces value) {
- this.interfaces = value;
- }
-
- /**
- * Gets the value of the listener 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 listener property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getListener().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link TReferenceListener }
- *
- *
- */
- public List<TReferenceListener> getListener() {
- if (listener == null) {
- listener = new ArrayList<TReferenceListener>();
- }
- return this.listener;
- }
-
- /**
- * Gets the value of the any 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 any property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getAny().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Object }
- * {@link Element }
- *
- *
- */
- public List<Object> getAny() {
- if (any == null) {
- any = new ArrayList<Object>();
- }
- return this.any;
- }
-
- /**
- * Gets the value of the interface property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getInterface() {
- return _interface;
- }
-
- /**
- * Sets the value of the interface property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setInterface(String value) {
- this._interface = value;
- }
-
- /**
- * Gets the value of the filter property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getFilter() {
- return filter;
- }
-
- /**
- * Sets the value of the filter property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setFilter(String value) {
- this.filter = value;
- }
-
- /**
- * Gets the value of the componentName property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getComponentName() {
- return componentName;
- }
-
- /**
- * Sets the value of the componentName property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setComponentName(String value) {
- this.componentName = value;
- }
-
- /**
- * Gets the value of the availability property.
- *
- * @return
- * possible object is
- * {@link Tavailability }
- *
- */
- public Tavailability getAvailability() {
- return availability;
- }
-
- /**
- * Sets the value of the availability property.
- *
- * @param value
- * allowed object is
- * {@link Tavailability }
- *
- */
- public void setAvailability(Tavailability value) {
- this.availability = 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/TserviceReference.java (from rev 88854, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TserviceReference.java (rev 0)
+++ 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)
@@ -0,0 +1,274 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+package org.jboss.osgi.blueprint.reflect;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+
+import org.w3c.dom.Element;
+
+/**
+ *
+ *
+ * TserviceReference is the base element type used for <reference>, <ref-set>, and <ref-list> elements. This type defines all of the characteristics common to both
+ * sorts of references.
+ *
+ *
+ *
+ * <p>
+ * Java class for TserviceReference complex type.
+ *
+ * <p>
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="TserviceReference">
+ * <complexContent>
+ * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tcomponent">
+ * <sequence>
+ * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}String" minOccurs="0"/>
+ * <element name="interfaces" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tinterfaces" minOccurs="0"/>
+ * <element name="listener" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TReferenceListener... maxOccurs="unbounded" minOccurs="0"/>
+ * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="interface" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
+ * <attribute name="filter" type="{http://www.w3.org/2001/XMLSchema}normalizedString" />
+ * <attribute name="component-name" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * <attribute name="availability" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tavailability" />
+ * <anyAttribute processContents='lax' namespace='##other'/>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class TserviceReference extends Component
+{
+
+ protected String description;
+ protected Tinterfaces interfaces;
+ protected List<TReferenceListener> listener;
+ protected List<Object> any;
+ protected String _interface;
+ protected String filter;
+ protected String componentName;
+ protected Availability availability;
+ private Map<QName, String> otherAttributes = new HashMap<QName, String>();
+
+ /**
+ * Gets the value of the description property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getDescription()
+ {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setDescription(String value)
+ {
+ this.description = value;
+ }
+
+ /**
+ * Gets the value of the interfaces property.
+ *
+ * @return possible object is {@link Tinterfaces }
+ *
+ */
+ public Tinterfaces getInterfaces()
+ {
+ return interfaces;
+ }
+
+ /**
+ * Sets the value of the interfaces property.
+ *
+ * @param value allowed object is {@link Tinterfaces }
+ *
+ */
+ public void setInterfaces(Tinterfaces value)
+ {
+ this.interfaces = value;
+ }
+
+ /**
+ * Gets the value of the listener 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 listener property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ *
+ * <pre>
+ * getListener().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list {@link TReferenceListener }
+ *
+ *
+ */
+ public List<TReferenceListener> getListener()
+ {
+ if (listener == null)
+ {
+ listener = new ArrayList<TReferenceListener>();
+ }
+ return this.listener;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ *
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list {@link Object } {@link Element }
+ *
+ *
+ */
+ public List<Object> getAny()
+ {
+ if (any == null)
+ {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the interface property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getInterface()
+ {
+ return _interface;
+ }
+
+ /**
+ * Sets the value of the interface property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setInterface(String value)
+ {
+ this._interface = value;
+ }
+
+ /**
+ * Gets the value of the filter property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getFilter()
+ {
+ return filter;
+ }
+
+ /**
+ * Sets the value of the filter property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setFilter(String value)
+ {
+ this.filter = value;
+ }
+
+ /**
+ * Gets the value of the componentName property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getComponentName()
+ {
+ return componentName;
+ }
+
+ /**
+ * Sets the value of the componentName property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setComponentName(String value)
+ {
+ this.componentName = value;
+ }
+
+ /**
+ * Gets the value of the availability property.
+ *
+ * @return possible object is {@link Tavailability }
+ *
+ */
+ public Availability getAvailability()
+ {
+ return availability;
+ }
+
+ /**
+ * Sets the value of the availability property.
+ *
+ * @param value allowed object is {@link Tavailability }
+ *
+ */
+ public void setAvailability(String value)
+ {
+ this.availability = Availability.valueOf(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;
+ }
+
+}
Deleted: 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/model/TtypeConverters.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ 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)
@@ -1,79 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-
-/**
- *
- *
- * The type used for the <type-converters> element. The
- * <type-converters> section is a set of <bean>, <ref>, or
- * <reference> elements that identify the type convert components
- * that will ference components.
- *
- *
- *
- * <p>Java class for Ttype-converters complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Ttype-converters">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <choice maxOccurs="unbounded" minOccurs="0">
- * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}targetComponent"/>
- * </choice>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class TtypeConverters {
-
- protected List<Object> beanOrReferenceOrRefFIXME;
-
- /**
- * Gets the value of the beanOrReferenceOrRefFIXME 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 beanOrReferenceOrRefFIXME property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getBeanOrReferenceOrRefFIXME().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link JAXBElement }{@code <}{@link Tbean }{@code >}
- * {@link JAXBElement }{@code <}{@link Treference }{@code >}
- * {@link Object }
- * {@link JAXBElement }{@code <}{@link Tref }{@code >}
- *
- *
- */
- public List<Object> getBeanOrReferenceOrRefFIXME() {
- if (beanOrReferenceOrRefFIXME == null) {
- beanOrReferenceOrRefFIXME = new ArrayList<Object>();
- }
- return this.beanOrReferenceOrRefFIXME;
- }
-
-}
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TtypeConverters.java (from rev 88854, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TtypeConverters.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TtypeConverters.java (rev 0)
+++ 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)
@@ -0,0 +1,79 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.reflect;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * The type used for the <type-converters> element. The
+ * <type-converters> section is a set of <bean>, <ref>, or
+ * <reference> elements that identify the type convert components
+ * that will ference components.
+ *
+ *
+ *
+ * <p>Java class for Ttype-converters complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Ttype-converters">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}targetComponent"/>
+ * </choice>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class TtypeConverters {
+
+ protected List<Object> beanOrReferenceOrRefFIXME;
+
+ /**
+ * Gets the value of the beanOrReferenceOrRefFIXME 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 beanOrReferenceOrRefFIXME property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getBeanOrReferenceOrRefFIXME().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JAXBElement }{@code <}{@link Bean }{@code >}
+ * {@link JAXBElement }{@code <}{@link Treference }{@code >}
+ * {@link Object }
+ * {@link JAXBElement }{@code <}{@link Tref }{@code >}
+ *
+ *
+ */
+ public List<Object> getBeanOrReferenceOrRefFIXME() {
+ if (beanOrReferenceOrRefFIXME == null) {
+ beanOrReferenceOrRefFIXME = new ArrayList<Object>();
+ }
+ return this.beanOrReferenceOrRefFIXME;
+ }
+
+}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TtypedCollection.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TtypedCollection.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/TtypedCollection.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -6,7 +6,7 @@
//
-package org.jboss.osgi.blueprint.model;
+package org.jboss.osgi.blueprint.reflect;
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tvalue.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tvalue.java 2009-05-13 12:30:09 UTC (rev 88810)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/reflect/Tvalue.java 2009-05-14 08:47:33 UTC (rev 88856)
@@ -6,7 +6,7 @@
//
-package org.jboss.osgi.blueprint.model;
+package org.jboss.osgi.blueprint.reflect;
/**
*
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:11:21 UTC (rev 88855)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint-jbxb.xsd 2009-05-14 08:47:33 UTC (rev 88856)
@@ -64,7 +64,7 @@
<xsd:element name="blueprint" type="Tblueprint">
<xsd:annotation>
<xsd:appinfo>
- <jbxb:class impl="org.jboss.osgi.blueprint.model.Blueprint"></jbxb:class>
+ <jbxb:class impl="org.jboss.osgi.blueprint.reflect.Blueprint"></jbxb:class>
</xsd:appinfo>
<xsd:documentation>
<![CDATA[
@@ -257,7 +257,7 @@
<xsd:complexType name="Tbean">
<xsd:annotation>
<xsd:appinfo>
- <jbxb:class impl="org.jboss.osgi.blueprint.model.Bean"></jbxb:class>
+ <jbxb:class impl="org.jboss.osgi.blueprint.reflect.Bean"></jbxb:class>
</xsd:appinfo>
<xsd:documentation>
<![CDATA[
@@ -605,7 +605,7 @@
<xsd:simpleType name="Tavailability">
<xsd:annotation>
<xsd:appinfo>
- <jbxb:class impl="org.jboss.osgi.blueprint.model.Availability"></jbxb:class>
+ <jbxb:class impl="org.jboss.osgi.blueprint.reflect.Availability"></jbxb:class>
</xsd:appinfo>
<xsd:documentation>
<![CDATA[
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:11:21 UTC (rev 88855)
+++ 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)
@@ -27,11 +27,11 @@
import java.net.URL;
import java.util.List;
-import org.jboss.osgi.blueprint.model.Availability;
-import org.jboss.osgi.blueprint.model.Bean;
-import org.jboss.osgi.blueprint.model.Blueprint;
-import org.jboss.osgi.blueprint.model.Component;
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.spi.testing.OSGiTest;
/**
17 years, 2 months
JBoss-OSGI SVN: r88854 - in projects/jboss-osgi/trunk/bundle/blueprint/src: main/java/org/jboss/osgi/blueprint/parser and 3 other directories.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-14 03:58:41 -0400 (Thu, 14 May 2009)
New Revision: 88854
Added:
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Bean.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Blueprint.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Component.java
projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/BeanA.java
projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/BeanB.java
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic-beans.xml
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic-root.xml
Removed:
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/BlueprintType.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tbean.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomponent.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tdescription.java
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic.xml
Modified:
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TReferenceListener.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Targument.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcollection.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomparator.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tkey.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TmapEntry.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tproperty.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TregistrationListener.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tservice.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TservicePropertyEntry.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TtypeConverters.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintParser.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
Log:
BP: Add basic bean parsing
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Bean.java (from rev 88810, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tbean.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Bean.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Bean.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -0,0 +1,285 @@
+/*
+ * 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.model;
+
+// $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(a)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/model/Blueprint.java (from rev 88821, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/BlueprintType.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Blueprint.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Blueprint.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -0,0 +1,243 @@
+/*
+ * 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.model;
+
+// $Id$
+
+import java.math.BigInteger;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+
+/**
+ * The blueprint element is the top element. The definitions consist of two sections:
+ * the type-converter section and the components section.
+ *
+ * blueprint ::= <type-converters> component *
+ * component ::= <bean> | <service> | service-reference
+ * service-reference ::= <reference> | <ref-list> | <ref-set>
+ * type-converter ::= <bean> | <ref> *
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 13-May-2009
+ */
+public class Blueprint
+{
+ protected String description;
+ protected TtypeConverters typeConverters;
+ protected List<Component> components;
+ protected Boolean defaultLazyInit;
+ protected String defaultInitMethod;
+ protected String defaultDestroyMethod;
+ protected BigInteger defaultTimeout;
+ protected Availability defaultAvailability;
+ 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 typeConverters property.
+ *
+ * @return possible object is {@link TtypeConverters }
+ *
+ */
+ public TtypeConverters getTypeConverters()
+ {
+ return typeConverters;
+ }
+
+ /**
+ * Sets the value of the typeConverters property.
+ *
+ * @param value allowed object is {@link TtypeConverters }
+ *
+ */
+ public void setTypeConverters(TtypeConverters value)
+ {
+ this.typeConverters = value;
+ }
+
+ /**
+ * Gets the value of components
+ */
+ public List<Component> getComponents()
+ {
+ if (components == null)
+ {
+ components = new ArrayList<Component>();
+ }
+ return this.components;
+ }
+
+ /**
+ * Gets the value of the defaultLazyInit property.
+ *
+ * @return possible object is {@link Boolean }
+ *
+ */
+ public Boolean isDefaultLazyInit()
+ {
+ return defaultLazyInit;
+ }
+
+ /**
+ * Sets the value of the defaultLazyInit property.
+ *
+ * @param value allowed object is {@link Boolean }
+ *
+ */
+ public void setDefaultLazyInit(Boolean value)
+ {
+ this.defaultLazyInit = value;
+ }
+
+ /**
+ * Gets the value of the defaultInitMethod property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getDefaultInitMethod()
+ {
+ return defaultInitMethod;
+ }
+
+ /**
+ * Sets the value of the defaultInitMethod property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setDefaultInitMethod(String value)
+ {
+ this.defaultInitMethod = value;
+ }
+
+ /**
+ * Gets the value of the defaultDestroyMethod property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getDefaultDestroyMethod()
+ {
+ return defaultDestroyMethod;
+ }
+
+ /**
+ * Sets the value of the defaultDestroyMethod property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setDefaultDestroyMethod(String value)
+ {
+ this.defaultDestroyMethod = value;
+ }
+
+ /**
+ * Gets the value of the defaultTimeout property.
+ */
+ public BigInteger getDefaultTimeout()
+ {
+ if (defaultTimeout == null)
+ {
+ return new BigInteger("300000");
+ }
+ else
+ {
+ return defaultTimeout;
+ }
+ }
+
+ /**
+ * Sets the value of the defaultTimeout property.
+ */
+ public void setDefaultTimeout(BigInteger value)
+ {
+ this.defaultTimeout = value;
+ }
+
+ /**
+ * Gets the value of the defaultAvailability property.
+ *
+ * @return possible object is {@link Tavailability }
+ *
+ */
+ public Availability getDefaultAvailability()
+ {
+ if (defaultAvailability == null)
+ {
+ return Availability.MANDATORY;
+ }
+ else
+ {
+ return defaultAvailability;
+ }
+ }
+
+ /**
+ * Sets the value of the defaultAvailability property.
+ *
+ * @param value allowed object is {@link Tavailability }
+ *
+ */
+ public void setDefaultAvailability(Availability value)
+ {
+ this.defaultAvailability = 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;
+ }
+}
Deleted: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/BlueprintType.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/BlueprintType.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/BlueprintType.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -1,286 +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.model;
-
-// $Id$
-
-import java.math.BigInteger;
-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;
-
-/**
- * <p>
- * Java class for Tblueprint complex type.
- *
- * <p>
- * The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Tblueprint">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tdescription" minOccurs="0"/>
- * <element name="type-converters" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Ttype-converters&q... minOccurs="0"/>
- * <choice maxOccurs="unbounded" minOccurs="0">
- * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}allComponents"...
- * </choice>
- * </sequence>
- * <attribute name="default-lazy-init" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tlazy-init" default="false" />
- * <attribute name="default-init-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
- * <attribute name="default-destroy-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
- * <attribute name="default-timeout" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Ttimeout" default="300000" />
- * <attribute name="default-availability" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tavailability" default="mandatory" />
- * <anyAttribute processContents='lax' namespace='##other'/>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class BlueprintType
-{
- protected Tdescription description;
- protected TtypeConverters typeConverters;
- protected List<Object> serviceOrRefListOrRefSet;
- protected Boolean defaultLazyInit;
- protected String defaultInitMethod;
- protected String defaultDestroyMethod;
- protected BigInteger defaultTimeout;
- protected Availability defaultAvailability;
- private Map<QName, String> otherAttributes = new HashMap<QName, String>();
-
- /**
- * Gets the value of the description property.
- *
- * @return possible object is {@link Tdescription }
- *
- */
- public Tdescription getDescription()
- {
- return description;
- }
-
- /**
- * Sets the value of the description property.
- *
- * @param value allowed object is {@link Tdescription }
- *
- */
- public void setDescription(Tdescription value)
- {
- this.description = value;
- }
-
- /**
- * Gets the value of the typeConverters property.
- *
- * @return possible object is {@link TtypeConverters }
- *
- */
- public TtypeConverters getTypeConverters()
- {
- return typeConverters;
- }
-
- /**
- * Sets the value of the typeConverters property.
- *
- * @param value allowed object is {@link TtypeConverters }
- *
- */
- public void setTypeConverters(TtypeConverters value)
- {
- this.typeConverters = value;
- }
-
- /**
- * Gets the value of the serviceOrRefListOrRefSet 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 serviceOrRefListOrRefSet property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- *
- * <pre>
- * getServiceOrRefListOrRefSet().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list {@link JAXBElement }{@code <}{@link TrefCollection }{@code >} {@link JAXBElement }{@code <}
- * {@link Treference }{@code >} {@link JAXBElement }{@code <}{@link Tservice }{@code >} {@link JAXBElement }{@code <}{@link TrefCollection }{@code >} {@link JAXBElement }
- * {@code <}{@link Tref }{@code >} {@link Object } {@link JAXBElement }{@code <}{@link Tbean }{@code >}
- *
- *
- */
- public List<Object> getServiceOrRefListOrRefSet()
- {
- if (serviceOrRefListOrRefSet == null)
- {
- serviceOrRefListOrRefSet = new ArrayList<Object>();
- }
- return this.serviceOrRefListOrRefSet;
- }
-
- /**
- * Gets the value of the defaultLazyInit property.
- *
- * @return possible object is {@link Boolean }
- *
- */
- public Boolean isDefaultLazyInit()
- {
- return defaultLazyInit;
- }
-
- /**
- * Sets the value of the defaultLazyInit property.
- *
- * @param value allowed object is {@link Boolean }
- *
- */
- public void setDefaultLazyInit(Boolean value)
- {
- this.defaultLazyInit = value;
- }
-
- /**
- * Gets the value of the defaultInitMethod property.
- *
- * @return possible object is {@link String }
- *
- */
- public String getDefaultInitMethod()
- {
- return defaultInitMethod;
- }
-
- /**
- * Sets the value of the defaultInitMethod property.
- *
- * @param value allowed object is {@link String }
- *
- */
- public void setDefaultInitMethod(String value)
- {
- this.defaultInitMethod = value;
- }
-
- /**
- * Gets the value of the defaultDestroyMethod property.
- *
- * @return possible object is {@link String }
- *
- */
- public String getDefaultDestroyMethod()
- {
- return defaultDestroyMethod;
- }
-
- /**
- * Sets the value of the defaultDestroyMethod property.
- *
- * @param value allowed object is {@link String }
- *
- */
- public void setDefaultDestroyMethod(String value)
- {
- this.defaultDestroyMethod = value;
- }
-
- /**
- * Gets the value of the defaultTimeout property.
- */
- public BigInteger getDefaultTimeout()
- {
- if (defaultTimeout == null)
- {
- return new BigInteger("300000");
- }
- else
- {
- return defaultTimeout;
- }
- }
-
- /**
- * Sets the value of the defaultTimeout property.
- */
- public void setDefaultTimeout(BigInteger value)
- {
- this.defaultTimeout = value;
- }
-
- /**
- * Gets the value of the defaultAvailability property.
- *
- * @return possible object is {@link Tavailability }
- *
- */
- public Availability getDefaultAvailability()
- {
- if (defaultAvailability == null)
- {
- return Availability.MANDATORY;
- }
- else
- {
- return defaultAvailability;
- }
- }
-
- /**
- * Sets the value of the defaultAvailability property.
- *
- * @param value allowed object is {@link Tavailability }
- *
- */
- public void setDefaultAvailability(Availability value)
- {
- this.defaultAvailability = 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/model/Component.java (from rev 88810, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomponent.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Component.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Component.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -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.model;
+
+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(a)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;
+ }
+
+}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TReferenceListener.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TReferenceListener.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TReferenceListener.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -44,7 +44,7 @@
*/
public class TReferenceListener {
- protected Tbean bean;
+ protected Bean bean;
protected Treference reference;
protected Tref refFIXME;
protected List<Object> any;
@@ -57,10 +57,10 @@
*
* @return
* possible object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public Tbean getBean() {
+ public Bean getBean() {
return bean;
}
@@ -69,10 +69,10 @@
*
* @param value
* allowed object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public void setBean(Tbean value) {
+ public void setBean(Bean value) {
this.bean = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Targument.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Targument.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Targument.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -42,7 +42,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tdescription" minOccurs="0"/>
+ * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}String" minOccurs="0"/>
* <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value"/>
* </sequence>
* <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
@@ -58,11 +58,11 @@
*/
public class Targument {
- protected Tdescription description;
+ protected String description;
protected Tservice service;
protected TrefCollection refList;
protected TrefCollection refSet;
- protected Tbean bean;
+ protected Bean bean;
protected Treference reference;
protected Tref refFIXME;
protected List<Object> any;
@@ -84,10 +84,10 @@
*
* @return
* possible object is
- * {@link Tdescription }
+ * {@link String }
*
*/
- public Tdescription getDescription() {
+ public String getDescription() {
return description;
}
@@ -96,10 +96,10 @@
*
* @param value
* allowed object is
- * {@link Tdescription }
+ * {@link String }
*
*/
- public void setDescription(Tdescription value) {
+ public void setDescription(String value) {
this.description = value;
}
@@ -180,10 +180,10 @@
*
* @return
* possible object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public Tbean getBean() {
+ public Bean getBean() {
return bean;
}
@@ -192,10 +192,10 @@
*
* @param value
* allowed object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public void setBean(Tbean value) {
+ public void setBean(Bean value) {
this.bean = value;
}
Deleted: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tbean.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tbean.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tbean.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -1,344 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import javax.xml.namespace.QName;
-
-
-/**
- *
- *
- * The type defintion for a <bean> component.
- * This definition is also used by the <bpcm:managed-component>
- * element used in the blueprint-cm schema. The <bean> attributes
- * provide the characteristics for how to create a bean instance.
- * Constructor arguments and injected properties are specified
- * via child <argument> and <property> elements.
- *
- *
- *
- * <p>Java class for Tbean complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Tbean">
- * <complexContent>
- * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tcomponent">
- * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}beanElements"/>
- * <attribute name="class" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
- * <attribute name="depends-on" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TdependsOn" />
- * <attribute name="init-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TnullableMethod" />
- * <attribute name="destroy-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TnullableMethod" />
- * <attribute name="factory-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
- * <attribute name="factory-component" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
- * <attribute name="scope">
- * <simpleType>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
- * <enumeration value="singleton"/>
- * <enumeration value="prototype"/>
- * <enumeration value="bundle"/>
- * </restriction>
- * </simpleType>
- * </attribute>
- * <attribute name="lazy-init" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tlazy-init" />
- * <anyAttribute processContents='lax' namespace='##other'/>
- * </extension>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class Tbean
- extends Tcomponent
-{
-
- protected Tdescription description;
- protected List<Object> argumentOrPropertyOrAny;
- protected String clazz;
- 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.
- *
- * @return
- * possible object is
- * {@link Tdescription }
- *
- */
- public Tdescription getDescription() {
- return description;
- }
-
- /**
- * Sets the value of the description property.
- *
- * @param value
- * allowed object is
- * {@link Tdescription }
- *
- */
- public void setDescription(Tdescription 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 clazz property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getClazz() {
- return clazz;
- }
-
- /**
- * Sets the value of the clazz property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setClazz(String value) {
- this.clazz = 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;
- }
-
-}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcollection.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcollection.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcollection.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -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 Tbean }{@code >}
+ * {@link JAXBElement }{@code <}{@link Bean }{@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/model/Tcomparator.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomparator.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomparator.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -31,7 +31,7 @@
*/
public class Tcomparator {
- protected Tbean bean;
+ protected Bean bean;
protected Treference reference;
protected Tref refFIXME;
protected List<Object> any;
@@ -41,10 +41,10 @@
*
* @return
* possible object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public Tbean getBean() {
+ public Bean getBean() {
return bean;
}
@@ -53,10 +53,10 @@
*
* @param value
* allowed object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public void setBean(Tbean value) {
+ public void setBean(Bean value) {
this.bean = value;
}
Deleted: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomponent.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomponent.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomponent.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -1,69 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-/**
- *
- *
- *
- * The Tcomponent 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 Tcomponent 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.
- *
- *
- *
- * <p>Java class for Tcomponent complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Tcomponent">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public abstract class Tcomponent {
-
- protected String id;
-
- /**
- * Gets the value of the id property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getId() {
- return id;
- }
-
- /**
- * Sets the value of the id property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setId(String value) {
- this.id = value;
- }
-
-}
Deleted: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tdescription.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tdescription.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tdescription.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -1,78 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-
-/**
- *
- *
- * A generic <description> element type to allow documentation to added to the
- * blueprint configuration.
- *
- *
- *
- * <p>Java class for Tdescription complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Tdescription">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <choice maxOccurs="unbounded" minOccurs="0">
- * </choice>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class Tdescription {
-
- protected List<String> content;
-
- /**
- *
- *
- * A generic <description> element type to allow documentation to added to the
- * blueprint configuration.
- *
- * Gets the value of the content 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 content property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getContent().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link String }
- *
- *
- */
- public List<String> getContent() {
- if (content == null) {
- content = new ArrayList<String>();
- }
- return this.content;
- }
-
-}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tkey.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tkey.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tkey.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -42,7 +42,7 @@
protected Tservice service;
protected TrefCollection refList;
protected TrefCollection refSet;
- protected Tbean bean;
+ protected Bean bean;
protected Treference reference;
protected Tref refFIXME;
protected List<Object> any;
@@ -131,10 +131,10 @@
*
* @return
* possible object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public Tbean getBean() {
+ public Bean getBean() {
return bean;
}
@@ -143,10 +143,10 @@
*
* @param value
* allowed object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public void setBean(Tbean value) {
+ public void setBean(Bean value) {
this.bean = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TmapEntry.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TmapEntry.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TmapEntry.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -53,7 +53,7 @@
protected Tservice service;
protected TrefCollection refList;
protected TrefCollection refSet;
- protected Tbean bean;
+ protected Bean bean;
protected Treference reference;
protected Tref refFIXME;
protected List<Object> any;
@@ -171,10 +171,10 @@
*
* @return
* possible object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public Tbean getBean() {
+ public Bean getBean() {
return bean;
}
@@ -183,10 +183,10 @@
*
* @param value
* allowed object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public void setBean(Tbean value) {
+ public void setBean(Bean value) {
this.bean = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tproperty.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tproperty.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tproperty.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -35,7 +35,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
- * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tdescription" minOccurs="0"/>
+ * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}String" minOccurs="0"/>
* <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value"/>
* </sequence>
* <attribute name="name" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
@@ -50,11 +50,11 @@
*/
public class Tproperty {
- protected Tdescription description;
+ protected String description;
protected Tservice service;
protected TrefCollection refList;
protected TrefCollection refSet;
- protected Tbean bean;
+ protected Bean bean;
protected Treference reference;
protected Tref refFIXME;
protected List<Object> any;
@@ -75,10 +75,10 @@
*
* @return
* possible object is
- * {@link Tdescription }
+ * {@link String }
*
*/
- public Tdescription getDescription() {
+ public String getDescription() {
return description;
}
@@ -87,10 +87,10 @@
*
* @param value
* allowed object is
- * {@link Tdescription }
+ * {@link String }
*
*/
- public void setDescription(Tdescription value) {
+ public void setDescription(String value) {
this.description = value;
}
@@ -171,10 +171,10 @@
*
* @return
* possible object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public Tbean getBean() {
+ public Bean getBean() {
return bean;
}
@@ -183,10 +183,10 @@
*
* @param value
* allowed object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public void setBean(Tbean value) {
+ public void setBean(Bean value) {
this.bean = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TregistrationListener.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TregistrationListener.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TregistrationListener.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -46,7 +46,7 @@
*/
public class TregistrationListener {
- protected Tbean bean;
+ protected Bean bean;
protected Treference reference;
protected Tref refFIXME;
protected List<Object> any;
@@ -59,10 +59,10 @@
*
* @return
* possible object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public Tbean getBean() {
+ public Bean getBean() {
return bean;
}
@@ -71,10 +71,10 @@
*
* @param value
* allowed object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public void setBean(Tbean value) {
+ public void setBean(Bean value) {
this.bean = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tservice.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tservice.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tservice.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -51,14 +51,14 @@
*
*/
public class Tservice
- extends Tcomponent
+ extends Component
{
- protected Tdescription description;
+ protected String description;
protected Tinterfaces interfaces;
protected TserviceProperties serviceProperties;
protected List<TregistrationListener> registrationListener;
- protected Tbean bean;
+ protected Bean bean;
protected Tref refFIXME;
protected List<Object> any;
protected String _interface;
@@ -73,10 +73,10 @@
*
* @return
* possible object is
- * {@link Tdescription }
+ * {@link String }
*
*/
- public Tdescription getDescription() {
+ public String getDescription() {
return description;
}
@@ -85,10 +85,10 @@
*
* @param value
* allowed object is
- * {@link Tdescription }
+ * {@link String }
*
*/
- public void setDescription(Tdescription value) {
+ public void setDescription(String value) {
this.description = value;
}
@@ -174,10 +174,10 @@
*
* @return
* possible object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public Tbean getBean() {
+ public Bean getBean() {
return bean;
}
@@ -186,10 +186,10 @@
*
* @param value
* allowed object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public void setBean(Tbean value) {
+ public void setBean(Bean value) {
this.bean = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TservicePropertyEntry.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TservicePropertyEntry.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TservicePropertyEntry.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -45,7 +45,7 @@
protected Tservice service;
protected TrefCollection refList;
protected TrefCollection refSet;
- protected Tbean bean;
+ protected Bean bean;
protected Treference reference;
protected Tref refFIXME;
protected List<Object> any;
@@ -137,10 +137,10 @@
*
* @return
* possible object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public Tbean getBean() {
+ public Bean getBean() {
return bean;
}
@@ -149,10 +149,10 @@
*
* @param value
* allowed object is
- * {@link Tbean }
+ * {@link Bean }
*
*/
- public void setBean(Tbean value) {
+ public void setBean(Bean value) {
this.bean = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -35,7 +35,7 @@
* <complexContent>
* <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tcomponent">
* <sequence>
- * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tdescription" minOccurs="0"/>
+ * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}String" minOccurs="0"/>
* <element name="interfaces" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tinterfaces" minOccurs="0"/>
* <element name="listener" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TReferenceListener... maxOccurs="unbounded" minOccurs="0"/>
* <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
@@ -52,10 +52,10 @@
*
*
*/
-public class TserviceReference extends Tcomponent
+public class TserviceReference extends Component
{
- protected Tdescription description;
+ protected String description;
protected Tinterfaces interfaces;
protected List<TReferenceListener> listener;
protected List<Object> any;
@@ -68,10 +68,10 @@
/**
* Gets the value of the description property.
*
- * @return possible object is {@link Tdescription }
+ * @return possible object is {@link String }
*
*/
- public Tdescription getDescription()
+ public String getDescription()
{
return description;
}
@@ -79,10 +79,10 @@
/**
* Sets the value of the description property.
*
- * @param value allowed object is {@link Tdescription }
+ * @param value allowed object is {@link String }
*
*/
- public void setDescription(Tdescription value)
+ public void setDescription(String value)
{
this.description = value;
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TtypeConverters.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TtypeConverters.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TtypeConverters.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -62,7 +62,7 @@
*
* <p>
* Objects of the following type(s) are allowed in the list
- * {@link JAXBElement }{@code <}{@link Tbean }{@code >}
+ * {@link JAXBElement }{@code <}{@link Bean }{@code >}
* {@link JAXBElement }{@code <}{@link Treference }{@code >}
* {@link Object }
* {@link JAXBElement }{@code <}{@link Tref }{@code >}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintParser.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintParser.java 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintParser.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -25,7 +25,7 @@
import java.net.URL;
-import org.jboss.osgi.blueprint.model.BlueprintType;
+import org.jboss.osgi.blueprint.model.Blueprint;
import org.jboss.xb.binding.JBossXBException;
import org.jboss.xb.binding.Unmarshaller;
import org.jboss.xb.binding.UnmarshallerFactory;
@@ -40,24 +40,33 @@
*/
public class BlueprintParser
{
+ private static SchemaBinding schemaBinding;
+
+ public BlueprintParser()
+ {
+ if (schemaBinding == null)
+ {
+ ClassLoader resourceLoader = getClass().getClassLoader();
+ URL schemaXSD = resourceLoader.getResource("schema/blueprint-jbxb.xsd");
+ if (schemaXSD == null)
+ throw new BlueprintException("Cannot get blueprint schema from: " + resourceLoader);
+
+ schemaBinding = XsdBinder.bind(schemaXSD.toExternalForm());
+ }
+ }
+
/**
* Parse a blueprint descriptor
*/
- public BlueprintType parse(URL xmlURL)
+ public Blueprint parse(URL xmlURL)
{
if (xmlURL == null)
throw new IllegalArgumentException("Cannot parse null descriptor URL");
try
{
- ClassLoader resourceLoader = getClass().getClassLoader();
- URL schemaXSD = resourceLoader.getResource("schema/blueprint-jbxb.xsd");
- if (schemaXSD == null)
- throw new BlueprintException("Cannot get blueprint schema from: " + resourceLoader);
-
- SchemaBinding schema = XsdBinder.bind(schemaXSD.toExternalForm());
Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
- return (BlueprintType)unmarshaller.unmarshal(xmlURL.toExternalForm(), schema);
+ return (Blueprint)unmarshaller.unmarshal(xmlURL.toExternalForm(), schemaBinding);
}
catch (JBossXBException ex)
{
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 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint-jbxb.xsd 2009-05-14 07:58:41 UTC (rev 88854)
@@ -64,7 +64,7 @@
<xsd:element name="blueprint" type="Tblueprint">
<xsd:annotation>
<xsd:appinfo>
- <jbxb:class impl="org.jboss.osgi.blueprint.model.BlueprintType"></jbxb:class>
+ <jbxb:class impl="org.jboss.osgi.blueprint.model.Blueprint"></jbxb:class>
</xsd:appinfo>
<xsd:documentation>
<![CDATA[
@@ -202,7 +202,13 @@
</xsd:documentation>
</xsd:annotation>
<xsd:choice>
- <xsd:element name="bean" type="Tbean" />
+ <xsd:element name="bean" type="Tbean" >
+ <xsd:annotation>
+ <xsd:appinfo>
+ <jbxb:property name="components"/>
+ </xsd:appinfo>
+ </xsd:annotation>
+ </xsd:element>
<xsd:element name="reference" type="Treference" />
<xsd:element name="refFIXME" type="Tref" />
<xsd:any namespace="##other" processContents="strict" minOccurs="0" maxOccurs="unbounded" />
@@ -250,6 +256,9 @@
<xsd:complexType name="Tbean">
<xsd:annotation>
+ <xsd:appinfo>
+ <jbxb:class impl="org.jboss.osgi.blueprint.model.Bean"></jbxb:class>
+ </xsd:appinfo>
<xsd:documentation>
<![CDATA[
The type defintion for a <bean> component.
@@ -264,7 +273,13 @@
<xsd:complexContent>
<xsd:extension base="Tcomponent">
<xsd:group ref="beanElements" />
- <xsd:attribute name="class" type="Tclass" />
+ <xsd:attribute name="class" type="Tclass">
+ <xsd:annotation>
+ <xsd:appinfo>
+ <jbxb:property name="className"/>
+ </xsd:appinfo>
+ </xsd:annotation>
+ </xsd:attribute>
<xsd:attribute name="depends-on" type="TdependsOn" />
<xsd:attribute name="init-method" type="TnullableMethod" />
<xsd:attribute name="destroy-method" type="TnullableMethod" />
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/BeanA.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/BeanA.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/BeanA.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -0,0 +1,45 @@
+/*
+ * 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.test.osgi.blueprint.parser;
+
+//$Id$
+
+/**
+ * A basic bean
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 13-May-2009
+ */
+public class BeanA
+{
+ private BeanB beanB;
+
+ public BeanB getBeanB()
+ {
+ return beanB;
+ }
+
+ public void setBeanB(BeanB beanB)
+ {
+ this.beanB = beanB;
+ }
+}
\ No newline at end of file
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/BeanA.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/BeanB.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/BeanB.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/BeanB.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -0,0 +1,45 @@
+/*
+ * 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.test.osgi.blueprint.parser;
+
+//$Id$
+
+/**
+ * A basic bean
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 13-May-2009
+ */
+public class BeanB
+{
+ private BeanA beanA;
+
+ public BeanA getBeanA()
+ {
+ return beanA;
+ }
+
+ public void setBeanA(BeanA beanA)
+ {
+ this.beanA = beanA;
+ }
+}
\ No newline at end of file
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/BeanB.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
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 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/ParserTestCase.java 2009-05-14 07:58:41 UTC (rev 88854)
@@ -25,9 +25,12 @@
import java.math.BigInteger;
import java.net.URL;
+import java.util.List;
import org.jboss.osgi.blueprint.model.Availability;
-import org.jboss.osgi.blueprint.model.BlueprintType;
+import org.jboss.osgi.blueprint.model.Bean;
+import org.jboss.osgi.blueprint.model.Blueprint;
+import org.jboss.osgi.blueprint.model.Component;
import org.jboss.osgi.blueprint.parser.BlueprintParser;
import org.jboss.osgi.spi.testing.OSGiTest;
@@ -39,14 +42,42 @@
*/
public class ParserTestCase extends OSGiTest
{
- public void testBlueprintDefaults() throws Exception
+ public void testBlueprintDefaultAttributes() throws Exception
{
- URL xmlURL = getResourceURL("parser/blueprint-basic.xml");
- BlueprintType blueprint = new BlueprintParser().parse(xmlURL);
+ URL xmlURL = getResourceURL("parser/blueprint-basic-root.xml");
+ Blueprint blueprint = new BlueprintParser().parse(xmlURL);
+ // assert default attributes
assertEquals(Availability.MANDATORY, blueprint.getDefaultAvailability());
+ assertEquals(new BigInteger("300000"), blueprint.getDefaultTimeout());
+ assertEquals(Boolean.FALSE, blueprint.isDefaultLazyInit());
+ assertNull(blueprint.getDefaultInitMethod());
assertNull(blueprint.getDefaultDestroyMethod());
- assertNull(blueprint.getDefaultInitMethod());
- assertEquals(new BigInteger("300000"), blueprint.getDefaultTimeout());
}
+
+ public void testBlueprintDescription() throws Exception
+ {
+ URL xmlURL = getResourceURL("parser/blueprint-basic-root.xml");
+ Blueprint blueprint = new BlueprintParser().parse(xmlURL);
+
+ // assert description
+ assertEquals("some text", blueprint.getDescription());
+ }
+
+ public void testBasicBeans() throws Exception
+ {
+ URL xmlURL = getResourceURL("parser/blueprint-basic-beans.xml");
+ Blueprint blueprint = new BlueprintParser().parse(xmlURL);
+
+ List<Component> compList = blueprint.getComponents();
+ assertTrue(compList.size() > 0);
+
+ Bean beanA = (Bean)compList.get(0);
+ assertEquals(BeanA.class.getName(), beanA.getClassName());
+ assertEquals("A", beanA.getId());
+
+ Bean beanB = (Bean)compList.get(1);
+ assertEquals(BeanB.class.getName(), beanB.getClassName());
+ assertEquals("B", beanB.getId());
+ }
}
\ No newline at end of file
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic-beans.xml
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic-beans.xml (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic-beans.xml 2009-05-14 07:58:41 UTC (rev 88854)
@@ -0,0 +1,11 @@
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd schema/blueprint.xsd">
+
+ <bean id="A" class="org.jboss.test.osgi.blueprint.parser.BeanA">
+ </bean>
+
+ <bean id="B" class="org.jboss.test.osgi.blueprint.parser.BeanB">
+ <property name="beanA" ref="A"/>
+ </bean>
+
+</blueprint>
\ No newline at end of file
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic-beans.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic-root.xml (from rev 88817, projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic.xml)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic-root.xml (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic-root.xml 2009-05-14 07:58:41 UTC (rev 88854)
@@ -0,0 +1,6 @@
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd schema/blueprint.xsd">
+
+ <description>some text</description>
+
+</blueprint>
\ No newline at end of file
Deleted: projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic.xml
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic.xml 2009-05-14 06:31:22 UTC (rev 88853)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic.xml 2009-05-14 07:58:41 UTC (rev 88854)
@@ -1,3 +0,0 @@
-<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd schema/blueprint.xsd">
-
-</blueprint>
\ No newline at end of file
17 years, 2 months
JBoss-OSGI SVN: r88821 - in projects/jboss-osgi/trunk/bundle/blueprint/src: main/resources/schema and 1 other directories.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-13 11:35:13 -0400 (Wed, 13 May 2009)
New Revision: 88821
Added:
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Availability.java
Modified:
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/BlueprintType.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.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
Log:
Test blueprint parser defaults
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Availability.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Availability.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Availability.java 2009-05-13 15:35:13 UTC (rev 88821)
@@ -0,0 +1,60 @@
+/*
+ * 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.model;
+
+/**
+ * Defines an availability attribute type. This is used in this
+ * schema by the <blueprint> default-availability attribute and the
+ * <reference>, <ref-set>, and <ref-list> availability attribute.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 13-May-2009
+ */
+public enum Availability
+{
+ MANDATORY("mandatory"),
+ OPTIONAL("optional");
+
+ private final String value;
+
+ Availability(String v)
+ {
+ value = v;
+ }
+
+ public String value()
+ {
+ return value;
+ }
+
+ public static Availability fromValue(String v)
+ {
+ for (Availability c : Availability.values())
+ {
+ if (c.value.equals(v))
+ {
+ return c;
+ }
+ }
+ throw new IllegalArgumentException(v);
+ }
+}
\ No newline at end of file
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Availability.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/BlueprintType.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/BlueprintType.java 2009-05-13 15:25:44 UTC (rev 88820)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/BlueprintType.java 2009-05-13 15:35:13 UTC (rev 88821)
@@ -28,6 +28,8 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+
+import javax.xml.bind.JAXBElement;
import javax.xml.namespace.QName;
/**
@@ -63,11 +65,6 @@
*/
public class BlueprintType
{
- public enum Availability
- {
- mandatory, optional
- };
-
protected Tdescription description;
protected TtypeConverters typeConverters;
protected List<Object> serviceOrRefListOrRefSet;
@@ -75,7 +72,7 @@
protected String defaultInitMethod;
protected String defaultDestroyMethod;
protected BigInteger defaultTimeout;
- protected String defaultAvailability = Availability.mandatory.toString();
+ protected Availability defaultAvailability;
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
@@ -221,9 +218,6 @@
/**
* Gets the value of the defaultTimeout property.
- *
- * @return possible object is {@link BigInteger }
- *
*/
public BigInteger getDefaultTimeout()
{
@@ -239,9 +233,6 @@
/**
* Sets the value of the defaultTimeout property.
- *
- * @param value allowed object is {@link BigInteger }
- *
*/
public void setDefaultTimeout(BigInteger value)
{
@@ -254,9 +245,16 @@
* @return possible object is {@link Tavailability }
*
*/
- public String getDefaultAvailability()
+ public Availability getDefaultAvailability()
{
- return defaultAvailability;
+ if (defaultAvailability == null)
+ {
+ return Availability.MANDATORY;
+ }
+ else
+ {
+ return defaultAvailability;
+ }
}
/**
@@ -265,7 +263,7 @@
* @param value allowed object is {@link Tavailability }
*
*/
- public void setDefaultAvailability(String value)
+ public void setDefaultAvailability(Availability value)
{
this.defaultAvailability = value;
}
@@ -285,5 +283,4 @@
{
return otherAttributes;
}
-
}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java 2009-05-13 15:25:44 UTC (rev 88820)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java 2009-05-13 15:35:13 UTC (rev 88821)
@@ -11,9 +11,9 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+
import javax.xml.namespace.QName;
-import org.jboss.osgi.blueprint.model.BlueprintType.Availability;
import org.w3c.dom.Element;
/**
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-13 15:25:44 UTC (rev 88820)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint-jbxb.xsd 2009-05-13 15:35:13 UTC (rev 88821)
@@ -589,6 +589,9 @@
<xsd:simpleType name="Tavailability">
<xsd:annotation>
+ <xsd:appinfo>
+ <jbxb:class impl="org.jboss.osgi.blueprint.model.Availability"></jbxb:class>
+ </xsd:appinfo>
<xsd:documentation>
<![CDATA[
Tlazy-init defines an availability attribute type. This is used in this
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-13 15:25:44 UTC (rev 88820)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/ParserTestCase.java 2009-05-13 15:35:13 UTC (rev 88821)
@@ -23,8 +23,11 @@
//$Id$
+import java.math.BigInteger;
import java.net.URL;
+import org.jboss.osgi.blueprint.model.Availability;
+import org.jboss.osgi.blueprint.model.BlueprintType;
import org.jboss.osgi.blueprint.parser.BlueprintParser;
import org.jboss.osgi.spi.testing.OSGiTest;
@@ -36,10 +39,14 @@
*/
public class ParserTestCase extends OSGiTest
{
- public void testBlueprintBasic() throws Exception
+ public void testBlueprintDefaults() throws Exception
{
URL xmlURL = getResourceURL("parser/blueprint-basic.xml");
- BlueprintParser parser = new BlueprintParser();
- parser.parse(xmlURL);
+ BlueprintType blueprint = new BlueprintParser().parse(xmlURL);
+
+ assertEquals(Availability.MANDATORY, blueprint.getDefaultAvailability());
+ assertNull(blueprint.getDefaultDestroyMethod());
+ assertNull(blueprint.getDefaultInitMethod());
+ assertEquals(new BigInteger("300000"), blueprint.getDefaultTimeout());
}
}
\ No newline at end of file
17 years, 2 months
JBoss-OSGI SVN: r88817 - in projects/jboss-osgi/trunk: bundle/blueprint and 15 other directories.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-13 10:27:03 -0400 (Wed, 13 May 2009)
New Revision: 88817
Added:
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/BlueprintType.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintException.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintParser.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint-jbxb.xsd
projects/jboss-osgi/trunk/bundle/blueprint/src/test/
projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/
projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/
projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/
projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/
projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/
projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/
projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/
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/resources/
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/log4j.xml
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/
projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic.xml
Removed:
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tavailability.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tblueprint.java
Modified:
projects/jboss-osgi/trunk/bundle/blueprint/.classpath
projects/jboss-osgi/trunk/bundle/blueprint/pom.xml
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java
projects/jboss-osgi/trunk/pom.xml
Log:
Add blueprint basic parser test
Modified: projects/jboss-osgi/trunk/bundle/blueprint/.classpath
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/.classpath 2009-05-13 13:58:47 UTC (rev 88816)
+++ projects/jboss-osgi/trunk/bundle/blueprint/.classpath 2009-05-13 14:27:03 UTC (rev 88817)
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java"/>
+ <classpathentry excluding="**" kind="src" path="src/test/resources"/>
+ <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry excluding="**" kind="src" path="src/main/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
Modified: projects/jboss-osgi/trunk/bundle/blueprint/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/pom.xml 2009-05-13 13:58:47 UTC (rev 88816)
+++ projects/jboss-osgi/trunk/bundle/blueprint/pom.xml 2009-05-13 14:27:03 UTC (rev 88817)
@@ -19,6 +19,11 @@
<!-- Dependencies -->
<dependencies>
+ <dependency>
+ <groupId>org.jboss.osgi</groupId>
+ <artifactId>jboss-osgi-spi</artifactId>
+ <version>${version}</version>
+ </dependency>
<!-- Provided Dependencies -->
<dependency>
@@ -31,6 +36,13 @@
<artifactId>org.osgi.compendium</artifactId>
<scope>provided</scope>
</dependency>
+
+ <!-- Bundle Dependencies -->
+ <dependency>
+ <groupId>org.jboss.osgi.bundles</groupId>
+ <artifactId>jbossxb-bundle</artifactId>
+ <scope>provided</scope>
+ </dependency>
</dependencies>
<!-- Build -->
Copied: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/BlueprintType.java (from rev 88810, projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tblueprint.java)
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/BlueprintType.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/BlueprintType.java 2009-05-13 14:27:03 UTC (rev 88817)
@@ -0,0 +1,289 @@
+/*
+ * 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.model;
+
+// $Id$
+
+import java.math.BigInteger;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import javax.xml.namespace.QName;
+
+/**
+ * <p>
+ * Java class for Tblueprint complex type.
+ *
+ * <p>
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tblueprint">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tdescription" minOccurs="0"/>
+ * <element name="type-converters" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Ttype-converters&q... minOccurs="0"/>
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}allComponents"...
+ * </choice>
+ * </sequence>
+ * <attribute name="default-lazy-init" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tlazy-init" default="false" />
+ * <attribute name="default-init-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
+ * <attribute name="default-destroy-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
+ * <attribute name="default-timeout" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Ttimeout" default="300000" />
+ * <attribute name="default-availability" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tavailability" default="mandatory" />
+ * <anyAttribute processContents='lax' namespace='##other'/>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class BlueprintType
+{
+ public enum Availability
+ {
+ mandatory, optional
+ };
+
+ protected Tdescription description;
+ protected TtypeConverters typeConverters;
+ protected List<Object> serviceOrRefListOrRefSet;
+ protected Boolean defaultLazyInit;
+ protected String defaultInitMethod;
+ protected String defaultDestroyMethod;
+ protected BigInteger defaultTimeout;
+ protected String defaultAvailability = Availability.mandatory.toString();
+ private Map<QName, String> otherAttributes = new HashMap<QName, String>();
+
+ /**
+ * Gets the value of the description property.
+ *
+ * @return possible object is {@link Tdescription }
+ *
+ */
+ public Tdescription getDescription()
+ {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value allowed object is {@link Tdescription }
+ *
+ */
+ public void setDescription(Tdescription value)
+ {
+ this.description = value;
+ }
+
+ /**
+ * Gets the value of the typeConverters property.
+ *
+ * @return possible object is {@link TtypeConverters }
+ *
+ */
+ public TtypeConverters getTypeConverters()
+ {
+ return typeConverters;
+ }
+
+ /**
+ * Sets the value of the typeConverters property.
+ *
+ * @param value allowed object is {@link TtypeConverters }
+ *
+ */
+ public void setTypeConverters(TtypeConverters value)
+ {
+ this.typeConverters = value;
+ }
+
+ /**
+ * Gets the value of the serviceOrRefListOrRefSet 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 serviceOrRefListOrRefSet property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ *
+ * <pre>
+ * getServiceOrRefListOrRefSet().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list {@link JAXBElement }{@code <}{@link TrefCollection }{@code >} {@link JAXBElement }{@code <}
+ * {@link Treference }{@code >} {@link JAXBElement }{@code <}{@link Tservice }{@code >} {@link JAXBElement }{@code <}{@link TrefCollection }{@code >} {@link JAXBElement }
+ * {@code <}{@link Tref }{@code >} {@link Object } {@link JAXBElement }{@code <}{@link Tbean }{@code >}
+ *
+ *
+ */
+ public List<Object> getServiceOrRefListOrRefSet()
+ {
+ if (serviceOrRefListOrRefSet == null)
+ {
+ serviceOrRefListOrRefSet = new ArrayList<Object>();
+ }
+ return this.serviceOrRefListOrRefSet;
+ }
+
+ /**
+ * Gets the value of the defaultLazyInit property.
+ *
+ * @return possible object is {@link Boolean }
+ *
+ */
+ public Boolean isDefaultLazyInit()
+ {
+ return defaultLazyInit;
+ }
+
+ /**
+ * Sets the value of the defaultLazyInit property.
+ *
+ * @param value allowed object is {@link Boolean }
+ *
+ */
+ public void setDefaultLazyInit(Boolean value)
+ {
+ this.defaultLazyInit = value;
+ }
+
+ /**
+ * Gets the value of the defaultInitMethod property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getDefaultInitMethod()
+ {
+ return defaultInitMethod;
+ }
+
+ /**
+ * Sets the value of the defaultInitMethod property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setDefaultInitMethod(String value)
+ {
+ this.defaultInitMethod = value;
+ }
+
+ /**
+ * Gets the value of the defaultDestroyMethod property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getDefaultDestroyMethod()
+ {
+ return defaultDestroyMethod;
+ }
+
+ /**
+ * Sets the value of the defaultDestroyMethod property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setDefaultDestroyMethod(String value)
+ {
+ this.defaultDestroyMethod = value;
+ }
+
+ /**
+ * Gets the value of the defaultTimeout property.
+ *
+ * @return possible object is {@link BigInteger }
+ *
+ */
+ public BigInteger getDefaultTimeout()
+ {
+ if (defaultTimeout == null)
+ {
+ return new BigInteger("300000");
+ }
+ else
+ {
+ return defaultTimeout;
+ }
+ }
+
+ /**
+ * Sets the value of the defaultTimeout property.
+ *
+ * @param value allowed object is {@link BigInteger }
+ *
+ */
+ public void setDefaultTimeout(BigInteger value)
+ {
+ this.defaultTimeout = value;
+ }
+
+ /**
+ * Gets the value of the defaultAvailability property.
+ *
+ * @return possible object is {@link Tavailability }
+ *
+ */
+ public String getDefaultAvailability()
+ {
+ return defaultAvailability;
+ }
+
+ /**
+ * Sets the value of the defaultAvailability property.
+ *
+ * @param value allowed object is {@link Tavailability }
+ *
+ */
+ public void setDefaultAvailability(String value)
+ {
+ this.defaultAvailability = 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;
+ }
+
+}
Deleted: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tavailability.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tavailability.java 2009-05-13 13:58:47 UTC (rev 88816)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tavailability.java 2009-05-13 14:27:03 UTC (rev 88817)
@@ -1,50 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-
-/**
- * <p>Java class for Tavailability.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- * <p>
- * <pre>
- * <simpleType name="Tavailability">
- * <restriction base="{http://www.w3.org/2001/XMLSchema}token">
- * <enumeration value="mandatory"/>
- * <enumeration value="optional"/>
- * </restriction>
- * </simpleType>
- * </pre>
- *
- */
-public enum Tavailability {
-
- MANDATORY("mandatory"),
- OPTIONAL("optional");
- private final String value;
-
- Tavailability(String v) {
- value = v;
- }
-
- public String value() {
- return value;
- }
-
- public static Tavailability fromValue(String v) {
- for (Tavailability c: Tavailability.values()) {
- if (c.value.equals(v)) {
- return c;
- }
- }
- throw new IllegalArgumentException(v);
- }
-
-}
Deleted: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tblueprint.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tblueprint.java 2009-05-13 13:58:47 UTC (rev 88816)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tblueprint.java 2009-05-13 14:27:03 UTC (rev 88817)
@@ -1,293 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.05.13 at 02:16:52 PM CEST
-//
-
-
-package org.jboss.osgi.blueprint.model;
-
-import java.math.BigInteger;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import javax.xml.namespace.QName;
-
-
-/**
- * <p>Java class for Tblueprint complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="Tblueprint">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tdescription" minOccurs="0"/>
- * <element name="type-converters" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Ttype-converters" minOccurs="0"/>
- * <choice maxOccurs="unbounded" minOccurs="0">
- * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}allComponents"/>
- * </choice>
- * </sequence>
- * <attribute name="default-lazy-init" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tlazy-init" default="false" />
- * <attribute name="default-init-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
- * <attribute name="default-destroy-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
- * <attribute name="default-timeout" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Ttimeout" default="300000" />
- * <attribute name="default-availability" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tavailability" default="mandatory" />
- * <anyAttribute processContents='lax' namespace='##other'/>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-public class Tblueprint {
-
- protected Tdescription description;
- protected TtypeConverters typeConverters;
- protected List<Object> serviceOrRefListOrRefSet;
- protected Boolean defaultLazyInit;
- protected String defaultInitMethod;
- protected String defaultDestroyMethod;
- protected BigInteger defaultTimeout;
- protected Tavailability defaultAvailability;
- private Map<QName, String> otherAttributes = new HashMap<QName, String>();
-
- /**
- * Gets the value of the description property.
- *
- * @return
- * possible object is
- * {@link Tdescription }
- *
- */
- public Tdescription getDescription() {
- return description;
- }
-
- /**
- * Sets the value of the description property.
- *
- * @param value
- * allowed object is
- * {@link Tdescription }
- *
- */
- public void setDescription(Tdescription value) {
- this.description = value;
- }
-
- /**
- * Gets the value of the typeConverters property.
- *
- * @return
- * possible object is
- * {@link TtypeConverters }
- *
- */
- public TtypeConverters getTypeConverters() {
- return typeConverters;
- }
-
- /**
- * Sets the value of the typeConverters property.
- *
- * @param value
- * allowed object is
- * {@link TtypeConverters }
- *
- */
- public void setTypeConverters(TtypeConverters value) {
- this.typeConverters = value;
- }
-
- /**
- * Gets the value of the serviceOrRefListOrRefSet 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 serviceOrRefListOrRefSet property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getServiceOrRefListOrRefSet().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link JAXBElement }{@code <}{@link TrefCollection }{@code >}
- * {@link JAXBElement }{@code <}{@link Treference }{@code >}
- * {@link JAXBElement }{@code <}{@link Tservice }{@code >}
- * {@link JAXBElement }{@code <}{@link TrefCollection }{@code >}
- * {@link JAXBElement }{@code <}{@link Tref }{@code >}
- * {@link Object }
- * {@link JAXBElement }{@code <}{@link Tbean }{@code >}
- *
- *
- */
- public List<Object> getServiceOrRefListOrRefSet() {
- if (serviceOrRefListOrRefSet == null) {
- serviceOrRefListOrRefSet = new ArrayList<Object>();
- }
- return this.serviceOrRefListOrRefSet;
- }
-
- /**
- * Gets the value of the defaultLazyInit property.
- *
- * @return
- * possible object is
- * {@link Boolean }
- *
- */
- public boolean isDefaultLazyInit() {
- if (defaultLazyInit == null) {
- return false;
- } else {
- return defaultLazyInit;
- }
- }
-
- /**
- * Sets the value of the defaultLazyInit property.
- *
- * @param value
- * allowed object is
- * {@link Boolean }
- *
- */
- public void setDefaultLazyInit(Boolean value) {
- this.defaultLazyInit = value;
- }
-
- /**
- * Gets the value of the defaultInitMethod property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getDefaultInitMethod() {
- return defaultInitMethod;
- }
-
- /**
- * Sets the value of the defaultInitMethod property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setDefaultInitMethod(String value) {
- this.defaultInitMethod = value;
- }
-
- /**
- * Gets the value of the defaultDestroyMethod property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getDefaultDestroyMethod() {
- return defaultDestroyMethod;
- }
-
- /**
- * Sets the value of the defaultDestroyMethod property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setDefaultDestroyMethod(String value) {
- this.defaultDestroyMethod = value;
- }
-
- /**
- * Gets the value of the defaultTimeout property.
- *
- * @return
- * possible object is
- * {@link BigInteger }
- *
- */
- public BigInteger getDefaultTimeout() {
- if (defaultTimeout == null) {
- return new BigInteger("300000");
- } else {
- return defaultTimeout;
- }
- }
-
- /**
- * Sets the value of the defaultTimeout property.
- *
- * @param value
- * allowed object is
- * {@link BigInteger }
- *
- */
- public void setDefaultTimeout(BigInteger value) {
- this.defaultTimeout = value;
- }
-
- /**
- * Gets the value of the defaultAvailability property.
- *
- * @return
- * possible object is
- * {@link Tavailability }
- *
- */
- public Tavailability getDefaultAvailability() {
- if (defaultAvailability == null) {
- return Tavailability.MANDATORY;
- } else {
- return defaultAvailability;
- }
- }
-
- /**
- * Sets the value of the defaultAvailability property.
- *
- * @param value
- * allowed object is
- * {@link Tavailability }
- *
- */
- public void setDefaultAvailability(Tavailability value) {
- this.defaultAvailability = 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;
- }
-
-}
Modified: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java 2009-05-13 13:58:47 UTC (rev 88816)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java 2009-05-13 14:27:03 UTC (rev 88817)
@@ -5,7 +5,6 @@
// Generated on: 2009.05.13 at 02:16:52 PM CEST
//
-
package org.jboss.osgi.blueprint.model;
import java.util.ArrayList;
@@ -13,277 +12,263 @@
import java.util.List;
import java.util.Map;
import javax.xml.namespace.QName;
+
+import org.jboss.osgi.blueprint.model.BlueprintType.Availability;
import org.w3c.dom.Element;
-
/**
*
- *
- * TserviceReference is the base element type used for <reference>,
- * <ref-set>, and <ref-list> elements. This type defines all of the
- * characteristics common to both sorts of references.
- *
- *
*
- * <p>Java class for TserviceReference complex type.
+ * TserviceReference is the base element type used for <reference>, <ref-set>, and <ref-list> elements. This type defines all of the characteristics common to both
+ * sorts of references.
*
- * <p>The following schema fragment specifies the expected content contained within this class.
*
+ *
+ * <p>
+ * Java class for TserviceReference complex type.
+ *
+ * <p>
+ * The following schema fragment specifies the expected content contained within this class.
+ *
* <pre>
- * <complexType name="TserviceReference">
- * <complexContent>
- * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tcomponent">
- * <sequence>
- * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tdescription" minOccurs="0"/>
- * <element name="interfaces" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tinterfaces" minOccurs="0"/>
- * <element name="listener" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TReferenceListener" maxOccurs="unbounded" minOccurs="0"/>
- * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
- * </sequence>
- * <attribute name="interface" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
- * <attribute name="filter" type="{http://www.w3.org/2001/XMLSchema}normalizedString" />
- * <attribute name="component-name" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
- * <attribute name="availability" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tavailability" />
- * <anyAttribute processContents='lax' namespace='##other'/>
- * </extension>
- * </complexContent>
- * </complexType>
+ * <complexType name="TserviceReference">
+ * <complexContent>
+ * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tcomponent">
+ * <sequence>
+ * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tdescription" minOccurs="0"/>
+ * <element name="interfaces" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tinterfaces" minOccurs="0"/>
+ * <element name="listener" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TReferenceListener... maxOccurs="unbounded" minOccurs="0"/>
+ * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="interface" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
+ * <attribute name="filter" type="{http://www.w3.org/2001/XMLSchema}normalizedString" />
+ * <attribute name="component-name" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * <attribute name="availability" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tavailability" />
+ * <anyAttribute processContents='lax' namespace='##other'/>
+ * </extension>
+ * </complexContent>
+ * </complexType>
* </pre>
*
*
*/
-public class TserviceReference
- extends Tcomponent
+public class TserviceReference extends Tcomponent
{
- protected Tdescription description;
- protected Tinterfaces interfaces;
- protected List<TReferenceListener> listener;
- protected List<Object> any;
- protected String _interface;
- protected String filter;
- protected String componentName;
- protected Tavailability availability;
- private Map<QName, String> otherAttributes = new HashMap<QName, String>();
+ protected Tdescription description;
+ protected Tinterfaces interfaces;
+ protected List<TReferenceListener> listener;
+ protected List<Object> any;
+ protected String _interface;
+ protected String filter;
+ protected String componentName;
+ protected Availability availability;
+ private Map<QName, String> otherAttributes = new HashMap<QName, String>();
- /**
- * Gets the value of the description property.
- *
- * @return
- * possible object is
- * {@link Tdescription }
- *
- */
- public Tdescription getDescription() {
- return description;
- }
+ /**
+ * Gets the value of the description property.
+ *
+ * @return possible object is {@link Tdescription }
+ *
+ */
+ public Tdescription getDescription()
+ {
+ return description;
+ }
- /**
- * Sets the value of the description property.
- *
- * @param value
- * allowed object is
- * {@link Tdescription }
- *
- */
- public void setDescription(Tdescription value) {
- this.description = value;
- }
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value allowed object is {@link Tdescription }
+ *
+ */
+ public void setDescription(Tdescription value)
+ {
+ this.description = value;
+ }
- /**
- * Gets the value of the interfaces property.
- *
- * @return
- * possible object is
- * {@link Tinterfaces }
- *
- */
- public Tinterfaces getInterfaces() {
- return interfaces;
- }
+ /**
+ * Gets the value of the interfaces property.
+ *
+ * @return possible object is {@link Tinterfaces }
+ *
+ */
+ public Tinterfaces getInterfaces()
+ {
+ return interfaces;
+ }
- /**
- * Sets the value of the interfaces property.
- *
- * @param value
- * allowed object is
- * {@link Tinterfaces }
- *
- */
- public void setInterfaces(Tinterfaces value) {
- this.interfaces = value;
- }
+ /**
+ * Sets the value of the interfaces property.
+ *
+ * @param value allowed object is {@link Tinterfaces }
+ *
+ */
+ public void setInterfaces(Tinterfaces value)
+ {
+ this.interfaces = value;
+ }
- /**
- * Gets the value of the listener 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 listener property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getListener().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link TReferenceListener }
- *
- *
- */
- public List<TReferenceListener> getListener() {
- if (listener == null) {
- listener = new ArrayList<TReferenceListener>();
- }
- return this.listener;
- }
+ /**
+ * Gets the value of the listener 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 listener property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ *
+ * <pre>
+ * getListener().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list {@link TReferenceListener }
+ *
+ *
+ */
+ public List<TReferenceListener> getListener()
+ {
+ if (listener == null)
+ {
+ listener = new ArrayList<TReferenceListener>();
+ }
+ return this.listener;
+ }
- /**
- * Gets the value of the any 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 any property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getAny().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link Object }
- * {@link Element }
- *
- *
- */
- public List<Object> getAny() {
- if (any == null) {
- any = new ArrayList<Object>();
- }
- return this.any;
- }
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ *
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list {@link Object } {@link Element }
+ *
+ *
+ */
+ public List<Object> getAny()
+ {
+ if (any == null)
+ {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
- /**
- * Gets the value of the interface property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getInterface() {
- return _interface;
- }
+ /**
+ * Gets the value of the interface property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getInterface()
+ {
+ return _interface;
+ }
- /**
- * Sets the value of the interface property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setInterface(String value) {
- this._interface = value;
- }
+ /**
+ * Sets the value of the interface property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setInterface(String value)
+ {
+ this._interface = value;
+ }
- /**
- * Gets the value of the filter property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getFilter() {
- return filter;
- }
+ /**
+ * Gets the value of the filter property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getFilter()
+ {
+ return filter;
+ }
- /**
- * Sets the value of the filter property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setFilter(String value) {
- this.filter = value;
- }
+ /**
+ * Sets the value of the filter property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setFilter(String value)
+ {
+ this.filter = value;
+ }
- /**
- * Gets the value of the componentName property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getComponentName() {
- return componentName;
- }
+ /**
+ * Gets the value of the componentName property.
+ *
+ * @return possible object is {@link String }
+ *
+ */
+ public String getComponentName()
+ {
+ return componentName;
+ }
- /**
- * Sets the value of the componentName property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setComponentName(String value) {
- this.componentName = value;
- }
+ /**
+ * Sets the value of the componentName property.
+ *
+ * @param value allowed object is {@link String }
+ *
+ */
+ public void setComponentName(String value)
+ {
+ this.componentName = value;
+ }
- /**
- * Gets the value of the availability property.
- *
- * @return
- * possible object is
- * {@link Tavailability }
- *
- */
- public Tavailability getAvailability() {
- return availability;
- }
+ /**
+ * Gets the value of the availability property.
+ *
+ * @return possible object is {@link Tavailability }
+ *
+ */
+ public Availability getAvailability()
+ {
+ return availability;
+ }
- /**
- * Sets the value of the availability property.
- *
- * @param value
- * allowed object is
- * {@link Tavailability }
- *
- */
- public void setAvailability(Tavailability value) {
- this.availability = value;
- }
+ /**
+ * Sets the value of the availability property.
+ *
+ * @param value allowed object is {@link Tavailability }
+ *
+ */
+ public void setAvailability(String value)
+ {
+ this.availability = Availability.valueOf(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;
- }
+ /**
+ * 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;
+ }
}
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintException.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintException.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintException.java 2009-05-13 14:27:03 UTC (rev 88817)
@@ -0,0 +1,51 @@
+/*
+ * 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.parser;
+
+//$Id$
+
+/**
+ * The Blueprint implementation throws this exception on various
+ * error conditions.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 13-May-2009
+ */
+public class BlueprintException extends RuntimeException
+{
+ private static final long serialVersionUID = 1L;
+
+ public BlueprintException(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+ public BlueprintException(String message)
+ {
+ super(message);
+ }
+
+ public BlueprintException(Throwable cause)
+ {
+ super(cause);
+ }
+}
\ No newline at end of file
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintException.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintParser.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintParser.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintParser.java 2009-05-13 14:27:03 UTC (rev 88817)
@@ -0,0 +1,67 @@
+/*
+ * 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.parser;
+
+//$Id$
+
+import java.net.URL;
+
+import org.jboss.osgi.blueprint.model.BlueprintType;
+import org.jboss.xb.binding.JBossXBException;
+import org.jboss.xb.binding.Unmarshaller;
+import org.jboss.xb.binding.UnmarshallerFactory;
+import org.jboss.xb.binding.sunday.unmarshalling.SchemaBinding;
+import org.jboss.xb.binding.sunday.unmarshalling.XsdBinder;
+
+/**
+ * The Blueprint descriptor parser.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 13-May-2009
+ */
+public class BlueprintParser
+{
+ /**
+ * Parse a blueprint descriptor
+ */
+ public BlueprintType parse(URL xmlURL)
+ {
+ if (xmlURL == null)
+ throw new IllegalArgumentException("Cannot parse null descriptor URL");
+
+ try
+ {
+ ClassLoader resourceLoader = getClass().getClassLoader();
+ URL schemaXSD = resourceLoader.getResource("schema/blueprint-jbxb.xsd");
+ if (schemaXSD == null)
+ throw new BlueprintException("Cannot get blueprint schema from: " + resourceLoader);
+
+ SchemaBinding schema = XsdBinder.bind(schemaXSD.toExternalForm());
+ Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
+ return (BlueprintType)unmarshaller.unmarshal(xmlURL.toExternalForm(), schema);
+ }
+ catch (JBossXBException ex)
+ {
+ throw new BlueprintException("Cannot parse blueprint descriptor: " + xmlURL, ex);
+ }
+ }
+}
\ No newline at end of file
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/parser/BlueprintParser.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: 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 (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint-jbxb.xsd 2009-05-13 14:27:03 UTC (rev 88817)
@@ -0,0 +1,1129 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ /*
+ * $Revision$
+ *
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+<xsd:schema xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" targetNamespace="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:jbxb="http://www.jboss.org/xml/ns/jbxb"
+ elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0.0">
+
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+
+ This is the XML Schema for the OSGi Blueprint service 1.0.0
+ development descriptor. Blueprint configuration files
+ using this schema must indicate the schema using the
+ blueprint/v1.0.0 namespace. For example,
+
+ <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
+
+ if used as a qualified namespace, "bp:" is the recommended
+ namespace prefix.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+
+ <!-- Schema elements for core component declarations -->
+
+ <xsd:complexType name="Tcomponent" abstract="true">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+
+ The Tcomponent 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 Tcomponent 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.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
+
+ <xsd:element name="blueprint" type="Tblueprint">
+ <xsd:annotation>
+ <xsd:appinfo>
+ <jbxb:class impl="org.jboss.osgi.blueprint.model.BlueprintType"></jbxb:class>
+ </xsd:appinfo>
+ <xsd:documentation>
+ <![CDATA[
+
+ The <blueprint> element is the root element for a blueprint
+ configuration file. A blueprint configuration has two sections.
+ The first section (contained within <type-converters> elements)
+ identifies components that are used for converting values into
+ different target types. The type converters are optional, so
+ the file does not need to specify a type converter section.
+
+ Following the type converters are the component definitions.
+ Components are <bean>, <service>, <reference>, <ref-set>, and
+ <ref-list> elements that identify the bundle components that will
+ be managed by the blueprint service.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+
+ <xsd:complexType name="Tblueprint">
+ <xsd:sequence>
+ <xsd:element name="description" type="Tdescription" minOccurs="0" />
+ <xsd:element name="type-converters" type="Ttype-converters" minOccurs="0"
+ maxOccurs="1" />
+ <!-- top-level components -->
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:group ref="allComponents" />
+ </xsd:choice>
+ </xsd:sequence>
+
+ <!-- Defaults-->
+ <xsd:attribute name="default-lazy-init" default="false" type="Tlazy-init">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Specifies the default lazy-init setting that will be defined
+ for <bean> components. If not specified, the global
+ default is "false". Individual <bean> components may
+ override the default
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="default-init-method" type="Tmethod">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Specifies the default init-method that will be defined
+ for <bean> components. If not specified, no default
+ init-method is defined. It is not an error for a
+ bean to not implement the indicated default init-method.
+ The value will be ignored. A bean can also specify
+ a different init-method or disable the init-method
+ call by specifying an init-method value of "".
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="default-destroy-method" type="Tmethod">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Specifies the default destroy-method that will be defined
+ for <bean> components. If not specified, no default
+ destroy-method is defined. It is not an error for a
+ bean to not implement the indicated default destroy-method.
+ The value will be ignored. A bean can also specify
+ a different destroy-method or disable the destroy-method
+ call by specifying a destroy-method value of "".
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="default-timeout" type="Ttimeout" default="300000">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Specifies the default timeout value to be used when operations
+ are invoked on unstatisfied service references. If the
+ reference does not change to a satisfied state within the timeout
+ window, an error is raised on the method invocation. The
+ default timeout value is 300000 milliseconds and individual
+ <reference> element can override the specified configuration
+ default.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="default-availability" type="Tavailability" default="mandatory">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Specifies the default availability value to be used for
+ <reference>, <ref-set>, and <ref-list> components. The
+ normal default is "mandatory", and can be changed by individual
+ service reference components.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:anyAttribute namespace="##other" processContents="lax" />
+ </xsd:complexType>
+
+ <xsd:complexType name="Ttype-converters">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The type used for the <type-converters> element. The
+ <type-converters> section is a set of <bean>, <ref>, or
+ <reference> elements that identify the type convert components
+ that will ference components.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:group ref="targetComponent" />
+ </xsd:choice>
+ </xsd:complexType>
+
+ <!-- Components that provide a reasonable target for injection
+ used for listeners, etc. -->
+
+ <xsd:group name="targetComponent">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A targetcomponent is one that can be a target for a
+ listener, registration-listener, or type-converter element.
+ This is used in contexts where the requirement is a single
+ provided object that will implement a particular interface.
+ The provided object is obtained either from a <ref> element
+ or inline (<bean> or <reference>).
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice>
+ <xsd:element name="bean" type="Tbean" />
+ <xsd:element name="reference" type="Treference" />
+ <xsd:element name="refFIXME" type="Tref" />
+ <xsd:any namespace="##other" processContents="strict" minOccurs="0" maxOccurs="unbounded" />
+ </xsd:choice>
+ </xsd:group>
+
+ <xsd:group name="allComponents">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ allComponents is used in contexts where all component element
+ types are value. The set of component elements contains
+ <bean>, <service>, <reference>, <ref-set>, and <ref-list>.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice>
+ <xsd:element name="service" type="Tservice" />
+ <xsd:element name="ref-list" type="Tref-collection" />
+ <xsd:element name="ref-set" type="Tref-collection" />
+ <xsd:group ref="targetComponent" />
+ </xsd:choice>
+ </xsd:group>
+
+ <xsd:group name="beanElements">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A reusable definition of the elements allowed on a <bean> element.
+ This definition is also used by the <bpcm:managed-component>
+ element used in the blueprint-cm schema.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="description" type="Tdescription" minOccurs="0" />
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="argument" type="Targument" />
+ <xsd:element name="property" type="Tproperty" />
+ <xsd:any namespace="##other" processContents="strict" minOccurs="0"
+ maxOccurs="unbounded" />
+ </xsd:choice>
+ </xsd:sequence>
+ </xsd:group>
+
+ <xsd:complexType name="Tbean">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The type defintion for a <bean> component.
+ This definition is also used by the <bpcm:managed-component>
+ element used in the blueprint-cm schema. The <bean> attributes
+ provide the characteristics for how to create a bean instance.
+ Constructor arguments and injected properties are specified
+ via child <argument> and <property> elements.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexContent>
+ <xsd:extension base="Tcomponent">
+ <xsd:group ref="beanElements" />
+ <xsd:attribute name="class" type="Tclass" />
+ <xsd:attribute name="depends-on" type="TdependsOn" />
+ <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="scope">
+ <xsd:simpleType>
+ <xsd:restriction base="xsd:NMTOKEN">
+ <xsd:enumeration value="singleton" />
+ <xsd:enumeration value="prototype" />
+ <xsd:enumeration value="bundle" />
+ </xsd:restriction>
+ </xsd:simpleType>
+ </xsd:attribute>
+
+ <xsd:attribute name="lazy-init" type="Tlazy-init">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The lazy-init attribute for this <bean>. This can either
+ be "eager" ("false") or "lazy" ("true"). If not specified, it
+ defaults to default-lazy-init attribute of the enclosing
+ <blueprint> element. The default, default is "eager"
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:anyAttribute namespace="##other" processContents="lax" />
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:complexType name="Targument">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ An argument used to create an object defined by a <bean>
+ component. The <argument> elements are the arguments for the
+ bean class constructor or passed to the bean factory method.
+
+ The type, if specified, is used to disambiguate the constructor
+ or method signature. Arguments may also be matched up with
+ arguments by explicitly specifying the index position. If the
+ index is used, then all <argument> elements for the bean must
+ also specify the index.
+
+ The value and ref attributes are convenience shortcuts to make
+ the <argument> tag easier to code. A fuller set of injected
+ values and types can be specified using one of the "value"
+ type elements.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="description" type="Tdescription" minOccurs="0" />
+ <xsd:group ref="value" />
+ </xsd:sequence>
+ <xsd:attribute name="index" type="xsd:nonNegativeInteger" />
+ <xsd:attribute name="type" type="Tclass" />
+ <xsd:attribute name="ref" type="Tidref" />
+ <xsd:attribute name="valueFIXME" type="TstringValue" />
+ </xsd:complexType>
+
+ <xsd:complexType name="Tproperty">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A property that will be injected into a created <bean>
+ component. The <property> elements correspond to named
+ JavaBean setting methods for a created bean object.
+
+ The value and ref attributes are convenience shortcuts to make
+ the <argument> tag easier to code. A fuller set of injected
+ values and types can be specified using one of the "value"
+ type elements.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="description" type="Tdescription" minOccurs="0" />
+ <xsd:group ref="value" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="Tmethod" use="required" />
+ <xsd:attribute name="ref" type="Tidref" />
+ <xsd:attribute name="valueFIXME" type="TstringValue" />
+ </xsd:complexType>
+
+ <xsd:complexType name="Tkey">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The Tkey type defines the element types that are permitted
+ for Map key situations. These can be any of the "value"
+ types other than the <null> element.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:group ref="nonNullValue" />
+ </xsd:complexType>
+
+ <!-- reference -->
+ <xsd:complexType name="Treference">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The Treference type defines the <reference> element. These
+ are instances of the TserviceReference type, with the addition
+ of a timeout attribute. If the timeout is not specified,
+ the default-timeout value is inherited from the encapsulating
+ <blueprint> definition.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexContent>
+ <xsd:extension base="TserviceReference">
+ <xsd:attribute name="timeout" use="optional" type="Ttimeout" />
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <!-- ref-set, ref-list -->
+ <xsd:complexType name="Tref-collection">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The Tref-collection builds in the characteristics of the
+ TserviceReference type to define characteristics of the <ref-set>
+ and <ref-list> elements. This adds in the characteristics that
+ only apply to collections of references (e.g., sorting).
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexContent>
+ <xsd:extension base="TserviceReference">
+ <xsd:sequence>
+ <xsd:element name="comparator" type="Tcomparator" minOccurs="0"
+ maxOccurs="1">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The <comparator> element defines a comparator instance that will
+ be used to sort the constructed reference collection.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ </xsd:sequence>
+
+ <xsd:attribute name="comparator-ref" type="xsd:token" use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A shortcut alternative to using a <comparator> element when the
+ comparator target is a top-level <bean> or <service> element.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+
+ <xsd:attribute name="member-type" use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Indicates the type of object that will be placed within the
+ reference collection. "service-instance" indicates the collection
+ contains blueprint proxies for imported services. "service-reference"
+ indicates the collection contains ServiceReferenc objects matching
+ the target service type.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleType>
+ <xsd:restriction base="xsd:NMTOKEN">
+ <xsd:enumeration value="service-instance" />
+ <xsd:enumeration value="service-reference" />
+ </xsd:restriction>
+ </xsd:simpleType>
+ </xsd:attribute>
+
+ <xsd:attribute name="ordering-basis" use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Indicates how collection sorting is handled. An ordering
+ basis of "service" indicates sorting is handled using the service
+ instance. "service-reference" indicates sorting is accomplished using
+ the ServiceReference objects for the contained services. The default
+ value is an implicit "none", indicating no sorting should be performed.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleType>
+ <xsd:restriction base="xsd:NMTOKEN">
+ <xsd:enumeration value="service" />
+ <xsd:enumeration value="service-reference" />
+ </xsd:restriction>
+ </xsd:simpleType>
+ </xsd:attribute>
+
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <!-- Reference base class -->
+ <xsd:complexType name="TserviceReference">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TserviceReference is the base element type used for <reference>,
+ <ref-set>, and <ref-list> elements. This type defines all of the
+ characteristics common to both sorts of references.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexContent>
+ <xsd:extension base="Tcomponent">
+ <xsd:sequence>
+ <xsd:element name="description" type="Tdescription" minOccurs="0" />
+ <xsd:element name="interfaces" minOccurs="0" maxOccurs="1" type="Tinterfaces">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The definition of the required interfaces that the obtained services
+ must implement. There is also a shortcut attribute defined for
+ the typical case of just a single interface class.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+
+ <!-- listener -->
+ <xsd:element name="listener" type="TReferenceListener" minOccurs="0"
+ maxOccurs="unbounded">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A definition of a listener that will watch for bind/unbind events
+ associated with the service reference. The targetted listener can
+ be a <ref> to a <bean> or <reference> element, or an inline
+ <bean> or <reference>.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded"
+ processContents="lax" />
+ </xsd:sequence>
+
+ <xsd:attribute name="interface" use="optional" type="Tclass" />
+ <xsd:attribute name="filter" use="optional" type="xsd:normalizedString">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A filter string used to narrow the search for a matching service
+ reference.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="component-name" type="Tidref" use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ An optional specifier that can be used to match a service definition
+ to one created by a specific blueprint component.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="availability" type="Tavailability" use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Use to control the initial processing of service references at
+ blueprint context startup. "mandatory" indicates the context
+ should not start unless the service is available within the
+ specified context startup period. "optional" indicates availability
+ of this service is not a requirement at bundle startup.
+
+ NOTE: No default is specified because this can be overridden
+ by the default-availability attribute of the <blueprint> element.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:anyAttribute namespace="##other" processContents="lax" />
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:complexType name="TReferenceListener">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TReferenceListener defines a reference listener that is attached
+ to a <reference>, <ref-set>, or <ref-list> element. The listener
+ object can be specified as a <ref> or as an inline <bean> or
+ <reference> component. Listener events are mapped to the indicated
+ bind or unbind methods.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:group ref="targetComponent" />
+ <xsd:attribute name="ref" type="xsd:token" use="optional" />
+ <xsd:attribute name="bind-method" type="Tmethod" use="required" />
+ <xsd:attribute name="unbind-method" type="Tmethod" use="required" />
+ </xsd:complexType>
+
+ <xsd:simpleType name="Tlazy-init">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tlazy-init defines a lazy-init type. This is used in this
+ schema by the <blueprint> default-lazy-init attribute and the
+ <bean> lazy-init attribute.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:boolean" />
+ </xsd:simpleType>
+
+ <xsd:simpleType name="Tavailability">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tlazy-init defines an availability attribute type. This is used in this
+ schema by the <blueprint> default-availability attribute and the
+ <reference>, <ref-set>, and <ref-list> availability attribute.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:token">
+ <xsd:enumeration value="mandatory" />
+ <xsd:enumeration value="optional" />
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <xsd:complexType name="Tcomparator">
+ <xsd:group ref="targetComponent" />
+ </xsd:complexType>
+
+ <!-- service -->
+
+ <xsd:complexType name="Tservice">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tservice is the type for services exported by this blueprint bundle.
+ Services are sourced by either a <ref> to a <bean> component or an
+ <inline> bean component.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexContent>
+ <xsd:extension base="Tcomponent">
+ <xsd:sequence>
+ <xsd:group ref="serviceElements" />
+ <xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded"
+ processContents="lax" />
+ </xsd:sequence>
+ <xsd:attribute name="interface" type="Tclass" use="optional" />
+ <xsd:attribute name="ref" type="Tidref" use="optional" />
+ <xsd:attribute name="depends-on" type="TdependsOn" use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ depends-on identifies (by name) other components that this service
+ depends on. The service will only be registered after the
+ depends-on services are successfully completed. Also, if there
+ are <reference>, <ref-list>, <ref-set> elements with unstatisfied
+ manadatory references, then the depends-on relationship will also
+ be used to determine whether this service is registered or
+ unregistered.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="auto-export" type="TautoExportModes" default="disabled" />
+ <xsd:attribute name="ranking" type="xsd:int" default="0">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A service ranking value that is added to the service properties
+ the service will be published with.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:anyAttribute namespace="##other" processContents="lax" />
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:group name="serviceElements">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A set of service elements that is shared by the <service> element
+ in this schema and the <managed-service-factory> element in the
+ blueprint-cm schema.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="description" type="Tdescription" minOccurs="0" />
+ <xsd:element name="interfaces" type="Tinterfaces" minOccurs="0">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A collection of one or more interface class names this service
+ will be registered under. The <service> element also has
+ a shortcut interface attribute for the usual case of just
+ a single interface being used. This also cannot be used if
+ the auto-export attribute is used.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+
+ <xsd:element name="service-properties" type="TserviceProperties" minOccurs="0">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The service provided when the service is registered. The service
+ properties are similar to map elements, but the keys must always
+ be strings, and the values are required to be in a narrower range.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="registration-listener" type="TregistrationListener"
+ minOccurs="0" maxOccurs="unbounded">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A set of 0 or more registration listeners attached to this service
+ component. The registration listeners will be notified whenever the
+ service is registered or unregistered from the framework service
+ registry.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:choice minOccurs="0" maxOccurs="1">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ These are the two types of elements that can be bound as a service.
+ This will be either a <ref> to a <bean> component or an inline <bean> component.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:element name="bean" type="Tbean" />
+ <xsd:element name="refFIXME" type="Tref" />
+ </xsd:choice>
+ </xsd:sequence>
+ </xsd:group>
+
+
+ <xsd:complexType name="TregistrationListener">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A registration listener definition. The target registration listener
+ can be either a <ref> to a <bean> or <service> component, or an inline
+ <bean> or <service> component definition. The registration-method and
+ unregistration-method attributes define the methods that will be called
+ for the respective events.
+
+ For the very common case of using a <ref> to a listener component, the
+ ref attribute may also be used as a shortcut.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:group ref="targetComponent" />
+ <xsd:attribute name="ref" type="Tidref" use="optional" />
+ <!-- ### why are there both required? -->
+ <xsd:attribute name="registration-method" type="Tmethod" use="required" />
+ <xsd:attribute name="unregistration-method" type="Tmethod" use="required" />
+ </xsd:complexType>
+
+ <!--
+ Values
+ -->
+
+ <xsd:group name="value">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The set of "value" types that can be used in any place a value
+ can be specified. This set includes the <ref> and <idref> elements, any of the
+ component types (<bean>, <service>, etc.) as inline components, the
+ generic <value> element for types sourced from string values, any of the
+ collection types (<set>, <list>, <array>, <map>, <props>), and the
+ <null> type to inject a null value.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice>
+ <xsd:group ref="nonNullValue" />
+ <xsd:element name="null" type="Tnull" />
+ </xsd:choice>
+ </xsd:group>
+
+ <xsd:complexType name="Tnull">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The definition for a <null> value type.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <!-- [FIXME] cannot be processed by xjc -->
+ <!-- xsd:choice minOccurs="0" maxOccurs="unbounded" / -->
+ </xsd:complexType>
+
+ <xsd:group name="nonNullValue">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The set of "value" types that can be used in any place a non-null value
+ can be specified. This set includes the <ref> and <idref> elements, any of the
+ component types (<bean>, <service>, etc.) as inline components, the
+ generic <value> element for types sourced from string values, and any of the
+ collection types (<set>, <list>, <array>, <map>, <props>).
+
+ The <null> type is NOT a member of this group.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:group ref="allComponents" />
+ <xsd:choice minOccurs="0" maxOccurs="1">
+ <xsd:element name="idref" type="Tref" />
+ <xsd:element name="value" type="Tvalue" />
+ <xsd:element name="list" type="Tcollection" />
+ <xsd:element name="set" type="Tcollection" />
+ <xsd:element name="map" type="Tmap" />
+ <xsd:element name="array" type="Tcollection" />
+ <xsd:element name="props" type="Tprops" />
+ </xsd:choice>
+ </xsd:sequence>
+ </xsd:group>
+
+ <xsd:complexType name="Tref">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tref is the type used for <ref> elements. This specifies a required
+ component id for the reference component.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:attribute name="component" type="Tidref" use="required" />
+ </xsd:complexType>
+
+ <xsd:complexType name="Tvalue" mixed="true">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tvalue is the type used for <value> elements. The <value> element
+ is used for types that can be created from a single string value.
+ The string value is the data value for the element. The optional
+ type attribute allows a target conversion value to be explicitly
+ specified.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:attribute name="type" type="Tclass" use="optional" />
+ </xsd:complexType>
+
+ <!-- Collection Values -->
+
+ <xsd:complexType name="TtypedCollection">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TtypeCollection defines comment attributes shared among different
+ collection types that allow a default value type to be specified.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:attribute name="value-type" type="Tclass" />
+ </xsd:complexType>
+
+
+ <xsd:complexType name="Tcollection">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tcollection is the base schema type for different ordered collection
+ types. This is shared between the <array>, <list>, and <set> elements.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexContent>
+ <xsd:extension base="TtypedCollection">
+ <xsd:group ref="value" minOccurs="0" maxOccurs="unbounded" />
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:complexType name="Tprops">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tprops is the type used by the <props> value element. The prop elements
+ are pairs of string-valued keys and values.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="prop" type="Tprop" minOccurs="0" maxOccurs="unbounded" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="Tprop" mixed="true">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tprop is a single property element for a <props> value type. The property
+ value can be specified using either the attribute, or as value data for
+ the property element.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:attribute name="key" type="TstringValue" use="required" />
+ <xsd:attribute name="value" type="TstringValue" use="optional" />
+ </xsd:complexType>
+
+ <!-- 'map' element type -->
+ <xsd:complexType name="Tmap">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tmap is the base type used for <map> elements. A map may have a
+ default value type specified, so it inherits from the TtypeCollection
+ type. A key type can also be specified, and the map members are
+ created from the entry elements, which require a key/value pair.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexContent>
+ <xsd:extension base="TtypedCollection">
+ <xsd:sequence>
+ <xsd:element name="entry" type="TmapEntry" minOccurs="0" maxOccurs="unbounded" />
+ </xsd:sequence>
+ <xsd:attribute name="key-type" type="Tclass" />
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <!-- 'entry' element type -->
+ <xsd:complexType name="TmapEntry">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TmapEntry is used for <entry> elements nested inside of a <map> element.
+ Each <entry> instance defines a key/value pair that will be added to the
+ Map. Both the keys and values may be arbitrary types. Keys must not
+ be <null> but <null> is permitted for entry values. A default type
+ can be specified for both the keys and the values, but individual keys
+ or values can override the default.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="keyFIXME" type="Tkey" minOccurs="0" />
+ <xsd:group ref="value" />
+ </xsd:sequence>
+ <xsd:attribute name="key" type="TstringValue" />
+ <xsd:attribute name="key-ref" type="Tidref" />
+ <xsd:attribute name="valueFIXME" type="TstringValue" />
+ <xsd:attribute name="value-ref" type="Tidref" />
+ </xsd:complexType>
+
+
+ <!-- 'service property' element type -->
+ <xsd:complexType name="TserviceProperties">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TserviceProperty is used for <service-properties> elements.
+ The syntax is similar to what is defined for <map>, but keys must be
+ string values and there are no type defaults that can be specified.
+ created from the entry elements, which require a key/value pair.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="entry" type="TservicePropertyEntry" minOccurs="0"
+ maxOccurs="unbounded" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <!-- 'entry' element type -->
+ <xsd:complexType name="TservicePropertyEntry">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TservicePropertyEntry is an entry value used for the <service-properties>
+ element. This does not allow a child <key> element and there are no
+ key-ref or value-ref attributes.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:group ref="value" />
+ </xsd:sequence>
+ <xsd:attribute name="key" type="TstringValue" use="required" />
+ <xsd:attribute name="valueFIXME" type="TstringValue" use="optional" />
+ </xsd:complexType>
+
+ <!-- General types -->
+
+ <xsd:complexType name="Tdescription" mixed="true">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A generic <description> element type to allow documentation to added to the
+ blueprint configuration.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded" />
+ </xsd:complexType>
+
+ <xsd:complexType name="Tinterfaces">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The type definition for the <interfaces> element used for <service>,
+ <reference>, <ref-set>, and <ref-list>;
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice minOccurs="1" maxOccurs="unbounded">
+ <xsd:element name="value" type="TinterfaceValue" />
+ </xsd:choice>
+ </xsd:complexType>
+
+ <xsd:simpleType name="TinterfaceValue">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TinterfaceValue is used for subelements of the <interfaces> element.
+ This is just a <value>xxxxx</value> element where the contained
+ value is the name of an interface class.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="Tclass" />
+ </xsd:simpleType>
+
+ <xsd:simpleType name="Tclass">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tclass is a base type that should be used for all attributes that
+ refer to java class names or java types.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:NCName" />
+ </xsd:simpleType>
+
+ <xsd:simpleType name="Tmethod">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tmethod is a base type that should be used for all attributes that
+ refer to java method names.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:NCName" />
+ </xsd:simpleType>
+
+ <xsd:simpleType name="TnullableMethod">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tmethod is a base type that should be used for all attributes that
+ refer to java method names. This version also allows "" to be
+ specified to specify that no name should be used.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:token">
+ <xsd:pattern value="[\i-[:]][\c-[:]]*" />
+ <xsd:pattern value="" />
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <!-- Should be used for all attributes and elements that refer to method names -->
+ <xsd:simpleType name="Tidref">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tidref is a base type that should be used for all attributes that
+ refer to component ids.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:NCName" />
+ </xsd:simpleType>
+
+ <xsd:simpleType name="TstringValue">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TstringValue is a base type that should be used for all attributes that
+ refer to raw string values
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:normalizedString" />
+ </xsd:simpleType>
+
+ <xsd:simpleType name="TautoExportModes">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TautoExportModes is a base type that should be used for export-mode
+ attributes. Also used by the blueprint-cm compendium.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:token">
+ <xsd:enumeration value="disabled" />
+ <xsd:enumeration value="interfaces" />
+ <xsd:enumeration value="class-hierarchy" />
+ <xsd:enumeration value="all-classes" />
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <xsd:simpleType name="Ttimeout">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Ttimeout is a base type that should be used for all attributes that
+ specify timeout values
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:unsignedLong" />
+ </xsd:simpleType>
+
+ <xsd:simpleType name="TdependsOn">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TdependsOn is a base type that should be used for all attributes that
+ specify depends-on relationships
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:normalizedString" />
+ </xsd:simpleType>
+
+</xsd:schema>
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint-jbxb.xsd
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: 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 (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/ParserTestCase.java 2009-05-13 14:27:03 UTC (rev 88817)
@@ -0,0 +1,45 @@
+/*
+ * 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.test.osgi.blueprint.parser;
+
+//$Id$
+
+import java.net.URL;
+
+import org.jboss.osgi.blueprint.parser.BlueprintParser;
+import org.jboss.osgi.spi.testing.OSGiTest;
+
+/**
+ * Blueprint parser tests
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 13-May-2009
+ */
+public class ParserTestCase extends OSGiTest
+{
+ public void testBlueprintBasic() throws Exception
+ {
+ URL xmlURL = getResourceURL("parser/blueprint-basic.xml");
+ BlueprintParser parser = new BlueprintParser();
+ parser.parse(xmlURL);
+ }
+}
\ No newline at end of file
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/test/java/org/jboss/test/osgi/blueprint/parser/ParserTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/log4j.xml
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/log4j.xml (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/log4j.xml 2009-05-13 14:27:03 UTC (rev 88817)
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+ <!-- ================================= -->
+ <!-- Preserve messages in a local file -->
+ <!-- ================================= -->
+
+ <appender name="FILE" class="org.apache.log4j.FileAppender">
+ <param name="File" value="${log4j.output.dir}/test.log"/>
+ <param name="Append" value="false"/>
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ============================== -->
+ <!-- Append messages to the console -->
+ <!-- ============================== -->
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <param name="Target" value="System.out" />
+ <param name="Threshold" value="INFO" />
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{1}] %m%n" />
+ </layout>
+ </appender>
+
+ <!-- ================ -->
+ <!-- Limit categories -->
+ <!-- ================ -->
+
+ <!-- Show jboss deployer traces
+ <category name="org.jboss.deployers">
+ <priority value="TRACE" />
+ </category>
+ -->
+
+ <!-- Show jboss deployer traces -->
+ <category name="org.jboss.xb">
+ <priority value="TRACE" />
+ </category>
+
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <!--appender-ref ref="CONSOLE"/-->
+ <appender-ref ref="FILE"/>
+ </root>
+
+</log4j:configuration>
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/log4j.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic.xml
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic.xml (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic.xml 2009-05-13 14:27:03 UTC (rev 88817)
@@ -0,0 +1,3 @@
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd schema/blueprint.xsd">
+
+</blueprint>
\ No newline at end of file
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/test/resources/parser/blueprint-basic.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: projects/jboss-osgi/trunk/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/pom.xml 2009-05-13 13:58:47 UTC (rev 88816)
+++ projects/jboss-osgi/trunk/pom.xml 2009-05-13 14:27:03 UTC (rev 88817)
@@ -386,28 +386,20 @@
<repository>
<id>repository.jboss.org</id>
<name>JBoss Repository</name>
- <layout>default</layout>
<url>http://repository.jboss.org/maven2/</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
</repository>
<repository>
- <id>aQute</id>
- <url>http://www.aQute.biz/repo</url>
- </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>
+ <repository>
+ <id>aQute</id>
+ <url>http://www.aQute.biz/repo</url>
+ </repository>
</repositories>
<!-- PluginRepositories -->
17 years, 2 months
JBoss-OSGI SVN: r88810 - in projects/jboss-osgi/trunk/bundle/blueprint: src/main and 4 other directories.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-13 08:30:09 -0400 (Wed, 13 May 2009)
New Revision: 88810
Added:
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TReferenceListener.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Targument.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TautoExportModes.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tavailability.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tbean.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tblueprint.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcollection.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomparator.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomponent.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tdescription.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tinterfaces.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tkey.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tmap.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TmapEntry.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tnull.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tprop.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tproperty.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tprops.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tref.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TrefCollection.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Treference.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TregistrationListener.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tservice.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceProperties.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TservicePropertyEntry.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TtypeConverters.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TtypedCollection.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tvalue.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/
projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/
projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint-cm.xsd
projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint.xsd
Modified:
projects/jboss-osgi/trunk/bundle/blueprint/.classpath
projects/jboss-osgi/trunk/bundle/blueprint/pom.xml
Log:
Add the blueprint xjc generated model
Modified: projects/jboss-osgi/trunk/bundle/blueprint/.classpath
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/.classpath 2009-05-13 12:05:18 UTC (rev 88809)
+++ projects/jboss-osgi/trunk/bundle/blueprint/.classpath 2009-05-13 12:30:09 UTC (rev 88810)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
- <classpathentry kind="src" output="target/classes" path="src/main/java"/>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry excluding="**" kind="src" path="src/main/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
Modified: projects/jboss-osgi/trunk/bundle/blueprint/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/pom.xml 2009-05-13 12:05:18 UTC (rev 88809)
+++ projects/jboss-osgi/trunk/bundle/blueprint/pom.xml 2009-05-13 12:30:09 UTC (rev 88810)
@@ -19,19 +19,42 @@
<!-- Dependencies -->
<dependencies>
+
+ <!-- Provided Dependencies -->
<dependency>
- <groupId>org.jboss.osgi</groupId>
- <artifactId>jboss-osgi-spi</artifactId>
- <version>${version}</version>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.core</artifactId>
+ <scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.compendium</artifactId>
+ <scope>provided</scope>
+ </dependency>
</dependencies>
<!-- Build -->
<build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <quiet>true</quiet>
+ <excludePackageNames>org.jboss.*</excludePackageNames>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
</build>
<!-- Profiles -->
<profiles>
</profiles>
-
+
</project>
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TReferenceListener.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TReferenceListener.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TReferenceListener.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,228 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * TReferenceListener defines a reference listener that is attached
+ * to a <reference>, <ref-set>, or <ref-list> element. The listener
+ * object can be specified as a <ref> or as an inline <bean> or
+ * <reference> component. Listener events are mapped to the indicated
+ * bind or unbind methods.
+ *
+ *
+ *
+ * <p>Java class for TReferenceListener complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="TReferenceListener">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}targetComponent"/>
+ * <attribute name="ref" type="{http://www.w3.org/2001/XMLSchema}token" />
+ * <attribute name="bind-method" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
+ * <attribute name="unbind-method" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class TReferenceListener {
+
+ protected Tbean bean;
+ protected Treference reference;
+ protected Tref refFIXME;
+ protected List<Object> any;
+ protected String ref;
+ protected String bindMethod;
+ protected String unbindMethod;
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Tbean }
+ *
+ */
+ public Tbean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tbean }
+ *
+ */
+ public void setBean(Tbean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the reference property.
+ *
+ * @return
+ * possible object is
+ * {@link Treference }
+ *
+ */
+ public Treference getReference() {
+ return reference;
+ }
+
+ /**
+ * Sets the value of the reference property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Treference }
+ *
+ */
+ public void setReference(Treference value) {
+ this.reference = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the ref property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRef() {
+ return ref;
+ }
+
+ /**
+ * Sets the value of the ref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRef(String value) {
+ this.ref = value;
+ }
+
+ /**
+ * Gets the value of the bindMethod property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getBindMethod() {
+ return bindMethod;
+ }
+
+ /**
+ * Sets the value of the bindMethod property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setBindMethod(String value) {
+ this.bindMethod = value;
+ }
+
+ /**
+ * Gets the value of the unbindMethod property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getUnbindMethod() {
+ return unbindMethod;
+ }
+
+ /**
+ * Sets the value of the unbindMethod property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setUnbindMethod(String value) {
+ this.unbindMethod = value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TReferenceListener.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Targument.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Targument.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Targument.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,567 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.math.BigInteger;
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * An argument used to create an object defined by a <bean>
+ * component. The <argument> elements are the arguments for the
+ * bean class constructor or passed to the bean factory method.
+ *
+ * The type, if specified, is used to disambiguate the constructor
+ * or method signature. Arguments may also be matched up with
+ * arguments by explicitly specifying the index position. If the
+ * index is used, then all <argument> elements for the bean must
+ * also specify the index.
+ *
+ * The value and ref attributes are convenience shortcuts to make
+ * the <argument> tag easier to code. A fuller set of injected
+ * values and types can be specified using one of the "value"
+ * type elements.
+ *
+ *
+ *
+ * <p>Java class for Targument complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Targument">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tdescription" minOccurs="0"/>
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value"/>
+ * </sequence>
+ * <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" />
+ * <attribute name="type" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
+ * <attribute name="ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * <attribute name="valueFIXME" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Targument {
+
+ protected Tdescription description;
+ protected Tservice service;
+ protected TrefCollection refList;
+ protected TrefCollection refSet;
+ protected Tbean bean;
+ protected Treference reference;
+ protected Tref refFIXME;
+ protected List<Object> any;
+ protected Tref idref;
+ protected Tvalue value;
+ protected Tcollection list;
+ protected Tcollection set;
+ protected Tmap map;
+ protected Tcollection array;
+ protected Tprops props;
+ protected Tnull _null;
+ protected BigInteger index;
+ protected String type;
+ protected String ref;
+ protected String valueFIXME;
+
+ /**
+ * Gets the value of the description property.
+ *
+ * @return
+ * possible object is
+ * {@link Tdescription }
+ *
+ */
+ public Tdescription getDescription() {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tdescription }
+ *
+ */
+ public void setDescription(Tdescription value) {
+ this.description = value;
+ }
+
+ /**
+ * Gets the value of the service property.
+ *
+ * @return
+ * possible object is
+ * {@link Tservice }
+ *
+ */
+ public Tservice getService() {
+ return service;
+ }
+
+ /**
+ * Sets the value of the service property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tservice }
+ *
+ */
+ public void setService(Tservice value) {
+ this.service = value;
+ }
+
+ /**
+ * Gets the value of the refList property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefList() {
+ return refList;
+ }
+
+ /**
+ * Sets the value of the refList property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefList(TrefCollection value) {
+ this.refList = value;
+ }
+
+ /**
+ * Gets the value of the refSet property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefSet() {
+ return refSet;
+ }
+
+ /**
+ * Sets the value of the refSet property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefSet(TrefCollection value) {
+ this.refSet = value;
+ }
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Tbean }
+ *
+ */
+ public Tbean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tbean }
+ *
+ */
+ public void setBean(Tbean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the reference property.
+ *
+ * @return
+ * possible object is
+ * {@link Treference }
+ *
+ */
+ public Treference getReference() {
+ return reference;
+ }
+
+ /**
+ * Sets the value of the reference property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Treference }
+ *
+ */
+ public void setReference(Treference value) {
+ this.reference = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the idref property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getIdref() {
+ return idref;
+ }
+
+ /**
+ * Sets the value of the idref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setIdref(Tref value) {
+ this.idref = value;
+ }
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link Tvalue }
+ *
+ */
+ public Tvalue getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tvalue }
+ *
+ */
+ public void setValue(Tvalue value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the list property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getList() {
+ return list;
+ }
+
+ /**
+ * Sets the value of the list property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setList(Tcollection value) {
+ this.list = value;
+ }
+
+ /**
+ * Gets the value of the set property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getSet() {
+ return set;
+ }
+
+ /**
+ * Sets the value of the set property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setSet(Tcollection value) {
+ this.set = value;
+ }
+
+ /**
+ * Gets the value of the map property.
+ *
+ * @return
+ * possible object is
+ * {@link Tmap }
+ *
+ */
+ public Tmap getMap() {
+ return map;
+ }
+
+ /**
+ * Sets the value of the map property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tmap }
+ *
+ */
+ public void setMap(Tmap value) {
+ this.map = value;
+ }
+
+ /**
+ * Gets the value of the array property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getArray() {
+ return array;
+ }
+
+ /**
+ * Sets the value of the array property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setArray(Tcollection value) {
+ this.array = value;
+ }
+
+ /**
+ * Gets the value of the props property.
+ *
+ * @return
+ * possible object is
+ * {@link Tprops }
+ *
+ */
+ public Tprops getProps() {
+ return props;
+ }
+
+ /**
+ * Sets the value of the props property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tprops }
+ *
+ */
+ public void setProps(Tprops value) {
+ this.props = value;
+ }
+
+ /**
+ * Gets the value of the null property.
+ *
+ * @return
+ * possible object is
+ * {@link Tnull }
+ *
+ */
+ public Tnull getNull() {
+ return _null;
+ }
+
+ /**
+ * Sets the value of the null property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tnull }
+ *
+ */
+ public void setNull(Tnull value) {
+ this._null = value;
+ }
+
+ /**
+ * Gets the value of the index property.
+ *
+ * @return
+ * possible object is
+ * {@link BigInteger }
+ *
+ */
+ public BigInteger getIndex() {
+ return index;
+ }
+
+ /**
+ * Sets the value of the index property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BigInteger }
+ *
+ */
+ public void setIndex(BigInteger value) {
+ this.index = value;
+ }
+
+ /**
+ * Gets the value of the type property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * Sets the value of the type property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setType(String value) {
+ this.type = value;
+ }
+
+ /**
+ * Gets the value of the ref property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRef() {
+ return ref;
+ }
+
+ /**
+ * Sets the value of the ref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRef(String value) {
+ this.ref = value;
+ }
+
+ /**
+ * Gets the value of the valueFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValueFIXME() {
+ return valueFIXME;
+ }
+
+ /**
+ * Sets the value of the valueFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValueFIXME(String value) {
+ this.valueFIXME = value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Targument.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TautoExportModes.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TautoExportModes.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TautoExportModes.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,54 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+
+/**
+ * <p>Java class for TautoExportModes.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * <simpleType name="TautoExportModes">
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ * <enumeration value="disabled"/>
+ * <enumeration value="interfaces"/>
+ * <enumeration value="class-hierarchy"/>
+ * <enumeration value="all-classes"/>
+ * </restriction>
+ * </simpleType>
+ * </pre>
+ *
+ */
+public enum TautoExportModes {
+
+ DISABLED("disabled"),
+ INTERFACES("interfaces"),
+ CLASS_HIERARCHY("class-hierarchy"),
+ ALL_CLASSES("all-classes");
+ private final String value;
+
+ TautoExportModes(String v) {
+ value = v;
+ }
+
+ public String value() {
+ return value;
+ }
+
+ public static TautoExportModes fromValue(String v) {
+ for (TautoExportModes c: TautoExportModes.values()) {
+ if (c.value.equals(v)) {
+ return c;
+ }
+ }
+ throw new IllegalArgumentException(v);
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TautoExportModes.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tavailability.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tavailability.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tavailability.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,50 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+
+/**
+ * <p>Java class for Tavailability.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * <simpleType name="Tavailability">
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ * <enumeration value="mandatory"/>
+ * <enumeration value="optional"/>
+ * </restriction>
+ * </simpleType>
+ * </pre>
+ *
+ */
+public enum Tavailability {
+
+ MANDATORY("mandatory"),
+ OPTIONAL("optional");
+ private final String value;
+
+ Tavailability(String v) {
+ value = v;
+ }
+
+ public String value() {
+ return value;
+ }
+
+ public static Tavailability fromValue(String v) {
+ for (Tavailability c: Tavailability.values()) {
+ if (c.value.equals(v)) {
+ return c;
+ }
+ }
+ throw new IllegalArgumentException(v);
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tavailability.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tbean.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tbean.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tbean.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,344 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import javax.xml.namespace.QName;
+
+
+/**
+ *
+ *
+ * The type defintion for a <bean> component.
+ * This definition is also used by the <bpcm:managed-component>
+ * element used in the blueprint-cm schema. The <bean> attributes
+ * provide the characteristics for how to create a bean instance.
+ * Constructor arguments and injected properties are specified
+ * via child <argument> and <property> elements.
+ *
+ *
+ *
+ * <p>Java class for Tbean complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tbean">
+ * <complexContent>
+ * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tcomponent">
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}beanElements"/>
+ * <attribute name="class" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
+ * <attribute name="depends-on" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TdependsOn" />
+ * <attribute name="init-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TnullableMethod" />
+ * <attribute name="destroy-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TnullableMethod" />
+ * <attribute name="factory-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
+ * <attribute name="factory-component" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * <attribute name="scope">
+ * <simpleType>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
+ * <enumeration value="singleton"/>
+ * <enumeration value="prototype"/>
+ * <enumeration value="bundle"/>
+ * </restriction>
+ * </simpleType>
+ * </attribute>
+ * <attribute name="lazy-init" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tlazy-init" />
+ * <anyAttribute processContents='lax' namespace='##other'/>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tbean
+ extends Tcomponent
+{
+
+ protected Tdescription description;
+ protected List<Object> argumentOrPropertyOrAny;
+ protected String clazz;
+ 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.
+ *
+ * @return
+ * possible object is
+ * {@link Tdescription }
+ *
+ */
+ public Tdescription getDescription() {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tdescription }
+ *
+ */
+ public void setDescription(Tdescription 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 clazz property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getClazz() {
+ return clazz;
+ }
+
+ /**
+ * Sets the value of the clazz property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setClazz(String value) {
+ this.clazz = 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;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tbean.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tblueprint.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tblueprint.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tblueprint.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,293 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.math.BigInteger;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import javax.xml.namespace.QName;
+
+
+/**
+ * <p>Java class for Tblueprint complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tblueprint">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tdescription" minOccurs="0"/>
+ * <element name="type-converters" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Ttype-converters" minOccurs="0"/>
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}allComponents"/>
+ * </choice>
+ * </sequence>
+ * <attribute name="default-lazy-init" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tlazy-init" default="false" />
+ * <attribute name="default-init-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
+ * <attribute name="default-destroy-method" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
+ * <attribute name="default-timeout" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Ttimeout" default="300000" />
+ * <attribute name="default-availability" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tavailability" default="mandatory" />
+ * <anyAttribute processContents='lax' namespace='##other'/>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tblueprint {
+
+ protected Tdescription description;
+ protected TtypeConverters typeConverters;
+ protected List<Object> serviceOrRefListOrRefSet;
+ protected Boolean defaultLazyInit;
+ protected String defaultInitMethod;
+ protected String defaultDestroyMethod;
+ protected BigInteger defaultTimeout;
+ protected Tavailability defaultAvailability;
+ private Map<QName, String> otherAttributes = new HashMap<QName, String>();
+
+ /**
+ * Gets the value of the description property.
+ *
+ * @return
+ * possible object is
+ * {@link Tdescription }
+ *
+ */
+ public Tdescription getDescription() {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tdescription }
+ *
+ */
+ public void setDescription(Tdescription value) {
+ this.description = value;
+ }
+
+ /**
+ * Gets the value of the typeConverters property.
+ *
+ * @return
+ * possible object is
+ * {@link TtypeConverters }
+ *
+ */
+ public TtypeConverters getTypeConverters() {
+ return typeConverters;
+ }
+
+ /**
+ * Sets the value of the typeConverters property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TtypeConverters }
+ *
+ */
+ public void setTypeConverters(TtypeConverters value) {
+ this.typeConverters = value;
+ }
+
+ /**
+ * Gets the value of the serviceOrRefListOrRefSet 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 serviceOrRefListOrRefSet property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getServiceOrRefListOrRefSet().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JAXBElement }{@code <}{@link TrefCollection }{@code >}
+ * {@link JAXBElement }{@code <}{@link Treference }{@code >}
+ * {@link JAXBElement }{@code <}{@link Tservice }{@code >}
+ * {@link JAXBElement }{@code <}{@link TrefCollection }{@code >}
+ * {@link JAXBElement }{@code <}{@link Tref }{@code >}
+ * {@link Object }
+ * {@link JAXBElement }{@code <}{@link Tbean }{@code >}
+ *
+ *
+ */
+ public List<Object> getServiceOrRefListOrRefSet() {
+ if (serviceOrRefListOrRefSet == null) {
+ serviceOrRefListOrRefSet = new ArrayList<Object>();
+ }
+ return this.serviceOrRefListOrRefSet;
+ }
+
+ /**
+ * Gets the value of the defaultLazyInit property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public boolean isDefaultLazyInit() {
+ if (defaultLazyInit == null) {
+ return false;
+ } else {
+ return defaultLazyInit;
+ }
+ }
+
+ /**
+ * Sets the value of the defaultLazyInit property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setDefaultLazyInit(Boolean value) {
+ this.defaultLazyInit = value;
+ }
+
+ /**
+ * Gets the value of the defaultInitMethod property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDefaultInitMethod() {
+ return defaultInitMethod;
+ }
+
+ /**
+ * Sets the value of the defaultInitMethod property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDefaultInitMethod(String value) {
+ this.defaultInitMethod = value;
+ }
+
+ /**
+ * Gets the value of the defaultDestroyMethod property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDefaultDestroyMethod() {
+ return defaultDestroyMethod;
+ }
+
+ /**
+ * Sets the value of the defaultDestroyMethod property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDefaultDestroyMethod(String value) {
+ this.defaultDestroyMethod = value;
+ }
+
+ /**
+ * Gets the value of the defaultTimeout property.
+ *
+ * @return
+ * possible object is
+ * {@link BigInteger }
+ *
+ */
+ public BigInteger getDefaultTimeout() {
+ if (defaultTimeout == null) {
+ return new BigInteger("300000");
+ } else {
+ return defaultTimeout;
+ }
+ }
+
+ /**
+ * Sets the value of the defaultTimeout property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BigInteger }
+ *
+ */
+ public void setDefaultTimeout(BigInteger value) {
+ this.defaultTimeout = value;
+ }
+
+ /**
+ * Gets the value of the defaultAvailability property.
+ *
+ * @return
+ * possible object is
+ * {@link Tavailability }
+ *
+ */
+ public Tavailability getDefaultAvailability() {
+ if (defaultAvailability == null) {
+ return Tavailability.MANDATORY;
+ } else {
+ return defaultAvailability;
+ }
+ }
+
+ /**
+ * Sets the value of the defaultAvailability property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tavailability }
+ *
+ */
+ public void setDefaultAvailability(Tavailability value) {
+ this.defaultAvailability = 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;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tblueprint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcollection.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcollection.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcollection.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,87 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * Tcollection is the base schema type for different ordered collection
+ * types. This is shared between the <array>, <list>, and <set> elements.
+ *
+ *
+ *
+ * <p>Java class for Tcollection complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tcollection">
+ * <complexContent>
+ * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TtypedCollection">
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value" maxOccurs="unbounded" minOccurs="0"/>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tcollection
+ extends TtypedCollection
+{
+ protected List<Object> value;
+
+ /**
+ * Gets the value of the value 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 value property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getValue().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JAXBElement }{@code <}{@link Tvalue }{@code >}
+ * {@link JAXBElement }{@code <}{@link Tservice }{@code >}
+ * {@link JAXBElement }{@code <}{@link Tref }{@code >}
+ * {@link JAXBElement }{@code <}{@link Treference }{@code >}
+ * {@link JAXBElement }{@code <}{@link Tref }{@code >}
+ * {@link JAXBElement }{@code <}{@link Tmap }{@code >}
+ * {@link JAXBElement }{@code <}{@link Tbean }{@code >}
+ * {@link JAXBElement }{@code <}{@link Tnull }{@code >}
+ * {@link JAXBElement }{@code <}{@link TrefCollection }{@code >}
+ * {@link JAXBElement }{@code <}{@link TrefCollection }{@code >}
+ * {@link JAXBElement }{@code <}{@link Tcollection }{@code >}
+ * {@link Object }
+ * {@link JAXBElement }{@code <}{@link Tcollection }{@code >}
+ * {@link JAXBElement }{@code <}{@link Tcollection }{@code >}
+ * {@link JAXBElement }{@code <}{@link Tprops }{@code >}
+ *
+ *
+ */
+ public List<Object> getValue() {
+ if (value == null) {
+ value = new ArrayList<Object>();
+ }
+ return this.value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcollection.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomparator.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomparator.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomparator.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,140 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * <p>Java class for Tcomparator complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tcomparator">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}targetComponent"/>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tcomparator {
+
+ protected Tbean bean;
+ protected Treference reference;
+ protected Tref refFIXME;
+ protected List<Object> any;
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Tbean }
+ *
+ */
+ public Tbean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tbean }
+ *
+ */
+ public void setBean(Tbean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the reference property.
+ *
+ * @return
+ * possible object is
+ * {@link Treference }
+ *
+ */
+ public Treference getReference() {
+ return reference;
+ }
+
+ /**
+ * Sets the value of the reference property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Treference }
+ *
+ */
+ public void setReference(Treference value) {
+ this.reference = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomparator.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomponent.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomponent.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomponent.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,69 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+/**
+ *
+ *
+ *
+ * The Tcomponent 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 Tcomponent 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.
+ *
+ *
+ *
+ * <p>Java class for Tcomponent complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tcomponent">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public abstract class Tcomponent {
+
+ protected String id;
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tcomponent.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tdescription.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tdescription.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tdescription.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,78 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * A generic <description> element type to allow documentation to added to the
+ * blueprint configuration.
+ *
+ *
+ *
+ * <p>Java class for Tdescription complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tdescription">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * </choice>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tdescription {
+
+ protected List<String> content;
+
+ /**
+ *
+ *
+ * A generic <description> element type to allow documentation to added to the
+ * blueprint configuration.
+ *
+ * Gets the value of the content 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 content property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getContent().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getContent() {
+ if (content == null) {
+ content = new ArrayList<String>();
+ }
+ return this.content;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tdescription.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tinterfaces.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tinterfaces.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tinterfaces.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,74 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * The type definition for the <interfaces> element used for <service>,
+ * <reference>, <ref-set>, and <ref-list>;
+ *
+ *
+ *
+ * <p>Java class for Tinterfaces complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tinterfaces">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded">
+ * <element name="value" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TinterfaceValue"/>
+ * </choice>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tinterfaces {
+
+ protected List<String> value;
+
+ /**
+ * Gets the value of the value 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 value property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getValue().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getValue() {
+ if (value == null) {
+ value = new ArrayList<String>();
+ }
+ return this.value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tinterfaces.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tkey.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tkey.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tkey.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,398 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * The Tkey type defines the element types that are permitted
+ * for Map key situations. These can be any of the "value"
+ * types other than the <null> element.
+ *
+ *
+ *
+ * <p>Java class for Tkey complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tkey">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}nonNullValue"/>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tkey {
+
+ protected Tservice service;
+ protected TrefCollection refList;
+ protected TrefCollection refSet;
+ protected Tbean bean;
+ protected Treference reference;
+ protected Tref refFIXME;
+ protected List<Object> any;
+ protected Tref idref;
+ protected Tvalue value;
+ protected Tcollection list;
+ protected Tcollection set;
+ protected Tmap map;
+ protected Tcollection array;
+ protected Tprops props;
+
+ /**
+ * Gets the value of the service property.
+ *
+ * @return
+ * possible object is
+ * {@link Tservice }
+ *
+ */
+ public Tservice getService() {
+ return service;
+ }
+
+ /**
+ * Sets the value of the service property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tservice }
+ *
+ */
+ public void setService(Tservice value) {
+ this.service = value;
+ }
+
+ /**
+ * Gets the value of the refList property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefList() {
+ return refList;
+ }
+
+ /**
+ * Sets the value of the refList property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefList(TrefCollection value) {
+ this.refList = value;
+ }
+
+ /**
+ * Gets the value of the refSet property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefSet() {
+ return refSet;
+ }
+
+ /**
+ * Sets the value of the refSet property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefSet(TrefCollection value) {
+ this.refSet = value;
+ }
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Tbean }
+ *
+ */
+ public Tbean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tbean }
+ *
+ */
+ public void setBean(Tbean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the reference property.
+ *
+ * @return
+ * possible object is
+ * {@link Treference }
+ *
+ */
+ public Treference getReference() {
+ return reference;
+ }
+
+ /**
+ * Sets the value of the reference property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Treference }
+ *
+ */
+ public void setReference(Treference value) {
+ this.reference = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the idref property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getIdref() {
+ return idref;
+ }
+
+ /**
+ * Sets the value of the idref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setIdref(Tref value) {
+ this.idref = value;
+ }
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link Tvalue }
+ *
+ */
+ public Tvalue getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tvalue }
+ *
+ */
+ public void setValue(Tvalue value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the list property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getList() {
+ return list;
+ }
+
+ /**
+ * Sets the value of the list property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setList(Tcollection value) {
+ this.list = value;
+ }
+
+ /**
+ * Gets the value of the set property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getSet() {
+ return set;
+ }
+
+ /**
+ * Sets the value of the set property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setSet(Tcollection value) {
+ this.set = value;
+ }
+
+ /**
+ * Gets the value of the map property.
+ *
+ * @return
+ * possible object is
+ * {@link Tmap }
+ *
+ */
+ public Tmap getMap() {
+ return map;
+ }
+
+ /**
+ * Sets the value of the map property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tmap }
+ *
+ */
+ public void setMap(Tmap value) {
+ this.map = value;
+ }
+
+ /**
+ * Gets the value of the array property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getArray() {
+ return array;
+ }
+
+ /**
+ * Sets the value of the array property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setArray(Tcollection value) {
+ this.array = value;
+ }
+
+ /**
+ * Gets the value of the props property.
+ *
+ * @return
+ * possible object is
+ * {@link Tprops }
+ *
+ */
+ public Tprops getProps() {
+ return props;
+ }
+
+ /**
+ * Sets the value of the props property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tprops }
+ *
+ */
+ public void setProps(Tprops value) {
+ this.props = value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tkey.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tmap.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tmap.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tmap.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,104 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * Tmap is the base type used for <map> elements. A map may have a
+ * default value type specified, so it inherits from the TtypeCollection
+ * type. A key type can also be specified, and the map members are
+ * created from the entry elements, which require a key/value pair.
+ *
+ *
+ *
+ * <p>Java class for Tmap complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tmap">
+ * <complexContent>
+ * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TtypedCollection">
+ * <sequence>
+ * <element name="entry" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TmapEntry" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="key-type" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tmap
+ extends TtypedCollection
+{
+
+ protected List<TmapEntry> entry;
+ protected String keyType;
+
+ /**
+ * Gets the value of the entry 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 entry property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getEntry().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link TmapEntry }
+ *
+ *
+ */
+ public List<TmapEntry> getEntry() {
+ if (entry == null) {
+ entry = new ArrayList<TmapEntry>();
+ }
+ return this.entry;
+ }
+
+ /**
+ * Gets the value of the keyType property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getKeyType() {
+ return keyType;
+ }
+
+ /**
+ * Sets the value of the keyType property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setKeyType(String value) {
+ this.keyType = value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tmap.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TmapEntry.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TmapEntry.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TmapEntry.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,558 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * TmapEntry is used for <entry> elements nested inside of a <map> element.
+ * Each <entry> instance defines a key/value pair that will be added to the
+ * Map. Both the keys and values may be arbitrary types. Keys must not
+ * be <null> but <null> is permitted for entry values. A default type
+ * can be specified for both the keys and the values, but individual keys
+ * or values can override the default.
+ *
+ *
+ *
+ * <p>Java class for TmapEntry complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="TmapEntry">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="keyFIXME" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tkey" minOccurs="0"/>
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value"/>
+ * </sequence>
+ * <attribute name="key" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
+ * <attribute name="key-ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * <attribute name="valueFIXME" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
+ * <attribute name="value-ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class TmapEntry {
+
+ protected Tkey keyFIXME;
+ protected Tservice service;
+ protected TrefCollection refList;
+ protected TrefCollection refSet;
+ protected Tbean bean;
+ protected Treference reference;
+ protected Tref refFIXME;
+ protected List<Object> any;
+ protected Tref idref;
+ protected Tvalue value;
+ protected Tcollection list;
+ protected Tcollection set;
+ protected Tmap map;
+ protected Tcollection array;
+ protected Tprops props;
+ protected Tnull _null;
+ protected String key;
+ protected String keyRef;
+ protected String valueFIXME;
+ protected String valueRef;
+
+ /**
+ * Gets the value of the keyFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tkey }
+ *
+ */
+ public Tkey getKeyFIXME() {
+ return keyFIXME;
+ }
+
+ /**
+ * Sets the value of the keyFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tkey }
+ *
+ */
+ public void setKeyFIXME(Tkey value) {
+ this.keyFIXME = value;
+ }
+
+ /**
+ * Gets the value of the service property.
+ *
+ * @return
+ * possible object is
+ * {@link Tservice }
+ *
+ */
+ public Tservice getService() {
+ return service;
+ }
+
+ /**
+ * Sets the value of the service property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tservice }
+ *
+ */
+ public void setService(Tservice value) {
+ this.service = value;
+ }
+
+ /**
+ * Gets the value of the refList property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefList() {
+ return refList;
+ }
+
+ /**
+ * Sets the value of the refList property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefList(TrefCollection value) {
+ this.refList = value;
+ }
+
+ /**
+ * Gets the value of the refSet property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefSet() {
+ return refSet;
+ }
+
+ /**
+ * Sets the value of the refSet property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefSet(TrefCollection value) {
+ this.refSet = value;
+ }
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Tbean }
+ *
+ */
+ public Tbean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tbean }
+ *
+ */
+ public void setBean(Tbean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the reference property.
+ *
+ * @return
+ * possible object is
+ * {@link Treference }
+ *
+ */
+ public Treference getReference() {
+ return reference;
+ }
+
+ /**
+ * Sets the value of the reference property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Treference }
+ *
+ */
+ public void setReference(Treference value) {
+ this.reference = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the idref property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getIdref() {
+ return idref;
+ }
+
+ /**
+ * Sets the value of the idref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setIdref(Tref value) {
+ this.idref = value;
+ }
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link Tvalue }
+ *
+ */
+ public Tvalue getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tvalue }
+ *
+ */
+ public void setValue(Tvalue value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the list property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getList() {
+ return list;
+ }
+
+ /**
+ * Sets the value of the list property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setList(Tcollection value) {
+ this.list = value;
+ }
+
+ /**
+ * Gets the value of the set property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getSet() {
+ return set;
+ }
+
+ /**
+ * Sets the value of the set property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setSet(Tcollection value) {
+ this.set = value;
+ }
+
+ /**
+ * Gets the value of the map property.
+ *
+ * @return
+ * possible object is
+ * {@link Tmap }
+ *
+ */
+ public Tmap getMap() {
+ return map;
+ }
+
+ /**
+ * Sets the value of the map property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tmap }
+ *
+ */
+ public void setMap(Tmap value) {
+ this.map = value;
+ }
+
+ /**
+ * Gets the value of the array property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getArray() {
+ return array;
+ }
+
+ /**
+ * Sets the value of the array property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setArray(Tcollection value) {
+ this.array = value;
+ }
+
+ /**
+ * Gets the value of the props property.
+ *
+ * @return
+ * possible object is
+ * {@link Tprops }
+ *
+ */
+ public Tprops getProps() {
+ return props;
+ }
+
+ /**
+ * Sets the value of the props property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tprops }
+ *
+ */
+ public void setProps(Tprops value) {
+ this.props = value;
+ }
+
+ /**
+ * Gets the value of the null property.
+ *
+ * @return
+ * possible object is
+ * {@link Tnull }
+ *
+ */
+ public Tnull getNull() {
+ return _null;
+ }
+
+ /**
+ * Sets the value of the null property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tnull }
+ *
+ */
+ public void setNull(Tnull value) {
+ this._null = value;
+ }
+
+ /**
+ * Gets the value of the key property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * Sets the value of the key property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setKey(String value) {
+ this.key = value;
+ }
+
+ /**
+ * Gets the value of the keyRef property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getKeyRef() {
+ return keyRef;
+ }
+
+ /**
+ * Sets the value of the keyRef property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setKeyRef(String value) {
+ this.keyRef = value;
+ }
+
+ /**
+ * Gets the value of the valueFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValueFIXME() {
+ return valueFIXME;
+ }
+
+ /**
+ * Sets the value of the valueFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValueFIXME(String value) {
+ this.valueFIXME = value;
+ }
+
+ /**
+ * Gets the value of the valueRef property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValueRef() {
+ return valueRef;
+ }
+
+ /**
+ * Sets the value of the valueRef property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValueRef(String value) {
+ this.valueRef = value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TmapEntry.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tnull.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tnull.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tnull.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,37 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+
+/**
+ *
+ *
+ * The definition for a <null> value type.
+ *
+ *
+ *
+ * <p>Java class for Tnull complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tnull">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tnull {
+
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tnull.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tprop.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tprop.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tprop.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,121 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+/**
+ *
+ *
+ * Tprop is a single property element for a <props> value type. The property
+ * value can be specified using either the attribute, or as value data for
+ * the property element.
+ *
+ *
+ *
+ * <p>Java class for Tprop complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tprop">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="key" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
+ * <attribute name="value" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tprop {
+
+ protected String content;
+ protected String key;
+ protected String value;
+
+ /**
+ *
+ *
+ * Tprop is a single property element for a <props> value type. The property
+ * value can be specified using either the attribute, or as value data for
+ * the property element.
+ *
+ *
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getContent() {
+ return content;
+ }
+
+ /**
+ * Sets the value of the content property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setContent(String value) {
+ this.content = value;
+ }
+
+ /**
+ * Gets the value of the key property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * Sets the value of the key property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setKey(String value) {
+ this.key = value;
+ }
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tprop.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tproperty.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tproperty.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tproperty.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,534 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * A property that will be injected into a created <bean>
+ * component. The <property> elements correspond to named
+ * JavaBean setting methods for a created bean object.
+ *
+ * The value and ref attributes are convenience shortcuts to make
+ * the <argument> tag easier to code. A fuller set of injected
+ * values and types can be specified using one of the "value"
+ * type elements.
+ *
+ *
+ *
+ * <p>Java class for Tproperty complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tproperty">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tdescription" minOccurs="0"/>
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value"/>
+ * </sequence>
+ * <attribute name="name" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
+ * <attribute name="ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * <attribute name="valueFIXME" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tproperty {
+
+ protected Tdescription description;
+ protected Tservice service;
+ protected TrefCollection refList;
+ protected TrefCollection refSet;
+ protected Tbean bean;
+ protected Treference reference;
+ protected Tref refFIXME;
+ protected List<Object> any;
+ protected Tref idref;
+ protected Tvalue value;
+ protected Tcollection list;
+ protected Tcollection set;
+ protected Tmap map;
+ protected Tcollection array;
+ protected Tprops props;
+ protected Tnull _null;
+ protected String name;
+ protected String ref;
+ protected String valueFIXME;
+
+ /**
+ * Gets the value of the description property.
+ *
+ * @return
+ * possible object is
+ * {@link Tdescription }
+ *
+ */
+ public Tdescription getDescription() {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tdescription }
+ *
+ */
+ public void setDescription(Tdescription value) {
+ this.description = value;
+ }
+
+ /**
+ * Gets the value of the service property.
+ *
+ * @return
+ * possible object is
+ * {@link Tservice }
+ *
+ */
+ public Tservice getService() {
+ return service;
+ }
+
+ /**
+ * Sets the value of the service property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tservice }
+ *
+ */
+ public void setService(Tservice value) {
+ this.service = value;
+ }
+
+ /**
+ * Gets the value of the refList property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefList() {
+ return refList;
+ }
+
+ /**
+ * Sets the value of the refList property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefList(TrefCollection value) {
+ this.refList = value;
+ }
+
+ /**
+ * Gets the value of the refSet property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefSet() {
+ return refSet;
+ }
+
+ /**
+ * Sets the value of the refSet property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefSet(TrefCollection value) {
+ this.refSet = value;
+ }
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Tbean }
+ *
+ */
+ public Tbean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tbean }
+ *
+ */
+ public void setBean(Tbean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the reference property.
+ *
+ * @return
+ * possible object is
+ * {@link Treference }
+ *
+ */
+ public Treference getReference() {
+ return reference;
+ }
+
+ /**
+ * Sets the value of the reference property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Treference }
+ *
+ */
+ public void setReference(Treference value) {
+ this.reference = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the idref property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getIdref() {
+ return idref;
+ }
+
+ /**
+ * Sets the value of the idref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setIdref(Tref value) {
+ this.idref = value;
+ }
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link Tvalue }
+ *
+ */
+ public Tvalue getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tvalue }
+ *
+ */
+ public void setValue(Tvalue value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the list property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getList() {
+ return list;
+ }
+
+ /**
+ * Sets the value of the list property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setList(Tcollection value) {
+ this.list = value;
+ }
+
+ /**
+ * Gets the value of the set property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getSet() {
+ return set;
+ }
+
+ /**
+ * Sets the value of the set property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setSet(Tcollection value) {
+ this.set = value;
+ }
+
+ /**
+ * Gets the value of the map property.
+ *
+ * @return
+ * possible object is
+ * {@link Tmap }
+ *
+ */
+ public Tmap getMap() {
+ return map;
+ }
+
+ /**
+ * Sets the value of the map property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tmap }
+ *
+ */
+ public void setMap(Tmap value) {
+ this.map = value;
+ }
+
+ /**
+ * Gets the value of the array property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getArray() {
+ return array;
+ }
+
+ /**
+ * Sets the value of the array property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setArray(Tcollection value) {
+ this.array = value;
+ }
+
+ /**
+ * Gets the value of the props property.
+ *
+ * @return
+ * possible object is
+ * {@link Tprops }
+ *
+ */
+ public Tprops getProps() {
+ return props;
+ }
+
+ /**
+ * Sets the value of the props property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tprops }
+ *
+ */
+ public void setProps(Tprops value) {
+ this.props = value;
+ }
+
+ /**
+ * Gets the value of the null property.
+ *
+ * @return
+ * possible object is
+ * {@link Tnull }
+ *
+ */
+ public Tnull getNull() {
+ return _null;
+ }
+
+ /**
+ * Sets the value of the null property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tnull }
+ *
+ */
+ public void setNull(Tnull value) {
+ this._null = value;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the ref property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRef() {
+ return ref;
+ }
+
+ /**
+ * Sets the value of the ref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRef(String value) {
+ this.ref = value;
+ }
+
+ /**
+ * Gets the value of the valueFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValueFIXME() {
+ return valueFIXME;
+ }
+
+ /**
+ * Sets the value of the valueFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValueFIXME(String value) {
+ this.valueFIXME = value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tproperty.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tprops.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tprops.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tprops.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,74 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * Tprops is the type used by the <props> value element. The prop elements
+ * are pairs of string-valued keys and values.
+ *
+ *
+ *
+ * <p>Java class for Tprops complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tprops">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="prop" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tprop" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tprops {
+
+ protected List<Tprop> prop;
+
+ /**
+ * Gets the value of the prop 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 prop property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getProp().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Tprop }
+ *
+ *
+ */
+ public List<Tprop> getProp() {
+ if (prop == null) {
+ prop = new ArrayList<Tprop>();
+ }
+ return this.prop;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tprops.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tref.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tref.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tref.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,63 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+/**
+ *
+ *
+ * Tref is the type used for <ref> elements. This specifies a required
+ * component id for the reference component.
+ *
+ *
+ *
+ * <p>Java class for Tref complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tref">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="component" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tref {
+
+ protected String component;
+
+ /**
+ * Gets the value of the component property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getComponent() {
+ return component;
+ }
+
+ /**
+ * Sets the value of the component property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setComponent(String value) {
+ this.component = value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tref.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TrefCollection.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TrefCollection.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TrefCollection.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,163 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+
+/**
+ *
+ *
+ * The Tref-collection builds in the characteristics of the
+ * TserviceReference type to define characteristics of the <ref-set>
+ * and <ref-list> elements. This adds in the characteristics that
+ * only apply to collections of references (e.g., sorting).
+ *
+ *
+ *
+ * <p>Java class for Tref-collection complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tref-collection">
+ * <complexContent>
+ * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TserviceReference">
+ * <sequence>
+ * <element name="comparator" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tcomparator" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="comparator-ref" type="{http://www.w3.org/2001/XMLSchema}token" />
+ * <attribute name="member-type">
+ * <simpleType>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
+ * <enumeration value="service-instance"/>
+ * <enumeration value="service-reference"/>
+ * </restriction>
+ * </simpleType>
+ * </attribute>
+ * <attribute name="ordering-basis">
+ * <simpleType>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
+ * <enumeration value="service"/>
+ * <enumeration value="service-reference"/>
+ * </restriction>
+ * </simpleType>
+ * </attribute>
+ * <anyAttribute processContents='lax' namespace='##other'/>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class TrefCollection
+ extends TserviceReference
+{
+
+ protected Tcomparator comparator;
+ protected String comparatorRef;
+ protected String memberType;
+ protected String orderingBasis;
+
+ /**
+ * Gets the value of the comparator property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcomparator }
+ *
+ */
+ public Tcomparator getComparator() {
+ return comparator;
+ }
+
+ /**
+ * Sets the value of the comparator property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcomparator }
+ *
+ */
+ public void setComparator(Tcomparator value) {
+ this.comparator = value;
+ }
+
+ /**
+ * Gets the value of the comparatorRef property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getComparatorRef() {
+ return comparatorRef;
+ }
+
+ /**
+ * Sets the value of the comparatorRef property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setComparatorRef(String value) {
+ this.comparatorRef = value;
+ }
+
+ /**
+ * Gets the value of the memberType property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMemberType() {
+ return memberType;
+ }
+
+ /**
+ * Sets the value of the memberType property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMemberType(String value) {
+ this.memberType = value;
+ }
+
+ /**
+ * Gets the value of the orderingBasis property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getOrderingBasis() {
+ return orderingBasis;
+ }
+
+ /**
+ * Sets the value of the orderingBasis property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setOrderingBasis(String value) {
+ this.orderingBasis = value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TrefCollection.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Treference.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Treference.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Treference.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,72 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.math.BigInteger;
+
+
+/**
+ *
+ *
+ * The Treference type defines the <reference> element. These
+ * are instances of the TserviceReference type, with the addition
+ * of a timeout attribute. If the timeout is not specified,
+ * the default-timeout value is inherited from the encapsulating
+ * <blueprint> definition.
+ *
+ *
+ *
+ * <p>Java class for Treference complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Treference">
+ * <complexContent>
+ * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TserviceReference">
+ * <attribute name="timeout" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Ttimeout" />
+ * <anyAttribute processContents='lax' namespace='##other'/>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Treference
+ extends TserviceReference
+{
+
+ protected BigInteger timeout;
+
+ /**
+ * Gets the value of the timeout property.
+ *
+ * @return
+ * possible object is
+ * {@link BigInteger }
+ *
+ */
+ public BigInteger getTimeout() {
+ return timeout;
+ }
+
+ /**
+ * Sets the value of the timeout property.
+ *
+ * @param value
+ * allowed object is
+ * {@link BigInteger }
+ *
+ */
+ public void setTimeout(BigInteger value) {
+ this.timeout = value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Treference.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TregistrationListener.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TregistrationListener.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TregistrationListener.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,230 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ *
+ *
+ * A registration listener definition. The target registration listener
+ * can be either a <ref> to a <bean> or <service> component, or an inline
+ * <bean> or <service> component definition. The registration-method and
+ * unregistration-method attributes define the methods that will be called
+ * for the respective events.
+ *
+ * For the very common case of using a <ref> to a listener component, the
+ * ref attribute may also be used as a shortcut.
+ *
+ *
+ *
+ * <p>Java class for TregistrationListener complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="TregistrationListener">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}targetComponent"/>
+ * <attribute name="ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * <attribute name="registration-method" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
+ * <attribute name="unregistration-method" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tmethod" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class TregistrationListener {
+
+ protected Tbean bean;
+ protected Treference reference;
+ protected Tref refFIXME;
+ protected List<Object> any;
+ protected String ref;
+ protected String registrationMethod;
+ protected String unregistrationMethod;
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Tbean }
+ *
+ */
+ public Tbean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tbean }
+ *
+ */
+ public void setBean(Tbean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the reference property.
+ *
+ * @return
+ * possible object is
+ * {@link Treference }
+ *
+ */
+ public Treference getReference() {
+ return reference;
+ }
+
+ /**
+ * Sets the value of the reference property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Treference }
+ *
+ */
+ public void setReference(Treference value) {
+ this.reference = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the ref property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRef() {
+ return ref;
+ }
+
+ /**
+ * Sets the value of the ref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRef(String value) {
+ this.ref = value;
+ }
+
+ /**
+ * Gets the value of the registrationMethod property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRegistrationMethod() {
+ return registrationMethod;
+ }
+
+ /**
+ * Sets the value of the registrationMethod property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRegistrationMethod(String value) {
+ this.registrationMethod = value;
+ }
+
+ /**
+ * Gets the value of the unregistrationMethod property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getUnregistrationMethod() {
+ return unregistrationMethod;
+ }
+
+ /**
+ * Sets the value of the unregistrationMethod property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setUnregistrationMethod(String value) {
+ this.unregistrationMethod = value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TregistrationListener.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tservice.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tservice.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tservice.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,396 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import javax.xml.namespace.QName;
+import org.w3c.dom.Element;
+
+
+/**
+ *
+ *
+ * Tservice is the type for services exported by this blueprint bundle.
+ * Services are sourced by either a <ref> to a <bean> component or an
+ * <inline> bean component.
+ *
+ *
+ *
+ * <p>Java class for Tservice complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tservice">
+ * <complexContent>
+ * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tcomponent">
+ * <sequence>
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}serviceElements"/>
+ * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="interface" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
+ * <attribute name="ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * <attribute name="depends-on" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TdependsOn" />
+ * <attribute name="auto-export" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TautoExportModes" default="disabled" />
+ * <attribute name="ranking" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+ * <anyAttribute processContents='lax' namespace='##other'/>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tservice
+ extends Tcomponent
+{
+
+ protected Tdescription description;
+ protected Tinterfaces interfaces;
+ protected TserviceProperties serviceProperties;
+ protected List<TregistrationListener> registrationListener;
+ protected Tbean bean;
+ protected Tref refFIXME;
+ protected List<Object> any;
+ protected String _interface;
+ protected String ref;
+ protected String dependsOn;
+ protected TautoExportModes autoExport;
+ protected Integer ranking;
+ private Map<QName, String> otherAttributes = new HashMap<QName, String>();
+
+ /**
+ * Gets the value of the description property.
+ *
+ * @return
+ * possible object is
+ * {@link Tdescription }
+ *
+ */
+ public Tdescription getDescription() {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tdescription }
+ *
+ */
+ public void setDescription(Tdescription value) {
+ this.description = value;
+ }
+
+ /**
+ * Gets the value of the interfaces property.
+ *
+ * @return
+ * possible object is
+ * {@link Tinterfaces }
+ *
+ */
+ public Tinterfaces getInterfaces() {
+ return interfaces;
+ }
+
+ /**
+ * Sets the value of the interfaces property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tinterfaces }
+ *
+ */
+ public void setInterfaces(Tinterfaces value) {
+ this.interfaces = value;
+ }
+
+ /**
+ * Gets the value of the serviceProperties property.
+ *
+ * @return
+ * possible object is
+ * {@link TserviceProperties }
+ *
+ */
+ public TserviceProperties getServiceProperties() {
+ return serviceProperties;
+ }
+
+ /**
+ * Sets the value of the serviceProperties property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TserviceProperties }
+ *
+ */
+ public void setServiceProperties(TserviceProperties value) {
+ this.serviceProperties = value;
+ }
+
+ /**
+ * Gets the value of the registrationListener 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 registrationListener property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getRegistrationListener().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link TregistrationListener }
+ *
+ *
+ */
+ public List<TregistrationListener> getRegistrationListener() {
+ if (registrationListener == null) {
+ registrationListener = new ArrayList<TregistrationListener>();
+ }
+ return this.registrationListener;
+ }
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Tbean }
+ *
+ */
+ public Tbean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tbean }
+ *
+ */
+ public void setBean(Tbean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ * {@link Element }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the interface property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getInterface() {
+ return _interface;
+ }
+
+ /**
+ * Sets the value of the interface property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setInterface(String value) {
+ this._interface = value;
+ }
+
+ /**
+ * Gets the value of the ref property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRef() {
+ return ref;
+ }
+
+ /**
+ * Sets the value of the ref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRef(String value) {
+ this.ref = 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 autoExport property.
+ *
+ * @return
+ * possible object is
+ * {@link TautoExportModes }
+ *
+ */
+ public TautoExportModes getAutoExport() {
+ if (autoExport == null) {
+ return TautoExportModes.DISABLED;
+ } else {
+ return autoExport;
+ }
+ }
+
+ /**
+ * Sets the value of the autoExport property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TautoExportModes }
+ *
+ */
+ public void setAutoExport(TautoExportModes value) {
+ this.autoExport = value;
+ }
+
+ /**
+ * Gets the value of the ranking property.
+ *
+ * @return
+ * possible object is
+ * {@link Integer }
+ *
+ */
+ public int getRanking() {
+ if (ranking == null) {
+ return 0;
+ } else {
+ return ranking;
+ }
+ }
+
+ /**
+ * Sets the value of the ranking property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Integer }
+ *
+ */
+ public void setRanking(Integer value) {
+ this.ranking = 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;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tservice.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceProperties.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceProperties.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceProperties.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,75 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ *
+ *
+ * TserviceProperty is used for <service-properties> elements.
+ * The syntax is similar to what is defined for <map>, but keys must be
+ * string values and there are no type defaults that can be specified.
+ * created from the entry elements, which require a key/value pair.
+ *
+ *
+ *
+ * <p>Java class for TserviceProperties complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="TserviceProperties">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="entry" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TservicePropertyEntry" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class TserviceProperties {
+
+ protected List<TservicePropertyEntry> entry;
+
+ /**
+ * Gets the value of the entry 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 entry property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getEntry().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link TservicePropertyEntry }
+ *
+ *
+ */
+ public List<TservicePropertyEntry> getEntry() {
+ if (entry == null) {
+ entry = new ArrayList<TservicePropertyEntry>();
+ }
+ return this.entry;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceProperties.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TservicePropertyEntry.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TservicePropertyEntry.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TservicePropertyEntry.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,476 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ *
+ *
+ * TservicePropertyEntry is an entry value used for the <service-properties>
+ * element. This does not allow a child <key> element and there are no
+ * key-ref or value-ref attributes.
+ *
+ *
+ *
+ * <p>Java class for TservicePropertyEntry complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="TservicePropertyEntry">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}value"/>
+ * </sequence>
+ * <attribute name="key" use="required" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
+ * <attribute name="valueFIXME" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TstringValue" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class TservicePropertyEntry {
+
+ protected Tservice service;
+ protected TrefCollection refList;
+ protected TrefCollection refSet;
+ protected Tbean bean;
+ protected Treference reference;
+ protected Tref refFIXME;
+ protected List<Object> any;
+ protected Tref idref;
+ protected Tvalue value;
+ protected Tcollection list;
+ protected Tcollection set;
+ protected Tmap map;
+ protected Tcollection array;
+ protected Tprops props;
+ protected Tnull _null;
+ protected String key;
+ protected String valueFIXME;
+
+ /**
+ * Gets the value of the service property.
+ *
+ * @return
+ * possible object is
+ * {@link Tservice }
+ *
+ */
+ public Tservice getService() {
+ return service;
+ }
+
+ /**
+ * Sets the value of the service property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tservice }
+ *
+ */
+ public void setService(Tservice value) {
+ this.service = value;
+ }
+
+ /**
+ * Gets the value of the refList property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefList() {
+ return refList;
+ }
+
+ /**
+ * Sets the value of the refList property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefList(TrefCollection value) {
+ this.refList = value;
+ }
+
+ /**
+ * Gets the value of the refSet property.
+ *
+ * @return
+ * possible object is
+ * {@link TrefCollection }
+ *
+ */
+ public TrefCollection getRefSet() {
+ return refSet;
+ }
+
+ /**
+ * Sets the value of the refSet property.
+ *
+ * @param value
+ * allowed object is
+ * {@link TrefCollection }
+ *
+ */
+ public void setRefSet(TrefCollection value) {
+ this.refSet = value;
+ }
+
+ /**
+ * Gets the value of the bean property.
+ *
+ * @return
+ * possible object is
+ * {@link Tbean }
+ *
+ */
+ public Tbean getBean() {
+ return bean;
+ }
+
+ /**
+ * Sets the value of the bean property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tbean }
+ *
+ */
+ public void setBean(Tbean value) {
+ this.bean = value;
+ }
+
+ /**
+ * Gets the value of the reference property.
+ *
+ * @return
+ * possible object is
+ * {@link Treference }
+ *
+ */
+ public Treference getReference() {
+ return reference;
+ }
+
+ /**
+ * Sets the value of the reference property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Treference }
+ *
+ */
+ public void setReference(Treference value) {
+ this.reference = value;
+ }
+
+ /**
+ * Gets the value of the refFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getRefFIXME() {
+ return refFIXME;
+ }
+
+ /**
+ * Sets the value of the refFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setRefFIXME(Tref value) {
+ this.refFIXME = value;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the idref property.
+ *
+ * @return
+ * possible object is
+ * {@link Tref }
+ *
+ */
+ public Tref getIdref() {
+ return idref;
+ }
+
+ /**
+ * Sets the value of the idref property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tref }
+ *
+ */
+ public void setIdref(Tref value) {
+ this.idref = value;
+ }
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link Tvalue }
+ *
+ */
+ public Tvalue getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tvalue }
+ *
+ */
+ public void setValue(Tvalue value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the list property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getList() {
+ return list;
+ }
+
+ /**
+ * Sets the value of the list property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setList(Tcollection value) {
+ this.list = value;
+ }
+
+ /**
+ * Gets the value of the set property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getSet() {
+ return set;
+ }
+
+ /**
+ * Sets the value of the set property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setSet(Tcollection value) {
+ this.set = value;
+ }
+
+ /**
+ * Gets the value of the map property.
+ *
+ * @return
+ * possible object is
+ * {@link Tmap }
+ *
+ */
+ public Tmap getMap() {
+ return map;
+ }
+
+ /**
+ * Sets the value of the map property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tmap }
+ *
+ */
+ public void setMap(Tmap value) {
+ this.map = value;
+ }
+
+ /**
+ * Gets the value of the array property.
+ *
+ * @return
+ * possible object is
+ * {@link Tcollection }
+ *
+ */
+ public Tcollection getArray() {
+ return array;
+ }
+
+ /**
+ * Sets the value of the array property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tcollection }
+ *
+ */
+ public void setArray(Tcollection value) {
+ this.array = value;
+ }
+
+ /**
+ * Gets the value of the props property.
+ *
+ * @return
+ * possible object is
+ * {@link Tprops }
+ *
+ */
+ public Tprops getProps() {
+ return props;
+ }
+
+ /**
+ * Sets the value of the props property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tprops }
+ *
+ */
+ public void setProps(Tprops value) {
+ this.props = value;
+ }
+
+ /**
+ * Gets the value of the null property.
+ *
+ * @return
+ * possible object is
+ * {@link Tnull }
+ *
+ */
+ public Tnull getNull() {
+ return _null;
+ }
+
+ /**
+ * Sets the value of the null property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tnull }
+ *
+ */
+ public void setNull(Tnull value) {
+ this._null = value;
+ }
+
+ /**
+ * Gets the value of the key property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * Sets the value of the key property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setKey(String value) {
+ this.key = value;
+ }
+
+ /**
+ * Gets the value of the valueFIXME property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValueFIXME() {
+ return valueFIXME;
+ }
+
+ /**
+ * Sets the value of the valueFIXME property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValueFIXME(String value) {
+ this.valueFIXME = value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TservicePropertyEntry.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,289 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import javax.xml.namespace.QName;
+import org.w3c.dom.Element;
+
+
+/**
+ *
+ *
+ * TserviceReference is the base element type used for <reference>,
+ * <ref-set>, and <ref-list> elements. This type defines all of the
+ * characteristics common to both sorts of references.
+ *
+ *
+ *
+ * <p>Java class for TserviceReference complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="TserviceReference">
+ * <complexContent>
+ * <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tcomponent">
+ * <sequence>
+ * <element name="description" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tdescription" minOccurs="0"/>
+ * <element name="interfaces" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tinterfaces" minOccurs="0"/>
+ * <element name="listener" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TReferenceListener" maxOccurs="unbounded" minOccurs="0"/>
+ * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="interface" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
+ * <attribute name="filter" type="{http://www.w3.org/2001/XMLSchema}normalizedString" />
+ * <attribute name="component-name" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
+ * <attribute name="availability" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tavailability" />
+ * <anyAttribute processContents='lax' namespace='##other'/>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class TserviceReference
+ extends Tcomponent
+{
+
+ protected Tdescription description;
+ protected Tinterfaces interfaces;
+ protected List<TReferenceListener> listener;
+ protected List<Object> any;
+ protected String _interface;
+ protected String filter;
+ protected String componentName;
+ protected Tavailability availability;
+ private Map<QName, String> otherAttributes = new HashMap<QName, String>();
+
+ /**
+ * Gets the value of the description property.
+ *
+ * @return
+ * possible object is
+ * {@link Tdescription }
+ *
+ */
+ public Tdescription getDescription() {
+ return description;
+ }
+
+ /**
+ * Sets the value of the description property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tdescription }
+ *
+ */
+ public void setDescription(Tdescription value) {
+ this.description = value;
+ }
+
+ /**
+ * Gets the value of the interfaces property.
+ *
+ * @return
+ * possible object is
+ * {@link Tinterfaces }
+ *
+ */
+ public Tinterfaces getInterfaces() {
+ return interfaces;
+ }
+
+ /**
+ * Sets the value of the interfaces property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tinterfaces }
+ *
+ */
+ public void setInterfaces(Tinterfaces value) {
+ this.interfaces = value;
+ }
+
+ /**
+ * Gets the value of the listener 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 listener property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getListener().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link TReferenceListener }
+ *
+ *
+ */
+ public List<TReferenceListener> getListener() {
+ if (listener == null) {
+ listener = new ArrayList<TReferenceListener>();
+ }
+ return this.listener;
+ }
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ * {@link Element }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+ /**
+ * Gets the value of the interface property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getInterface() {
+ return _interface;
+ }
+
+ /**
+ * Sets the value of the interface property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setInterface(String value) {
+ this._interface = value;
+ }
+
+ /**
+ * Gets the value of the filter property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getFilter() {
+ return filter;
+ }
+
+ /**
+ * Sets the value of the filter property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setFilter(String value) {
+ this.filter = value;
+ }
+
+ /**
+ * Gets the value of the componentName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getComponentName() {
+ return componentName;
+ }
+
+ /**
+ * Sets the value of the componentName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setComponentName(String value) {
+ this.componentName = value;
+ }
+
+ /**
+ * Gets the value of the availability property.
+ *
+ * @return
+ * possible object is
+ * {@link Tavailability }
+ *
+ */
+ public Tavailability getAvailability() {
+ return availability;
+ }
+
+ /**
+ * Sets the value of the availability property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Tavailability }
+ *
+ */
+ public void setAvailability(Tavailability value) {
+ this.availability = 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;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TserviceReference.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TtypeConverters.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TtypeConverters.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TtypeConverters.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,79 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ *
+ *
+ * The type used for the <type-converters> element. The
+ * <type-converters> section is a set of <bean>, <ref>, or
+ * <reference> elements that identify the type convert components
+ * that will ference components.
+ *
+ *
+ *
+ * <p>Java class for Ttype-converters complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Ttype-converters">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <choice maxOccurs="unbounded" minOccurs="0">
+ * <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}targetComponent"/>
+ * </choice>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class TtypeConverters {
+
+ protected List<Object> beanOrReferenceOrRefFIXME;
+
+ /**
+ * Gets the value of the beanOrReferenceOrRefFIXME 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 beanOrReferenceOrRefFIXME property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getBeanOrReferenceOrRefFIXME().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link JAXBElement }{@code <}{@link Tbean }{@code >}
+ * {@link JAXBElement }{@code <}{@link Treference }{@code >}
+ * {@link Object }
+ * {@link JAXBElement }{@code <}{@link Tref }{@code >}
+ *
+ *
+ */
+ public List<Object> getBeanOrReferenceOrRefFIXME() {
+ if (beanOrReferenceOrRefFIXME == null) {
+ beanOrReferenceOrRefFIXME = new ArrayList<Object>();
+ }
+ return this.beanOrReferenceOrRefFIXME;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TtypeConverters.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TtypedCollection.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TtypedCollection.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TtypedCollection.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,65 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+
+
+/**
+ *
+ *
+ * TtypeCollection defines comment attributes shared among different
+ * collection types that allow a default value type to be specified.
+ *
+ *
+ *
+ * <p>Java class for TtypedCollection complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="TtypedCollection">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="value-type" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class TtypedCollection {
+
+ protected String valueType;
+
+ /**
+ * Gets the value of the valueType property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValueType() {
+ return valueType;
+ }
+
+ /**
+ * Sets the value of the valueType property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValueType(String value) {
+ this.valueType = value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/TtypedCollection.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tvalue.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tvalue.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tvalue.java 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,99 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-793
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.05.13 at 02:16:52 PM CEST
+//
+
+
+package org.jboss.osgi.blueprint.model;
+
+/**
+ *
+ *
+ * Tvalue is the type used for <value> elements. The <value> element
+ * is used for types that can be created from a single string value.
+ * The string value is the data value for the element. The optional
+ * type attribute allows a target conversion value to be explicitly
+ * specified.
+ *
+ *
+ *
+ * <p>Java class for Tvalue complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="Tvalue">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <attribute name="type" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class Tvalue {
+
+ protected String content;
+ protected String type;
+
+ /**
+ *
+ *
+ * Tvalue is the type used for <value> elements. The <value> element
+ * is used for types that can be created from a single string value.
+ * The string value is the data value for the element. The optional
+ * type attribute allows a target conversion value to be explicitly
+ * specified.
+ *
+ *
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getContent() {
+ return content;
+ }
+
+ /**
+ * Sets the value of the content property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setContent(String value) {
+ this.content = value;
+ }
+
+ /**
+ * Gets the value of the type property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * Sets the value of the type property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setType(String value) {
+ this.type = value;
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/jboss/osgi/blueprint/model/Tvalue.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint-cm.xsd
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint-cm.xsd (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint-cm.xsd 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ /*
+ * $Revision$
+ *
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+<xsd:schema xmlns="http://www.osgi.org/xmlns/blueprint-cm/v1.0.0"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:bp="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+ targetNamespace="http://www.osgi.org/xmlns/blueprint-cm/v1.0.0"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified"
+ version="1.0.0">
+
+ <xsd:import namespace="http://www.osgi.org/xmlns/blueprint/v1.0.0" schemaLocation="../../blueprint/v1.0.0/blueprint.xsd"/>
+
+ <!-- property placeholder -->
+
+ <xsd:element name="property-placeholder" type="TpropertyPlaceholder"/>
+
+ <xsd:complexType name="TpropertyPlaceholder">
+ <xsd:complexContent>
+ <xsd:extension base="bp:Tcomponent">
+ <xsd:sequence>
+ <!-- nested properties declaration -->
+ <xsd:element name="default-properties" type="TdefaultProperties" minOccurs="0" maxOccurs="1"/>
+ </xsd:sequence>
+
+ <!-- #### What should be the type for a persistent id? I think we need to define one like class and method -->
+ <xsd:attribute name="persistent-id" type="xsd:string" use="required"/>
+ <xsd:attribute name="placeholder-prefix" type="xsd:string" use="optional" default="${"/>
+ <xsd:attribute name="placeholder-suffix" type="xsd:string" use="optional" default="}"/>
+ <xsd:attribute name="defaults-ref" type="bp:Tidref" use="optional"/>
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+
+ <!-- #### is this the correct type here? This is defining placeholder properties,
+ so should this be a restricted set of value types or should this be expanded to
+ all of the elements you can inject into a bean property? -->
+ <xsd:complexType name="TdefaultProperties">
+ <xsd:sequence minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="property" type="bp:Tproperty"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+
+ <!-- managed-properties -->
+
+ <xsd:element name="managed-properties" type="TmanagedProperties"/>
+
+ <xsd:complexType name="TmanagedProperties">
+ <xsd:attribute name="persistent-id" type="xsd:string" use="required"/>
+ <xsd:attribute name="update-strategy" type="TupdateStrategyType" use="optional"/>
+ <xsd:attribute name="update-method" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+
+ <xsd:simpleType name="TupdateStrategyType">
+ <xsd:restriction base="xsd:NMTOKEN">
+ <xsd:enumeration value="none"/>
+ <xsd:enumeration value="component-managed"/>
+ <xsd:enumeration value="container-managed"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <!-- managed-service-factory -->
+
+ <xsd:element name="managed-service-factory" type="TmanagedServiceFactory"/>
+
+ <xsd:complexType name="TmanagedServiceFactory">
+ <xsd:complexContent>
+ <xsd:extension base="bp:Tcomponent">
+ <xsd:sequence>
+ <xsd:group ref="bp:serviceElements"/>
+ <xsd:element name="managed-component" type="TmanagedComponent" minOccurs="1" maxOccurs="1"/>
+ </xsd:sequence>
+ <xsd:attribute name="factory-pid" type="xsd:string" use="required"/>
+ <xsd:attribute name="interface" type="bp:Tclass" use="optional"/>
+ <xsd:attribute name="auto-export" type="bp:TautoExportModes" default="disabled"/>
+ <xsd:attribute name="ranking" type="xsd:int" default="0"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:complexType name="TmanagedComponent">
+ <xsd:group ref="bp:beanElements"/>
+ <xsd:attribute name="class" type="bp:Tclass"/>
+ <xsd:attribute name="init-method" type="bp:TnullableMethod"/>
+ <xsd:attribute name="destroy-method" type="bp:TnullableMethod"/>
+ <xsd:attribute name="factory-method" type="bp:Tmethod"/>
+ <xsd:attribute name="factory-component" type="bp:Tidref"/>
+ <xsd:anyAttribute namespace="##other" processContents="lax"/>
+ </xsd:complexType>
+
+
+ <!-- cm-properties -->
+
+ <xsd:element name="cm-properties" type="TcmProperties"/>
+
+ <xsd:complexType name="TcmProperties">
+ <xsd:attribute name="persistent-id" type="xsd:string" use="required"/>
+ <xsd:attribute name="update" type="xsd:boolean" use="optional" default="false"/>
+ </xsd:complexType>
+
+</xsd:schema>
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint-cm.xsd
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint.xsd
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint.xsd (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint.xsd 2009-05-13 12:30:09 UTC (rev 88810)
@@ -0,0 +1,1125 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ /*
+ * $Revision$
+ *
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+<xsd:schema xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://www.osgi.org/xmlns/blueprint/v1.0.0" elementFormDefault="qualified"
+ attributeFormDefault="unqualified" version="1.0.0">
+
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+
+ This is the XML Schema for the OSGi Blueprint service 1.0.0
+ development descriptor. Blueprint configuration files
+ using this schema must indicate the schema using the
+ blueprint/v1.0.0 namespace. For example,
+
+ <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
+
+ if used as a qualified namespace, "bp:" is the recommended
+ namespace prefix.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+
+ <!-- Schema elements for core component declarations -->
+
+ <xsd:complexType name="Tcomponent" abstract="true">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+
+ The Tcomponent 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 Tcomponent 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.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
+
+ <xsd:element name="blueprint" type="Tblueprint">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+
+ The <blueprint> element is the root element for a blueprint
+ configuration file. A blueprint configuration has two sections.
+ The first section (contained within <type-converters> elements)
+ identifies components that are used for converting values into
+ different target types. The type converters are optional, so
+ the file does not need to specify a type converter section.
+
+ Following the type converters are the component definitions.
+ Components are <bean>, <service>, <reference>, <ref-set>, and
+ <ref-list> elements that identify the bundle components that will
+ be managed by the blueprint service.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+
+ <xsd:complexType name="Tblueprint">
+ <xsd:sequence>
+ <xsd:element name="description" type="Tdescription" minOccurs="0" />
+ <xsd:element name="type-converters" type="Ttype-converters" minOccurs="0"
+ maxOccurs="1" />
+ <!-- top-level components -->
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:group ref="allComponents" />
+ </xsd:choice>
+ </xsd:sequence>
+
+ <!-- Defaults-->
+ <xsd:attribute name="default-lazy-init" default="false" type="Tlazy-init">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Specifies the default lazy-init setting that will be defined
+ for <bean> components. If not specified, the global
+ default is "false". Individual <bean> components may
+ override the default
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="default-init-method" type="Tmethod">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Specifies the default init-method that will be defined
+ for <bean> components. If not specified, no default
+ init-method is defined. It is not an error for a
+ bean to not implement the indicated default init-method.
+ The value will be ignored. A bean can also specify
+ a different init-method or disable the init-method
+ call by specifying an init-method value of "".
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="default-destroy-method" type="Tmethod">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Specifies the default destroy-method that will be defined
+ for <bean> components. If not specified, no default
+ destroy-method is defined. It is not an error for a
+ bean to not implement the indicated default destroy-method.
+ The value will be ignored. A bean can also specify
+ a different destroy-method or disable the destroy-method
+ call by specifying a destroy-method value of "".
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="default-timeout" type="Ttimeout" default="300000">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Specifies the default timeout value to be used when operations
+ are invoked on unstatisfied service references. If the
+ reference does not change to a satisfied state within the timeout
+ window, an error is raised on the method invocation. The
+ default timeout value is 300000 milliseconds and individual
+ <reference> element can override the specified configuration
+ default.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="default-availability" type="Tavailability" default="mandatory">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Specifies the default availability value to be used for
+ <reference>, <ref-set>, and <ref-list> components. The
+ normal default is "mandatory", and can be changed by individual
+ service reference components.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:anyAttribute namespace="##other" processContents="lax" />
+ </xsd:complexType>
+
+ <xsd:complexType name="Ttype-converters">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The type used for the <type-converters> element. The
+ <type-converters> section is a set of <bean>, <ref>, or
+ <reference> elements that identify the type convert components
+ that will ference components.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:group ref="targetComponent" />
+ </xsd:choice>
+ </xsd:complexType>
+
+ <!-- Components that provide a reasonable target for injection
+ used for listeners, etc. -->
+
+ <xsd:group name="targetComponent">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A targetcomponent is one that can be a target for a
+ listener, registration-listener, or type-converter element.
+ This is used in contexts where the requirement is a single
+ provided object that will implement a particular interface.
+ The provided object is obtained either from a <ref> element
+ or inline (<bean> or <reference>).
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice>
+ <xsd:element name="bean" type="Tbean" />
+ <xsd:element name="reference" type="Treference" />
+ <xsd:element name="refFIXME" type="Tref" />
+ <xsd:any namespace="##other" processContents="strict" minOccurs="0" maxOccurs="unbounded" />
+ </xsd:choice>
+ </xsd:group>
+
+ <xsd:group name="allComponents">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ allComponents is used in contexts where all component element
+ types are value. The set of component elements contains
+ <bean>, <service>, <reference>, <ref-set>, and <ref-list>.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice>
+ <xsd:element name="service" type="Tservice" />
+ <xsd:element name="ref-list" type="Tref-collection" />
+ <xsd:element name="ref-set" type="Tref-collection" />
+ <xsd:group ref="targetComponent" />
+ </xsd:choice>
+ </xsd:group>
+
+ <xsd:group name="beanElements">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A reusable definition of the elements allowed on a <bean> element.
+ This definition is also used by the <bpcm:managed-component>
+ element used in the blueprint-cm schema.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="description" type="Tdescription" minOccurs="0" />
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="argument" type="Targument" />
+ <xsd:element name="property" type="Tproperty" />
+ <xsd:any namespace="##other" processContents="strict" minOccurs="0"
+ maxOccurs="unbounded" />
+ </xsd:choice>
+ </xsd:sequence>
+ </xsd:group>
+
+ <xsd:complexType name="Tbean">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The type defintion for a <bean> component.
+ This definition is also used by the <bpcm:managed-component>
+ element used in the blueprint-cm schema. The <bean> attributes
+ provide the characteristics for how to create a bean instance.
+ Constructor arguments and injected properties are specified
+ via child <argument> and <property> elements.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexContent>
+ <xsd:extension base="Tcomponent">
+ <xsd:group ref="beanElements" />
+ <xsd:attribute name="class" type="Tclass" />
+ <xsd:attribute name="depends-on" type="TdependsOn" />
+ <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="scope">
+ <xsd:simpleType>
+ <xsd:restriction base="xsd:NMTOKEN">
+ <xsd:enumeration value="singleton" />
+ <xsd:enumeration value="prototype" />
+ <xsd:enumeration value="bundle" />
+ </xsd:restriction>
+ </xsd:simpleType>
+ </xsd:attribute>
+
+ <xsd:attribute name="lazy-init" type="Tlazy-init">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The lazy-init attribute for this <bean>. This can either
+ be "eager" ("false") or "lazy" ("true"). If not specified, it
+ defaults to default-lazy-init attribute of the enclosing
+ <blueprint> element. The default, default is "eager"
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:anyAttribute namespace="##other" processContents="lax" />
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:complexType name="Targument">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ An argument used to create an object defined by a <bean>
+ component. The <argument> elements are the arguments for the
+ bean class constructor or passed to the bean factory method.
+
+ The type, if specified, is used to disambiguate the constructor
+ or method signature. Arguments may also be matched up with
+ arguments by explicitly specifying the index position. If the
+ index is used, then all <argument> elements for the bean must
+ also specify the index.
+
+ The value and ref attributes are convenience shortcuts to make
+ the <argument> tag easier to code. A fuller set of injected
+ values and types can be specified using one of the "value"
+ type elements.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="description" type="Tdescription" minOccurs="0" />
+ <xsd:group ref="value" />
+ </xsd:sequence>
+ <xsd:attribute name="index" type="xsd:nonNegativeInteger" />
+ <xsd:attribute name="type" type="Tclass" />
+ <xsd:attribute name="ref" type="Tidref" />
+ <xsd:attribute name="valueFIXME" type="TstringValue" />
+ </xsd:complexType>
+
+ <xsd:complexType name="Tproperty">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A property that will be injected into a created <bean>
+ component. The <property> elements correspond to named
+ JavaBean setting methods for a created bean object.
+
+ The value and ref attributes are convenience shortcuts to make
+ the <argument> tag easier to code. A fuller set of injected
+ values and types can be specified using one of the "value"
+ type elements.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="description" type="Tdescription" minOccurs="0" />
+ <xsd:group ref="value" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="Tmethod" use="required" />
+ <xsd:attribute name="ref" type="Tidref" />
+ <xsd:attribute name="valueFIXME" type="TstringValue" />
+ </xsd:complexType>
+
+ <xsd:complexType name="Tkey">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The Tkey type defines the element types that are permitted
+ for Map key situations. These can be any of the "value"
+ types other than the <null> element.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:group ref="nonNullValue" />
+ </xsd:complexType>
+
+ <!-- reference -->
+ <xsd:complexType name="Treference">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The Treference type defines the <reference> element. These
+ are instances of the TserviceReference type, with the addition
+ of a timeout attribute. If the timeout is not specified,
+ the default-timeout value is inherited from the encapsulating
+ <blueprint> definition.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexContent>
+ <xsd:extension base="TserviceReference">
+ <xsd:attribute name="timeout" use="optional" type="Ttimeout" />
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <!-- ref-set, ref-list -->
+ <xsd:complexType name="Tref-collection">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The Tref-collection builds in the characteristics of the
+ TserviceReference type to define characteristics of the <ref-set>
+ and <ref-list> elements. This adds in the characteristics that
+ only apply to collections of references (e.g., sorting).
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexContent>
+ <xsd:extension base="TserviceReference">
+ <xsd:sequence>
+ <xsd:element name="comparator" type="Tcomparator" minOccurs="0"
+ maxOccurs="1">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The <comparator> element defines a comparator instance that will
+ be used to sort the constructed reference collection.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ </xsd:sequence>
+
+ <xsd:attribute name="comparator-ref" type="xsd:token" use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A shortcut alternative to using a <comparator> element when the
+ comparator target is a top-level <bean> or <service> element.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+
+ <xsd:attribute name="member-type" use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Indicates the type of object that will be placed within the
+ reference collection. "service-instance" indicates the collection
+ contains blueprint proxies for imported services. "service-reference"
+ indicates the collection contains ServiceReferenc objects matching
+ the target service type.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleType>
+ <xsd:restriction base="xsd:NMTOKEN">
+ <xsd:enumeration value="service-instance" />
+ <xsd:enumeration value="service-reference" />
+ </xsd:restriction>
+ </xsd:simpleType>
+ </xsd:attribute>
+
+ <xsd:attribute name="ordering-basis" use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Indicates how collection sorting is handled. An ordering
+ basis of "service" indicates sorting is handled using the service
+ instance. "service-reference" indicates sorting is accomplished using
+ the ServiceReference objects for the contained services. The default
+ value is an implicit "none", indicating no sorting should be performed.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:simpleType>
+ <xsd:restriction base="xsd:NMTOKEN">
+ <xsd:enumeration value="service" />
+ <xsd:enumeration value="service-reference" />
+ </xsd:restriction>
+ </xsd:simpleType>
+ </xsd:attribute>
+
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <!-- Reference base class -->
+ <xsd:complexType name="TserviceReference">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TserviceReference is the base element type used for <reference>,
+ <ref-set>, and <ref-list> elements. This type defines all of the
+ characteristics common to both sorts of references.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexContent>
+ <xsd:extension base="Tcomponent">
+ <xsd:sequence>
+ <xsd:element name="description" type="Tdescription" minOccurs="0" />
+ <xsd:element name="interfaces" minOccurs="0" maxOccurs="1" type="Tinterfaces">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The definition of the required interfaces that the obtained services
+ must implement. There is also a shortcut attribute defined for
+ the typical case of just a single interface class.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+
+ <!-- listener -->
+ <xsd:element name="listener" type="TReferenceListener" minOccurs="0"
+ maxOccurs="unbounded">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A definition of a listener that will watch for bind/unbind events
+ associated with the service reference. The targetted listener can
+ be a <ref> to a <bean> or <reference> element, or an inline
+ <bean> or <reference>.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded"
+ processContents="lax" />
+ </xsd:sequence>
+
+ <xsd:attribute name="interface" use="optional" type="Tclass" />
+ <xsd:attribute name="filter" use="optional" type="xsd:normalizedString">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A filter string used to narrow the search for a matching service
+ reference.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="component-name" type="Tidref" use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ An optional specifier that can be used to match a service definition
+ to one created by a specific blueprint component.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="availability" type="Tavailability" use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Use to control the initial processing of service references at
+ blueprint context startup. "mandatory" indicates the context
+ should not start unless the service is available within the
+ specified context startup period. "optional" indicates availability
+ of this service is not a requirement at bundle startup.
+
+ NOTE: No default is specified because this can be overridden
+ by the default-availability attribute of the <blueprint> element.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:anyAttribute namespace="##other" processContents="lax" />
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:complexType name="TReferenceListener">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TReferenceListener defines a reference listener that is attached
+ to a <reference>, <ref-set>, or <ref-list> element. The listener
+ object can be specified as a <ref> or as an inline <bean> or
+ <reference> component. Listener events are mapped to the indicated
+ bind or unbind methods.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:group ref="targetComponent" />
+ <xsd:attribute name="ref" type="xsd:token" use="optional" />
+ <xsd:attribute name="bind-method" type="Tmethod" use="required" />
+ <xsd:attribute name="unbind-method" type="Tmethod" use="required" />
+ </xsd:complexType>
+
+ <xsd:simpleType name="Tlazy-init">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tlazy-init defines a lazy-init type. This is used in this
+ schema by the <blueprint> default-lazy-init attribute and the
+ <bean> lazy-init attribute.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:boolean" />
+ </xsd:simpleType>
+
+ <xsd:simpleType name="Tavailability">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tlazy-init defines an availability attribute type. This is used in this
+ schema by the <blueprint> default-availability attribute and the
+ <reference>, <ref-set>, and <ref-list> availability attribute.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:token">
+ <xsd:enumeration value="mandatory" />
+ <xsd:enumeration value="optional" />
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <xsd:complexType name="Tcomparator">
+ <xsd:group ref="targetComponent" />
+ </xsd:complexType>
+
+ <!-- service -->
+
+ <xsd:complexType name="Tservice">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tservice is the type for services exported by this blueprint bundle.
+ Services are sourced by either a <ref> to a <bean> component or an
+ <inline> bean component.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexContent>
+ <xsd:extension base="Tcomponent">
+ <xsd:sequence>
+ <xsd:group ref="serviceElements" />
+ <xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded"
+ processContents="lax" />
+ </xsd:sequence>
+ <xsd:attribute name="interface" type="Tclass" use="optional" />
+ <xsd:attribute name="ref" type="Tidref" use="optional" />
+ <xsd:attribute name="depends-on" type="TdependsOn" use="optional">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ depends-on identifies (by name) other components that this service
+ depends on. The service will only be registered after the
+ depends-on services are successfully completed. Also, if there
+ are <reference>, <ref-list>, <ref-set> elements with unstatisfied
+ manadatory references, then the depends-on relationship will also
+ be used to determine whether this service is registered or
+ unregistered.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="auto-export" type="TautoExportModes" default="disabled" />
+ <xsd:attribute name="ranking" type="xsd:int" default="0">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A service ranking value that is added to the service properties
+ the service will be published with.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:anyAttribute namespace="##other" processContents="lax" />
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:group name="serviceElements">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A set of service elements that is shared by the <service> element
+ in this schema and the <managed-service-factory> element in the
+ blueprint-cm schema.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="description" type="Tdescription" minOccurs="0" />
+ <xsd:element name="interfaces" type="Tinterfaces" minOccurs="0">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A collection of one or more interface class names this service
+ will be registered under. The <service> element also has
+ a shortcut interface attribute for the usual case of just
+ a single interface being used. This also cannot be used if
+ the auto-export attribute is used.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+
+ <xsd:element name="service-properties" type="TserviceProperties" minOccurs="0">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The service provided when the service is registered. The service
+ properties are similar to map elements, but the keys must always
+ be strings, and the values are required to be in a narrower range.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="registration-listener" type="TregistrationListener"
+ minOccurs="0" maxOccurs="unbounded">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A set of 0 or more registration listeners attached to this service
+ component. The registration listeners will be notified whenever the
+ service is registered or unregistered from the framework service
+ registry.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:choice minOccurs="0" maxOccurs="1">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ These are the two types of elements that can be bound as a service.
+ This will be either a <ref> to a <bean> component or an inline <bean> component.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:element name="bean" type="Tbean" />
+ <xsd:element name="refFIXME" type="Tref" />
+ </xsd:choice>
+ </xsd:sequence>
+ </xsd:group>
+
+
+ <xsd:complexType name="TregistrationListener">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A registration listener definition. The target registration listener
+ can be either a <ref> to a <bean> or <service> component, or an inline
+ <bean> or <service> component definition. The registration-method and
+ unregistration-method attributes define the methods that will be called
+ for the respective events.
+
+ For the very common case of using a <ref> to a listener component, the
+ ref attribute may also be used as a shortcut.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:group ref="targetComponent" />
+ <xsd:attribute name="ref" type="Tidref" use="optional" />
+ <!-- ### why are there both required? -->
+ <xsd:attribute name="registration-method" type="Tmethod" use="required" />
+ <xsd:attribute name="unregistration-method" type="Tmethod" use="required" />
+ </xsd:complexType>
+
+ <!--
+ Values
+ -->
+
+ <xsd:group name="value">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The set of "value" types that can be used in any place a value
+ can be specified. This set includes the <ref> and <idref> elements, any of the
+ component types (<bean>, <service>, etc.) as inline components, the
+ generic <value> element for types sourced from string values, any of the
+ collection types (<set>, <list>, <array>, <map>, <props>), and the
+ <null> type to inject a null value.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice>
+ <xsd:group ref="nonNullValue" />
+ <xsd:element name="null" type="Tnull" />
+ </xsd:choice>
+ </xsd:group>
+
+ <xsd:complexType name="Tnull">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The definition for a <null> value type.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <!-- [FIXME] cannot be processed by xjc -->
+ <!-- xsd:choice minOccurs="0" maxOccurs="unbounded" / -->
+ </xsd:complexType>
+
+ <xsd:group name="nonNullValue">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The set of "value" types that can be used in any place a non-null value
+ can be specified. This set includes the <ref> and <idref> elements, any of the
+ component types (<bean>, <service>, etc.) as inline components, the
+ generic <value> element for types sourced from string values, and any of the
+ collection types (<set>, <list>, <array>, <map>, <props>).
+
+ The <null> type is NOT a member of this group.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:group ref="allComponents" />
+ <xsd:choice minOccurs="0" maxOccurs="1">
+ <xsd:element name="idref" type="Tref" />
+ <xsd:element name="value" type="Tvalue" />
+ <xsd:element name="list" type="Tcollection" />
+ <xsd:element name="set" type="Tcollection" />
+ <xsd:element name="map" type="Tmap" />
+ <xsd:element name="array" type="Tcollection" />
+ <xsd:element name="props" type="Tprops" />
+ </xsd:choice>
+ </xsd:sequence>
+ </xsd:group>
+
+ <xsd:complexType name="Tref">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tref is the type used for <ref> elements. This specifies a required
+ component id for the reference component.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:attribute name="component" type="Tidref" use="required" />
+ </xsd:complexType>
+
+ <xsd:complexType name="Tvalue" mixed="true">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tvalue is the type used for <value> elements. The <value> element
+ is used for types that can be created from a single string value.
+ The string value is the data value for the element. The optional
+ type attribute allows a target conversion value to be explicitly
+ specified.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:attribute name="type" type="Tclass" use="optional" />
+ </xsd:complexType>
+
+ <!-- Collection Values -->
+
+ <xsd:complexType name="TtypedCollection">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TtypeCollection defines comment attributes shared among different
+ collection types that allow a default value type to be specified.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:attribute name="value-type" type="Tclass" />
+ </xsd:complexType>
+
+
+ <xsd:complexType name="Tcollection">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tcollection is the base schema type for different ordered collection
+ types. This is shared between the <array>, <list>, and <set> elements.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexContent>
+ <xsd:extension base="TtypedCollection">
+ <xsd:group ref="value" minOccurs="0" maxOccurs="unbounded" />
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:complexType name="Tprops">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tprops is the type used by the <props> value element. The prop elements
+ are pairs of string-valued keys and values.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="prop" type="Tprop" minOccurs="0" maxOccurs="unbounded" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="Tprop" mixed="true">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tprop is a single property element for a <props> value type. The property
+ value can be specified using either the attribute, or as value data for
+ the property element.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:attribute name="key" type="TstringValue" use="required" />
+ <xsd:attribute name="value" type="TstringValue" use="optional" />
+ </xsd:complexType>
+
+ <!-- 'map' element type -->
+ <xsd:complexType name="Tmap">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tmap is the base type used for <map> elements. A map may have a
+ default value type specified, so it inherits from the TtypeCollection
+ type. A key type can also be specified, and the map members are
+ created from the entry elements, which require a key/value pair.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexContent>
+ <xsd:extension base="TtypedCollection">
+ <xsd:sequence>
+ <xsd:element name="entry" type="TmapEntry" minOccurs="0" maxOccurs="unbounded" />
+ </xsd:sequence>
+ <xsd:attribute name="key-type" type="Tclass" />
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <!-- 'entry' element type -->
+ <xsd:complexType name="TmapEntry">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TmapEntry is used for <entry> elements nested inside of a <map> element.
+ Each <entry> instance defines a key/value pair that will be added to the
+ Map. Both the keys and values may be arbitrary types. Keys must not
+ be <null> but <null> is permitted for entry values. A default type
+ can be specified for both the keys and the values, but individual keys
+ or values can override the default.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="keyFIXME" type="Tkey" minOccurs="0" />
+ <xsd:group ref="value" />
+ </xsd:sequence>
+ <xsd:attribute name="key" type="TstringValue" />
+ <xsd:attribute name="key-ref" type="Tidref" />
+ <xsd:attribute name="valueFIXME" type="TstringValue" />
+ <xsd:attribute name="value-ref" type="Tidref" />
+ </xsd:complexType>
+
+
+ <!-- 'service property' element type -->
+ <xsd:complexType name="TserviceProperties">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TserviceProperty is used for <service-properties> elements.
+ The syntax is similar to what is defined for <map>, but keys must be
+ string values and there are no type defaults that can be specified.
+ created from the entry elements, which require a key/value pair.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:element name="entry" type="TservicePropertyEntry" minOccurs="0"
+ maxOccurs="unbounded" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <!-- 'entry' element type -->
+ <xsd:complexType name="TservicePropertyEntry">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TservicePropertyEntry is an entry value used for the <service-properties>
+ element. This does not allow a child <key> element and there are no
+ key-ref or value-ref attributes.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:sequence>
+ <xsd:group ref="value" />
+ </xsd:sequence>
+ <xsd:attribute name="key" type="TstringValue" use="required" />
+ <xsd:attribute name="valueFIXME" type="TstringValue" use="optional" />
+ </xsd:complexType>
+
+ <!-- General types -->
+
+ <xsd:complexType name="Tdescription" mixed="true">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ A generic <description> element type to allow documentation to added to the
+ blueprint configuration.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded" />
+ </xsd:complexType>
+
+ <xsd:complexType name="Tinterfaces">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ The type definition for the <interfaces> element used for <service>,
+ <reference>, <ref-set>, and <ref-list>;
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:choice minOccurs="1" maxOccurs="unbounded">
+ <xsd:element name="value" type="TinterfaceValue" />
+ </xsd:choice>
+ </xsd:complexType>
+
+ <xsd:simpleType name="TinterfaceValue">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TinterfaceValue is used for subelements of the <interfaces> element.
+ This is just a <value>xxxxx</value> element where the contained
+ value is the name of an interface class.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="Tclass" />
+ </xsd:simpleType>
+
+ <xsd:simpleType name="Tclass">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tclass is a base type that should be used for all attributes that
+ refer to java class names or java types.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:NCName" />
+ </xsd:simpleType>
+
+ <xsd:simpleType name="Tmethod">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tmethod is a base type that should be used for all attributes that
+ refer to java method names.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:NCName" />
+ </xsd:simpleType>
+
+ <xsd:simpleType name="TnullableMethod">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tmethod is a base type that should be used for all attributes that
+ refer to java method names. This version also allows "" to be
+ specified to specify that no name should be used.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:token">
+ <xsd:pattern value="[\i-[:]][\c-[:]]*" />
+ <xsd:pattern value="" />
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <!-- Should be used for all attributes and elements that refer to method names -->
+ <xsd:simpleType name="Tidref">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Tidref is a base type that should be used for all attributes that
+ refer to component ids.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:NCName" />
+ </xsd:simpleType>
+
+ <xsd:simpleType name="TstringValue">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TstringValue is a base type that should be used for all attributes that
+ refer to raw string values
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:normalizedString" />
+ </xsd:simpleType>
+
+ <xsd:simpleType name="TautoExportModes">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TautoExportModes is a base type that should be used for export-mode
+ attributes. Also used by the blueprint-cm compendium.
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:token">
+ <xsd:enumeration value="disabled" />
+ <xsd:enumeration value="interfaces" />
+ <xsd:enumeration value="class-hierarchy" />
+ <xsd:enumeration value="all-classes" />
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <xsd:simpleType name="Ttimeout">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ Ttimeout is a base type that should be used for all attributes that
+ specify timeout values
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:unsignedLong" />
+ </xsd:simpleType>
+
+ <xsd:simpleType name="TdependsOn">
+ <xsd:annotation>
+ <xsd:documentation>
+ <![CDATA[
+ TdependsOn is a base type that should be used for all attributes that
+ specify depends-on relationships
+ ]]>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:restriction base="xsd:normalizedString" />
+ </xsd:simpleType>
+
+</xsd:schema>
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/resources/schema/blueprint.xsd
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
17 years, 2 months
JBoss-OSGI SVN: r88808 - in projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service: blueprint and 4 other directories.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-13 07:50:27 -0400 (Wed, 13 May 2009)
New Revision: 88808
Added:
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/BlueprintContext.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/BlueprintContextListener.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ComponentDefinitionException.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/EventConstants.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/NoSuchComponentException.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ServiceUnavailableException.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/package.html
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/packageinfo
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/ConversionService.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/Converter.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/package.html
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/packageinfo
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentDefinitionRegistry.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentNameAlreadyInUseException.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/NamespaceHandler.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ParserContext.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/package.html
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/packageinfo
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BeanArgument.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BeanMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BeanProperty.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/CollectionMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ComponentMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/IdRefMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Listener.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MapEntry.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MapMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Metadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/NonNullMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/NullMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/PropsMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RefCollectionMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RefMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ReferenceMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RegistrationListener.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceReferenceMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Target.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ValueMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/package.html
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/packageinfo
Log:
update blueprint api
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/BlueprintContext.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/BlueprintContext.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/BlueprintContext.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,141 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.context;
+
+import java.util.Collection;
+import java.util.Set;
+
+import org.osgi.framework.BundleContext;
+import org.osgi.service.blueprint.reflect.ComponentMetadata;
+
+/**
+ * BlueprintContext providing access to the components, service exports, and
+ * service references of a bundle using blueprint services. Only bundles in the
+ * ACTIVE state may have an associated BlueprintContext. A given BundleContext
+ * has at most one associated BlueprintContext.
+ *
+ * An instance of BlueprintContext may be obtained from within a blueprint context by
+ * injecting the predefined "blueprintContext" component.
+ * Alternatively you can look up BlueprintContext services in the service registry.
+ * The Constants.BUNDLE_SYMBOLICNAME and Constants.BUNDLE_VERSION service
+ * properties can be used to determine which bundle the published BlueprintContext
+ * service is associated with.
+ *
+ * A BlueprintContext implementation must support safe concurrent access. It is
+ * legal for the set of named components and component metadata to change
+ * between invocations on the same thread if another thread is concurrently
+ * modifying the same mutable BlueprintContext implementation object.
+ *
+ * @see org.osgi.framework.Constants
+ *
+ */
+public interface BlueprintContext {
+
+ /**
+ * reason code for destroy method callback of a managed service factory
+ * created component, when the component is being disposed because the
+ * corresponding configuration admin object was deleted.
+ */
+ static final int CONFIGURATION_ADMIN_OBJECT_DELETED = 1;
+
+ /**
+ * reason code for destroy method callback of a managed service factory
+ * created component, when the component is being disposed because the
+ * bundle is being stopped.
+ */
+ static final int BUNDLE_STOPPING = 2;
+
+ /**
+ * The set of component names recognized by the blueprint context.
+ *
+ * @return an immutable set (of Strings) containing the names of all of the components within the
+ * context.
+ */
+ Set getComponentNames();
+
+ /**
+ * Get the component instance for a given named component. If the component has
+ * not yet been instantiated, calling this operation will cause the component instance
+ * to be created and initialized. If the component
+ * has a prototype scope then each call to getComponent will return a new
+ * component instance. If the component has a bundle scope then the component
+ * instance returned will be the instance for the caller's bundle (and that
+ * instance will be instantiated if it has not already been created).
+ *
+ * Note: calling getComponent from logic executing during the instantiation and
+ * configuration of a component, before the init method (if specified) has returned,
+ * may trigger a circular dependency (for a trivial example, consider a component
+ * that looks itself up by name during its init method). Implementations of the
+ * Blueprint Service are not required to support cycles in the dependency graph
+ * and may throw an exception if a cycle is detected. Implementations that can
+ * support certain kinds of cycles are free to do so.
+ *
+ * @param name the name of the component for which the instance is to be
+ * retrieved.
+ *
+ * @return the component instance, the type of the returned object is
+ * dependent on the component definition, and may be determined by
+ * introspecting the component metadata.
+ *
+ * @throws NoSuchComponentException if the name specified is not the
+ * name of a component within the context.
+ */
+ Object getComponent(String name);
+
+ /**
+ * Get the component metadata for a given named component.
+ *
+ * @param name the name of the component for which the metadata is to be
+ * retrieved.
+ *
+ * @return the component metadata for the component.
+ *
+ * @throws NoSuchComponentException if the name specified is not the
+ * name of a component within the context.
+ */
+ ComponentMetadata getComponentMetadata(String name);
+
+ /**
+ * Get the service reference metadata for every OSGi service referenced by
+ * this context.
+ *
+ * @return an immutable collection of ServiceComponentMetadata, with one entry for each referenced service.
+ */
+ Collection /*<ServiceReferenceMetadata>*/ getReferencedServicesMetadata();
+
+ /**
+ * Get the service export metadata for every service exported by this
+ * context.
+ *
+ * @return an immutable collection of ServiceMetadata, with one entry for each service export.
+ */
+ Collection /*<ServiceMetadata>*/ getExportedServicesMetadata();
+
+ /**
+ * Get the metadata for all components defined locally within this context.
+ *
+ * @return an immutable collection of BeanMetadata, with one entry for each component.
+ */
+ Collection /*<BeanMetadata>*/ getBeanComponentsMetadata();
+
+ /**
+ * Get the bundle context of the bundle this blueprint context is associated
+ * with.
+ *
+ * @return the blueprint context's bundle context
+ */
+ BundleContext getBundleContext();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/BlueprintContext.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/BlueprintContextListener.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/BlueprintContextListener.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/BlueprintContextListener.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.context;
+
+import org.osgi.framework.Bundle;
+
+public interface BlueprintContextListener {
+
+ void contextCreated(Bundle forBundle);
+
+ void contextCreationFailed(Bundle forBundle, Throwable rootCause);
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/BlueprintContextListener.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ComponentDefinitionException.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ComponentDefinitionException.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ComponentDefinitionException.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.context;
+
+/**
+ * Exception thrown when a configuration-related error occurs during
+ * creation of a module context.
+ */
+public class ComponentDefinitionException extends RuntimeException {
+
+ public ComponentDefinitionException(String explanation) {
+ super(explanation);
+ }
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ComponentDefinitionException.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/EventConstants.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/EventConstants.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/EventConstants.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,83 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.context;
+
+import org.osgi.framework.Bundle;
+import org.osgi.framework.Version;
+
+/**
+ * Event property names used in EventAdmin events published for a
+ * module context.
+ *
+ */
+public interface EventConstants {
+ /**
+ * The extender bundle property defining the extender bundle processing the
+ * module context for which an event has been issued.
+ *
+ * @see Bundle
+ */
+ public static final String EXTENDER_BUNDLE = "extender.bundle";
+
+ /**
+ * The extender bundle id property defining the id of the extender bundle
+ * processing the module context for which an event has been issued.
+ */
+ public static final String EXTENDER_ID = "extender.bundle.id";
+
+ /**
+ * The extender bundle symbolic name property defining the symbolic name of
+ * the extender bundle processing the module context for which an event
+ * has been issued.
+ */
+ public static final String EXTENDER_SYMBOLICNAME = "extender.bundle.symbolicName";
+
+ /**
+ * Topic prefix for all events issued by the Blueprint Service
+ */
+ public static final String TOPIC_BLUEPRINT_EVENTS = "org/osgi/service/blueprint";
+
+ /**
+ * Topic for Blueprint Service CREATING events
+ */
+ public static final String TOPIC_CREATING = TOPIC_BLUEPRINT_EVENTS + "/context/CREATING";
+
+ /**
+ * Topic for Blueprint Service CREATED events
+ */
+ public static final String TOPIC_CREATED = TOPIC_BLUEPRINT_EVENTS + "/context/CREATED";
+
+ /**
+ * Topic for Blueprint Service DESTROYING events
+ */
+ public static final String TOPIC_DESTROYING = TOPIC_BLUEPRINT_EVENTS + "/context/DESTROYING";
+
+ /**
+ * Topic for Blueprint Service DESTROYED events
+ */
+ public static final String TOPIC_DESTROYED = TOPIC_BLUEPRINT_EVENTS + "/context/DESTROYED";
+
+ /**
+ * Topic for Blueprint Service WAITING events
+ */
+ public static final String TOPIC_WAITING = TOPIC_BLUEPRINT_EVENTS + "/context/WAITING";
+
+ /**
+ * Topic for Blueprint Service FAILURE events
+ */
+ public static final String TOPIC_FAILURE = TOPIC_BLUEPRINT_EVENTS + "/context/FAILURE";
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/EventConstants.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/NoSuchComponentException.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/NoSuchComponentException.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/NoSuchComponentException.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.context;
+
+/**
+ * Thrown when an attempt is made to lookup a component by name and no such named
+ * component exists in the module context.
+ */
+public class NoSuchComponentException extends RuntimeException {
+
+ private final String componentName;
+
+ public NoSuchComponentException(String componentName) {
+ this.componentName = componentName;
+ }
+
+ public String getComponentName() {
+ return this.componentName;
+ }
+
+ public String getMessage() {
+ return "No component named '" +
+ (this.componentName == null ? "<null>" : this.componentName) +
+ "' could be found";
+ }
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/NoSuchComponentException.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ServiceUnavailableException.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ServiceUnavailableException.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ServiceUnavailableException.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,52 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.context;
+
+/**
+ * Thrown when an invocation is made on an OSGi service reference component, and
+ * a backing service is not available.
+ */
+public class ServiceUnavailableException extends RuntimeException {
+
+ private final Class serviceType;
+ private final String filter;
+
+ public ServiceUnavailableException(
+ String message,
+ Class serviceType,
+ String filterExpression) {
+ super(message);
+ this.serviceType = serviceType;
+ this.filter = filterExpression;
+ }
+
+ /**
+ * The type of the service that would have needed to be available in
+ * order for the invocation to proceed.
+ */
+ public Class getServiceType() {
+ return this.serviceType;
+ }
+
+ /**
+ * The filter expression that a service would have needed to satisfy in order
+ * for the invocation to proceed.
+ */
+ public String getFilter() {
+ return this.filter;
+ }
+}
+
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ServiceUnavailableException.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/package.html
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/package.html (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/package.html 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,19 @@
+<!-- $Revision: 5654 $ -->
+<BODY>
+<p>Blueprint Service Context Package Version 1.0.</p>
+<p>Bundles wishing to use this package must list the package
+in the Import-Package header of the bundle's manifest.
+For example:</p>
+<pre>
+Import-Package: org.osgi.service.blueprint.context; version="[1.0,2.0)"
+</pre>
+<p>
+ This package defines the primary interface to a blueprint context, <code>BlueprintContext</code>. An instance of this
+ type is available inside a blueprint context as an implicitly defined component with name "blueprintContext".
+</p>
+<p>
+ This package also declares the supporting exception types, listener, and constants for working with a blueprint
+ context.
+</p>
+</BODY>
+
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/packageinfo
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/packageinfo (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/packageinfo 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1 @@
+version 1.0
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/ConversionService.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/ConversionService.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/ConversionService.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.convert;
+
+/**
+ * Provides access to the type conversions (both predefined and user registered)
+ * that are defined for the module context
+ */
+public interface ConversionService {
+
+ /**
+ * Convert an object to an instance of the given class, using the built-in and
+ * user-registered type converters as necessary.
+ * @param fromValue the object to be converted
+ * @param toType the type that the instance is to be converted to
+ * @return an instance of the class 'toType'
+ * @throws Exception if the conversion cannot succeed. This exception is
+ * checked because callers should expect that not all source objects
+ * can be successfully converted.
+ */
+ Object convert(Object fromValue, Class toType) throws Exception;
+
+}
\ No newline at end of file
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/ConversionService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/Converter.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/Converter.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/Converter.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.convert;
+
+/**
+ * Implemented by type converters that extend the type conversion
+ * capabilties of a module context container.
+ */
+public interface Converter {
+
+ /**
+ * The type that this converter converts String values into.
+ * @return Class object for the class that this converter converts to
+ */
+ Class getTargetClass();
+
+ /**
+ * Convert an object to an instance of the target class.
+ * @param source the object to be converted
+ * @return an instance of the class returned by getTargetClass
+ * @throws Exception if the conversion cannot succeed. This exception is
+ * checked because callers should expect that not all source objects
+ * can be successfully converted.
+ */
+ Object convert(Object source) throws Exception;
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/Converter.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/package.html
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/package.html (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/package.html 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,16 @@
+<!-- $Revision: 5654 $ -->
+<BODY>
+<p>Blueprint Service Type Conversion Package Version 1.0.
+<p>Bundles wishing to use this package must list the package
+in the Import-Package header of the bundle's manifest.
+For example:
+<pre>
+Import-Package: org.osgi.service.blueprint.convert; version="[1.0,2.0)"
+</pre>
+<p> This package defines the <code>Converter</code> interface used to implement
+ type converters, and the <code>ConversionService</code> interface that provides access
+ to registered type converters. A module context contains an implicitly defined
+ component "conversionService" that is an instance of <code>ConversionService</code>.
+</p>
+</BODY>
+
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/packageinfo
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/packageinfo (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/convert/packageinfo 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1 @@
+version 1.0
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentDefinitionRegistry.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentDefinitionRegistry.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentDefinitionRegistry.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,73 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.namespace;
+
+import java.util.Set;
+
+import org.osgi.service.blueprint.reflect.ComponentMetadata;
+
+/**
+ * A registry of the component definitions for a given context.
+ *
+ * Implementations of ComponentDefinitionRegistry are required to support
+ * concurrent access. The state of a component registry
+ * may change between invocations on the same thread. For example, a single
+ * thread invoking containsComponentDefinition("foo") and getting a return value
+ * of 'true' may see a return value of null on a subsequent call to
+ * getComponentDefinition("foo") if another thread has removed the component
+ * definition in the meantime.
+ */
+public interface ComponentDefinitionRegistry {
+
+ /**
+ * Returns true iff the registry contains a component definition with
+ * the given name.
+ */
+ boolean containsComponentDefinition(String name);
+
+ /**
+ * Get the component definition for the component with the given name.
+ *
+ * @return the matching component definition if present, or null if no
+ * component with a matching name or alias is present.
+ */
+ ComponentMetadata getComponentDefinition(String name);
+
+ /**
+ * Get the names of all the registered components.
+ *
+ * @return an immutable set (of Strings) containing the names of all registered components.
+ */
+ Set getComponentDefinitionNames();
+
+ /**
+ * Register a new component definition.
+ *
+ * @throws ComponentNameAlreadyInUseException if the name of the
+ * component definition to be registered is already in use by an existing component
+ * definition.
+ */
+ void registerComponentDefinition(ComponentMetadata component);
+
+ /**
+ * Remove a component definition from the registry. If no matching component
+ * is present then this operation does nothing.
+ *
+ * @param name the name of the component to be removed.
+ */
+ void removeComponentDefinition(String name);
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentDefinitionRegistry.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentNameAlreadyInUseException.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentNameAlreadyInUseException.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentNameAlreadyInUseException.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.namespace;
+
+/**
+ * Exception thrown when an attempt is made to register a component with a
+ * name that is already in use by an existing component.
+ */
+public class ComponentNameAlreadyInUseException extends RuntimeException {
+
+ private String duplicateName;
+
+ public ComponentNameAlreadyInUseException(String name) {
+ this.duplicateName = name;
+ }
+
+ public String getMessage() {
+ return "Name '" + this.duplicateName + "' is already in use by a registered component";
+ }
+
+ public String getConflictingName() {
+ return this.duplicateName;
+ }
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentNameAlreadyInUseException.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/NamespaceHandler.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/NamespaceHandler.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/NamespaceHandler.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,81 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.namespace;
+
+import java.net.URL;
+
+import org.osgi.service.blueprint.reflect.ComponentMetadata;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+/**
+ * A namespace handler provides support for parsing custom namespace elements and attributes in
+ * module context configuration files. It manipulates component definitions and the
+ * component registry to implement the intended semantices of the namespace.
+ *
+ * Instances of NamespaceHandler are discovered through the service registry where
+ * they should be published with a service property org.osgi.module.context.namespace set
+ * to the schema URI of the schema that they handle.
+ *
+ * Implementations of NamespaceHandler are required to be thread-safe.
+ *
+ */
+public interface NamespaceHandler {
+
+ /**
+ * Return the location of the schema for a given namespace.
+ *
+ * @param namespace one of the advertized URIs supported by this handler (as registered in the
+ * org.osgi.service.blueprint.namespace property of the service registration).
+ * @return The URL where the xsd file for the schema may be found. Typically used to return a URL to a
+ * bundle resource entry so as to avoid needing to lookup schemas remotely.
+ * If null is returned then the schema location will be determined from the xsi:schemaLocation attribute
+ * value.
+ * @throws IllegalArgumentException if the namespace parameter is not a recognized namespace supported
+ * by this handler
+ */
+ URL getSchemaLocation(String namespace);
+
+ /**
+ * Called when a top-level (i.e. non-nested) element from the namespace is encountered.
+ * Implementers may register component definitions themselves, and/or return a component definition
+ * to be registered.
+ *
+ * @param element the dom element from the namespace that has just been encountered
+ * @param context parser context giving access component registry and context information about the
+ * current parsing location.
+ *
+ * @return a component metadata instance to be registered for the context, or null if there are no
+ * additional component descriptions to register.
+ */
+ ComponentMetadata parse(Element element, ParserContext context);
+
+ /**
+ * Called when an attribute or nested element is encountered. Implementors should parse the
+ * supplied Node and decorate the provided component, returning the decorated component.
+ *
+ * @param node the dom Node from the namespace that has just been encountered
+ * @param component the component metadata for the component in which the attribute or nested element
+ * was encountered
+ * @param context parser context giving access component registry and context information about the
+ * current parsing location.
+ *
+ * @return the decorated component to replace the original, or simply the original component if no
+ * decoration is required.
+ */
+ ComponentMetadata decorate(Node node, ComponentMetadata component, ParserContext context);
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/NamespaceHandler.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ParserContext.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ParserContext.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ParserContext.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,43 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.namespace;
+
+import org.osgi.service.blueprint.reflect.ComponentMetadata;
+import org.w3c.dom.Node;
+
+/**
+ * A ParserContext provides contextual information to a NamespaceHandler when
+ * parsing an Element or Node from the namespace.
+ */
+public interface ParserContext {
+
+ /**
+ * The dom Node which we are currently processing
+ */
+ Node getSourceNode();
+
+ /**
+ * The component definition registry containing all of the registered component
+ * definitions for this context
+ */
+ ComponentDefinitionRegistry getComponentDefinitionRegistry();
+
+ /**
+ * The enclosing component definition in the context of which the
+ * source node is to be processed.
+ */
+ ComponentMetadata getEnclosingComponent();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ParserContext.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/package.html
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/package.html (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/package.html 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,14 @@
+<!-- $Revision: 5654 $ -->
+<BODY>
+<p>Blueprint Namespace Package Version 1.0.
+<p>Bundles wishing to use this package must list the package
+in the Import-Package header of the bundle's manifest.
+For example:
+<pre>
+Import-Package: org.osgi.service.blueprint.namespace; version="[1.0,2.0)"
+</pre>
+<p> This package provides the top-level interfaces needed for implementing a
+ namespace handler.
+</p>
+</BODY>
+
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/packageinfo
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/packageinfo (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/packageinfo 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1 @@
+version 1.0
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BeanArgument.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BeanArgument.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BeanArgument.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Metadata used in a Bean Component to inject arguments in a method or
+ * constructor. This metadata class describes the <code>argument</element>
+ */
+public interface BeanArgument {
+
+ /**
+ * The metadata for the value to inject into the parameter.
+ *
+ * This is the <code>value</code> attribute.
+ *
+ * @return the metadata for the value
+ */
+ Metadata getValue();
+
+ /**
+ * The type to convert the value into when invoking the constructor or
+ * factory method. If no explicit type was specified on the component
+ * definition then this method returns null.
+ *
+ * This is the <code>type</code> attribute.
+ *
+ * @return the explicitly specified type to convert the value into, or null
+ * if no type was specified in the component definition.
+ */
+ String getValueType();
+
+ /**
+ * The (zero-based) index into the parameter list of the method or
+ * constructor to be invoked for this parameter. This is determined either
+ * by explicitly specifying the index attribute in the component
+ * declaration, or by declaration order of constructor-arg elements if the
+ * index was not explicitly set.
+ *
+ * This is the <code>index</code> attribute.
+ *
+ *
+ * @return the zero-based parameter index
+ */
+ int getIndex();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BeanArgument.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BeanMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BeanMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BeanMetadata.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,153 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+import java.util.List;
+
+/**
+ * Metadata for a Bean Component.
+ *
+ * This class describes a <code>bean</code> element.
+ */
+public interface BeanMetadata extends Target, ComponentMetadata {
+
+ static final String SCOPE_SINGLETON = "singleton";
+ static final String SCOPE_PROTOTYPE = "prototype";
+ static final String SCOPE_BUNDLE = "bundle";
+
+ /**
+ * The name of the class type specified for this component.
+ *
+ * This is the <code>class</code> attribute.
+ *
+ * @return the name of the component class. If no class was specified in the
+ * component definition (because the a factory component is used
+ * instead) then this method will return null.
+ */
+ String getClassName();
+
+ /**
+ * The name of the init method specified for this component, if any.
+ *
+ * This is the <code>init-method</code> attribute.
+ *
+ * @return the method name of the specified init method, or null if no init
+ * method was specified.
+ */
+ String getInitMethodName();
+
+ /**
+ * The name of the destroy method specified for this component, if any.
+ *
+ * This is the <code>destroy-method</code> attribute.
+ *
+ * @return the method name of the specified destroy method, or null if no
+ * destroy method was specified.
+ */
+ String getDestroyMethodName();
+
+ /**
+ * The arguments for the factory method or constructor.
+ *
+ * Specified in all the child <code>argument<code> elements.
+ *
+ * @return The metadata for the factory method or constructor. Can be empty if no arguments are specified
+ */
+ List/* <BeanArgument> */getArguments();
+
+ /**
+ * The property injection metadata for this component.
+ *
+ * Specified in all the child <code>property</code> elements.
+ *
+ * @return an immutable collection of BeanProperty, with one
+ * entry for each property to be injected. If no property injection
+ * was specified for this component then an empty collection will be
+ * returned.
+ *
+ */
+ List /* <BeanProperty> */getProperties();
+
+ /**
+ * Is this component to be lazily instantiated?
+ *
+ * ### I assume the default is processed here?
+ *
+ * This is the <code>lazy-init</code> attribute or the
+ * <code>default-lazy-init</code> in the <code>blueprint</code> element
+ * if not set. ### I've renamed this from isLazy
+ *
+ * @return true, iff this component definition specifies lazy instantiation.
+ */
+ boolean isLazyInit();
+
+ /**
+ * Provides the name of the optional factory method.
+ *
+ * This is the <code>factory-method</code> attribute.
+ *
+ * @return The name of the factory method or <code>null</code>.
+ */
+ String getFactoryMethodName();
+
+ /**
+ * The component instance on which to invoke the factory method (if
+ * specified).
+ *
+ * The component is defined in the <code>factory-component</code>.
+ *
+ * @return when a factory method and factory component has been specified
+ * for this component, this operation returns the metadata
+ * specifying the component on which the factory method is to be
+ * invoked. When no factory component has been specified this
+ * operation will return null. A return value of null with a
+ * non-null factory method indicates that the factory method should
+ * be invoked as a static method on the component class itself. For
+ * a non-null return value, the Metadata object returned will be a
+ * RefMetadata or a TargetComponentMetadata instance.
+ */
+ Target getFactoryComponent();
+
+ /**
+ * The specified scope for the component lifecycle.
+ *
+ * @return a String indicating the scope specified for the component.
+ *
+ * @see #SCOPE_SINGLETON
+ * @see #SCOPE_PROTOTYPE
+ * @see #SCOPE_BUNDLE
+ */
+ String getScope();
+
+ /**
+ * Provide an actual class, this overrides the class name if set. This is
+ * useful for Namespace Handler services that do not want to force the
+ * Blueprint bundle to import implementation classes.
+ *
+ * @return Return the class to use in runtime or <code>null</code>.
+ */
+
+ Class /* <?> */getRuntimeClass();
+
+ /**
+ * The names of any components listed in a "depends-on" attribute for this
+ * component.
+ *
+ * @return an immutable List of component names for components that we have explicitly
+ * declared a dependency on, or an empty set if none.
+ */
+ List/*<String>*/ getExplicitDependencies();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BeanMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BeanProperty.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BeanProperty.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BeanProperty.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,41 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Metadata describing a property to be injected. Properties are defined
+ * following JavaBeans conventions.
+ */
+public interface BeanProperty {
+
+ /**
+ * The name of the property to be injected, following JavaBeans conventions.
+ *
+ * Defined in the <code>name</code> attribute.
+ *
+ * @return the property name.
+ */
+ String getName();
+
+ /**
+ * The metadata for the value to inject the property with.
+ *
+ * Defined in the <code>value</code> attribute or inlined component.
+ *
+ * @return the metadata for the property value.
+ */
+ Metadata getValue();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BeanProperty.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/CollectionMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/CollectionMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/CollectionMetadata.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,50 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+import java.util.List;
+
+/**
+ * Metadata for a collection based value. Members of the array are instances of Metadata.
+ * The Collection metadata can constrain (### convert) to a specific type.
+ */
+
+public interface CollectionMetadata extends NonNullMetadata {
+
+ /**
+ * Provide the interface that this collection must implement.
+ *
+ * This is used for Arrays (Object[]), Set, and List. This information
+ * is encoded in the element name.
+ *
+ *
+ * @return The interface class that the collection must implement.
+ */
+ Class/*<?>*/ getCollectionClass();
+
+ /**
+ * The value-type specified for the array
+ *
+ * The <code>value-type</code> attribute.
+ * ### Shouldnt this also support getRuntimeValueType()?
+ */
+ String getValueTypeName();
+
+ /**
+ * The of Metadata objects that describe the value.
+ */
+ List /*<Metadata>*/ getValues();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/CollectionMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ComponentMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ComponentMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ComponentMetadata.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+
+/**
+ * Base class for all components.
+ *
+ * @see BeanMetadata
+ * @see ServiceReferenceMetadata
+ * @see ServiceMetadata
+ */
+public interface ComponentMetadata extends NonNullMetadata {
+
+ /**
+ * The id of the component.
+ *
+ * ### renamed to getId
+ * @return component id. The component id can be <code>null</code> if this is an anonymously
+ * defined inner component.
+ */
+ String getId();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ComponentMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/IdRefMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/IdRefMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/IdRefMetadata.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * A value which represents the name of another component in the module context.
+ * The name itself will be injected, not the component that the name refers to.
+ *
+ */
+public interface IdRefMetadata extends NonNullMetadata {
+ /**
+ * The name of the referenced component.
+ * Defined in the <code>component</code> attribute.
+ *
+ */
+ String getComponentId();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/IdRefMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Listener.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Listener.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Listener.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,51 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Metadata for a listener interested in service bind and unbind events for a service
+ * reference.
+ */
+public interface Listener {
+
+ /**
+ * The component instance that will receive bind and unbind
+ * events. The returned value must reference a TargetListenerComponent
+ * either directly or indirectly. The return type will be either
+ * a RefMetadata instance or an TargetListenerComponent instance.
+ *
+ * Defined in the <code>ref</code> attribute or inlined component.
+ *
+ * @return the listener component reference.
+ */
+ Target getListenerComponent();
+
+ /**
+ * The name of the method to invoke on the listener component when
+ * a matching service is bound to the reference
+ *
+ * @return the bind callback method name.
+ */
+ String getBindMethodName();
+
+ /**
+ * The name of the method to invoke on the listener component when
+ * a service is unbound from the reference.
+ *
+ * @return the unbind callback method name.
+ */
+ String getUnbindMethodName();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Listener.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MapEntry.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MapEntry.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MapEntry.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Metadata for an entry. An entry is the member of a MapMetadata so that it
+ * can be treated as a CollectionMetadata with entries.
+ *
+ * Defined in the <code>entry</code> element.
+ *
+ */
+public interface MapEntry {
+ /**
+ * Keys must be non-null.
+ *
+ * Defined in the <code>key</code> attribute or element.
+ *
+ * @return the metadata for the key
+ */
+ NonNullMetadata getKey();
+
+ /**
+ * Return the metadata for the value.
+ *
+ * Defined in the <code>value</code> attribute or element<.
+ *
+ * @return the metadata for the value
+ */
+
+ Metadata getValue();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MapEntry.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MapMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MapMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MapMetadata.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,47 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+import java.util.List;
+
+/**
+ * A map-based value. This represented as a collection of entries (as it is done in the schema).
+ *
+ * A map is defined in the <code>map</code> element.
+ *
+ */
+public interface MapMetadata extends NonNullMetadata {
+ /**
+ * The key-type specified for map keys, or null if none given
+ *
+ * Defined in the <code>key-type</code> attribute.
+ * ### should we have getRuntimeKeyType?
+ */
+ String getKeyTypeName();
+
+ /**
+ * The value-type specified for the array
+ *
+ * ### should we have getRuntimeValueType?
+ * The <code>value-type</code> attribute.
+ */
+ String getValueTypeName();
+
+ /**
+ * The of Metadata objects that describe the value.
+ */
+ List /*<MapEntry>*/ getEntries();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MapMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Metadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Metadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Metadata.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) OSGi Alliance (2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Top level metadata. This represents any possible value.
+ *
+ */
+public interface Metadata {
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Metadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/NonNullMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/NonNullMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/NonNullMetadata.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Base interfaces for metadata that cannot be null. The NullMetadata is the
+ * only element not implementing this. Mainly used for keys in maps because they
+ * cannot be null.
+ */
+public interface NonNullMetadata extends Metadata {
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/NonNullMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/NullMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/NullMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/NullMetadata.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * A value specified to be null via the <null/> element.
+ */
+public interface NullMetadata extends Metadata {
+
+ static final NullMetadata NULL = new NullMetadata() {};
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/NullMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/PropsMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/PropsMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/PropsMetadata.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,41 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+import java.util.List;
+
+/**
+ * A java.util.Properties based value. The properties are defined as string to
+ * string. This means that the actual value can be returned.
+ *
+ * ### I do not like it that you loose the original order. And potential errors
+ * (like duplicate keys). I think this one should just go away. The
+ * CollectionMetadata has a collection type so the instantiation can ensure
+ *
+ * Defined in the <code>props</code> element.
+ *
+ */
+public interface PropsMetadata extends NonNullMetadata {
+
+ /**
+ * This is the same as getValuesMetadata but more type safe.
+ *
+ * Defined in <code>prop</code> sub elements.
+ *
+ * @return
+ */
+ List/*<MapEntry>*/ getEntries();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/PropsMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RefCollectionMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RefCollectionMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RefCollectionMetadata.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,85 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Service reference that binds to a collection of matching services from the
+ * OSGi service registry. This is the <code>ref-list</code> or
+ * <code>ref-set</code> element.
+ *
+ */
+public interface RefCollectionMetadata extends ServiceReferenceMetadata {
+
+ /**
+ * Create ordering based on comparison of service objects.
+ */
+ public static final int ORDERING_BASIS_SERVICE= 1;
+
+ /**
+ * Create ordering based on comparison of service reference objects.
+ */
+ public static final int ORDERING_BASIS_SERVICE_REFERENCE = 2;
+
+ /**
+ * Collection contains service instances
+ *
+ */
+ public static final int MEMBER_TYPE_SERVICE_INSTANCE = 1;
+
+ /**
+ * Collection contains service references
+ */
+ public static final int MEMBER_TYPE_SERVICE_REFERENCE = 2;
+
+ /**
+ * The type of collection to be created.
+ *
+ * This is implied by the element name: <code>ref-list</code> or <code>ref-set</code>.
+ *
+ * @return Class object for the specified collection type (List, Set).
+ */
+ Class/* <?> */getCollectionType();
+
+ /**
+ * The comparator specified for ordering the collection, or <code>null</code> if no
+ * comparator was specified.
+ *
+ * Defined in the <code>comparator</code> child element or <code>comparator-ref</code>
+ * attribute.
+ *
+ * @return if a comparator was specified then a Value object identifying the
+ * comparator (a ComponentValue, ReferenceValue, or
+ * ReferenceNameValue) is returned. If no comparator was specified
+ * then null will be returned.
+ */
+ Target getComparator();
+
+ /**
+ * The basis on which to perform ordering, if specified.
+ *
+ * Defined in the <code>ordering-basis</code> attribute.
+ *
+ * @return one of ORDERING_BASIS_SERVICES and ORDERING_BASIS_SERVICE_REFERENCE
+ */
+ int getOrderingBasis();
+
+ /**
+ * Whether the collection will contain service instances, or service
+ * references
+ * Defined in the <code>member-type</code> attribute.
+ */
+ int getMemberType();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RefCollectionMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RefMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RefMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RefMetadata.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * A value which refers to another component in the module context by name.
+ */
+public interface RefMetadata extends Target, NonNullMetadata {
+ /**
+ * The name of the referenced component.
+ * Defined in the <code>component</code> attribute.
+ *
+ */
+ String getComponentId();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RefMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ReferenceMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ReferenceMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ReferenceMetadata.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+/**
+ *
+ * Service reference that will bind to a single matching service in the service
+ * registry.
+ *
+ * Defines the <code>reference</code> element.
+ *
+ */
+public interface ReferenceMetadata extends ServiceReferenceMetadata,
+ Target {
+
+ /**
+ * Timeout for service invocations when a matching backing service is
+ * unavailable.
+ * Defined in the <code>timeout</code> attribute.
+ *
+ * @return service invocation timeout in milliseconds
+ */
+ long getTimeout();
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ReferenceMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RegistrationListener.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RegistrationListener.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RegistrationListener.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Metadata for a listener interested in service registration and unregistration
+ * events for an exported service.
+ */
+public interface RegistrationListener {
+
+ /**
+ * The component instance that will receive registration and unregistration
+ * events. The returned value must reference a TargetListenerComponent
+ * either directly or indirectly. The return type will be either
+ * a RefMetadata instance or an TargetListenerComponent instance.
+ *
+ * Defined in the <code>listener</code> child element.
+ *
+ * @return the listener component reference.
+ */
+ Target getListenerComponent();
+
+ /**
+ * The name of the method to invoke on the listener component when
+ * the exported service is registered with the service registry.
+ *
+ * Defined in the <code>registration-method</code> attribute.
+ *
+ * @return the registration callback method name.
+ */
+ String getRegistrationMethodName();
+
+ /**
+ * The name of the method to invoke on the listener component when
+ * the exported service is unregistered from the service registry.
+ *
+ * Defined in the <code>unregistration-method</code> attribute.
+ *
+ * @return the unregistration callback method name.
+ */
+ String getUnregistrationMethodName();
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RegistrationListener.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceMetadata.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,117 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+import java.util.Collection;
+import java.util.List;
+
+
+/**
+ * Metadata representing a service to be exported by a module context.
+ *
+ */
+public interface ServiceMetadata extends ComponentMetadata, Target {
+
+ /**
+ * Do not auto-detect types for advertised service intefaces
+ */
+ public static final int AUTO_EXPORT_DISABLED = 1;
+
+ /**
+ * Advertise all Java interfaces implemented by the exported component as
+ * service interfaces.
+ */
+ public static final int AUTO_EXPORT_INTERFACES= 2;
+
+ /**
+ * Advertise all Java classes in the hierarchy of the exported component's type
+ * as service interfaces.
+ */
+ public static final int AUTO_EXPORT_CLASS_HIERARCHY = 3;
+
+ /**
+ * Advertise all Java classes and interfaces in the exported component's type as
+ * service interfaces.
+ */
+ public static final int AUTO_EXPORT_ALL_CLASSES = 4;
+
+ /**
+ * The component that is to be exported as a service. Value must refer to a component and
+ * therefore be either a RefMetadata or BeanMetadata.
+ *
+ * Defined in the <code>registration-method</code> attribute.
+ *
+ * @return the component to be exported as a service.
+ */
+ Target getServiceComponent();
+
+ /**
+ * The type names of the set of interface types that the service should be advertised
+ * as supporting, as specified in the component declaration.
+ *
+ * Defined in the <code>interface</code> attribute or <code>interfaces</code> element.
+ *
+ * @return an immutable set of (String) type names, or an empty set if using auto-export
+ */
+ List/*<String>*/ getInterfaceNames();
+
+ /**
+ * Return the auto-export mode specified.
+ *
+ * Defined in the <code>auto-export</code> attribute.
+ *
+ * @return One of AUTO_EXPORT_DISABLED, AUTO_EXPORT_INTERFACES, AUTO_EXPORT_CLASS_HIERARCHY, AUTO_EXPORT_ALL_CLASSES
+ */
+ int getAutoExportMode();
+
+ /**
+ * The user declared properties to be advertised with the service.
+ *
+ * Defined in the <code>service-properties</code> element.
+ *
+ * @return Map containing the set of user declared service properties (may be
+ * empty if no properties were specified).
+ */
+ List/*<MapEntry>*/ getServiceProperties();
+
+ /**
+ * The ranking value to use when advertising the service
+ *
+ * Defined in the <code>ranking</code> attribute.
+ *
+ * @return service ranking
+ */
+ int getRanking();
+
+ /**
+ * The listeners that have registered to be notified when the exported service
+ * is registered and unregistered with the framework.
+ *
+ * Defined in the <code>registration-listener</code> elements.
+ *
+ * @return an immutable collection of RegistrationListenerMetadata
+ */
+ Collection /*<RegistrationListener>*/ getRegistrationListeners();
+
+ /**
+ * The names of any components listed in a "depends-on" attribute for this
+ * component.
+ *
+ * @return an immutable List of component names for components that we have explicitly
+ * declared a dependency on, or an empty set if none.
+ */
+ List/*<String>*/ getExplicitDependencies();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceReferenceMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceReferenceMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceReferenceMetadata.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,88 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+import java.util.Collection;
+import java.util.List;
+
+
+/**
+ * Metadata describing a reference to a service that is to be imported into the module
+ * context from the OSGi service registry.
+ *
+ */
+public interface ServiceReferenceMetadata extends ComponentMetadata {
+
+ /**
+ * A matching service is required at all times.
+ */
+ public static final int AVAILABILITY_MANDATORY = 1;
+
+ /**
+ * A matching service is not required to be present.
+ */
+ public static final int AVAILABILITY_OPTIONAL = 2;
+
+ /**
+ * Whether or not a matching service is required at all times.
+ *
+ * Defined in the <code>availibility</code> attribute.
+ *
+ * @return one of AVAILABILITY_MANDATORY or AVAILABILITY_OPTIONAL
+ */
+ int getAvailability();
+
+ /**
+ * The interface types that the matching service must support
+ *
+ * Defined in the <code>interface</code> attribute or <code>interfaces</code> element.
+ *
+ * @return an immutable list of type names
+ */
+ List/*<String>*/ getInterfaceNames();
+
+ /**
+ * The value of the component-name attribute, if specified. This specifies
+ * the name of a component that is registered in the service registry. This will
+ * create an automatic filter (appended wit the filter if set) to select this
+ * component based on its automatic ###name attribute.
+ *
+ * Defined in the <code>component-name</code> attribute.
+ *
+ * @return the component name attribute value, or null if the attribute was not specified
+ */
+ String getComponentName();
+
+ /**
+ * The filter expression that a matching service must pass
+ *
+ * Defined in the <code>filter</code> attribute.
+ *
+ * @return filter expression
+ */
+ String getFilter();
+
+ /**
+ * The set of listeners registered to receive bind and unbind events for
+ * backing services.
+ *
+ * Defined in the <code>listener</code> elements.
+ *
+ * @return an immutable collection of registered ListenerMetadata
+ */
+ Collection /*<Listener>*/ getServiceListeners();
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceReferenceMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Target.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Target.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Target.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+
+/**
+ * Provides a common interface for components that can be used as a direct target
+ * for method calls. These are bean, reference, and ref.
+ *
+ */
+public interface Target extends Metadata {
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Target.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ValueMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ValueMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ValueMetadata.java 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * A simple string value that will be type-converted if necessary before
+ * injecting into a target.
+ *
+ * This class is representing the <code>value</code> element.
+ *
+ */
+public interface ValueMetadata extends NonNullMetadata {
+ /**
+ * The string value (unconverted) of this value).
+ *
+ * Defined in the <code>value</code> attribute or text part.
+ */
+ String getStringValue();
+
+ /**
+ * The name of the type to which this value should be coerced. May be null.
+ *
+ * Defined in the <code>type</code> attribute.
+ */
+ String getTypeName();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ValueMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/package.html
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/package.html (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/package.html 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1,35 @@
+<!-- $Revision: 5654 $ -->
+<BODY>
+<p>Blueprint Reflection Package Version 1.0.
+<p>Bundles wishing to use this package must list the package
+in the Import-Package header of the bundle's manifest.
+For example:
+<pre>
+Import-Package: org.osgi.service.blueprint.reflect; version="[1.0,2.0)"
+</pre>
+<p> This package provides a reflection-based view of the configuration information for a given
+ module context. The top-level mapping between configuration elements and reflection types is as follows:
+</p>
+
+<pre>
+ Configuration Element Corresponding Reflection Type(s)
+ component LocalComponentMetadata, ComponentValue
+ reference UnaryServiceReferenceComponentMetadata
+ ref-set,ref-list CollectionBasedServiceReferenceComponentMetadata
+ service ServiceExportComponentMetadata
+ constructor-arg ConstructorInjectionMetadata, ParameterSpecification
+ property PropertyInjectionMetadata
+ listener BindingListenerMetadata
+ registration-listener RegistrationListenerMetadata
+ array< ArrayValue
+ ref ReferenceValue
+ id-ref ReferenceNameValue
+ list ListValue
+ map MapValue
+ null NullValue
+ props PropertiesValue
+ set SetValue
+ value TypedStringValue
+<//pre>
+</BODY>
+
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/packageinfo
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/packageinfo (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/packageinfo 2009-05-13 11:50:27 UTC (rev 88808)
@@ -0,0 +1 @@
+version 1.0
17 years, 2 months
JBoss-OSGI SVN: r88787 - in projects/jboss-osgi/trunk/testsuite/trailblazer/src/test: java/org/jboss/test/osgi/trailblazer/audit and 9 other directories.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-13 04:34:06 -0400 (Wed, 13 May 2009)
New Revision: 88787
Added:
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/AuditService.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/PaymentService.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/Product.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/Shop.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/ShoppingMall.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/audit/AuditServiceMBean.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/mall/ServiceActivator.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/mall/ShoppingMallImpl.java
Removed:
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/audit/AuditService.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/mall/ShoppingMall.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/mall/internal/
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/PaymentService.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/Shop.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/types/
Modified:
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/frontend/HttpRenderServlet.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/frontend/RequestHandler.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/frontend/ShoppingCart.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/creditcard/CreditCardService.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/creditcard/ServiceActivator.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/paypal/PayPalService.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/paypal/ServiceActivator.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/pets/PetStore.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/pets/ServiceActivator.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/sports/ClimbingStore.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/sports/ServiceActivator.java
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/frontend.bnd
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/mall.bnd
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/pay-creditcard.bnd
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/pay-paypal.bnd
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/shop-pets.bnd
projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/shop-sports.bnd
Log:
Move cotract to the top level
Added: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/AuditService.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/AuditService.java (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/AuditService.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -0,0 +1,16 @@
+package org.jboss.test.osgi.trailblazer;
+
+
+
+/**
+ * [TODO]
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 10-May-2009
+ */
+public interface AuditService
+{
+ int getTotalPurchases();
+
+ void purchaseProduct(Product product);
+}
\ No newline at end of file
Property changes on: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/AuditService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/PaymentService.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/PaymentService.java (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/PaymentService.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -0,0 +1,14 @@
+package org.jboss.test.osgi.trailblazer;
+
+import java.util.Collection;
+
+/**
+ * [TODO]
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 10-May-2009
+ */
+public interface PaymentService
+{
+ Collection<String> listPaymentTypes();
+}
\ No newline at end of file
Property changes on: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/PaymentService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Copied: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/Product.java (from rev 88755, projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/types/Product.java)
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/Product.java (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/Product.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -0,0 +1,77 @@
+/*
+ * 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.test.osgi.trailblazer;
+
+import java.io.Serializable;
+
+
+//$Id$
+
+
+/**
+ * [TODO]
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 10-May-2009
+ */
+public class Product implements Serializable
+{
+ private static final long serialVersionUID = 1L;
+
+ private String name;
+ private Integer price;
+ private Shop shop;
+
+ public Product(Shop shop, String name, Integer price)
+ {
+ this.shop = shop;
+ this.name = name;
+ this.price = price;
+ }
+
+ public Product(String name, Integer price)
+ {
+ this.name = name;
+ this.price = price;
+ }
+
+ public Shop getShop()
+ {
+ return shop;
+ }
+
+
+ public void setShop(Shop shop)
+ {
+ this.shop = shop;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public Integer getPrice()
+ {
+ return price;
+ }
+}
Added: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/Shop.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/Shop.java (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/Shop.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -0,0 +1,40 @@
+package org.jboss.test.osgi.trailblazer;
+
+import java.util.Collection;
+
+
+/**
+ * A {@link Shop} represents and individual shop implementation.
+ * <p/>
+ * The trailblazer supports multiple shops. Each shop maintains a collection of
+ * {@link Products}s and a {@link PaymentService}
+ * <p/>
+ * Shops can get registered and unregistered at any time.
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 10-May-2009
+ */
+public interface Shop
+{
+ /**
+ * Get the name of the shop
+ */
+ String getName();
+
+ /**
+ * Get the product list
+ * @return an empty collection if there are no products
+ */
+ Collection<Product> getProductList();
+
+ /**
+ * Get a product by name
+ * @return null if the product does not exist
+ */
+ Product getProductByName(String name);
+
+ /**
+ * Get the associated payment service.
+ */
+ PaymentService getPaymentService();
+}
\ No newline at end of file
Property changes on: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/Shop.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/ShoppingMall.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/ShoppingMall.java (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/ShoppingMall.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -0,0 +1,28 @@
+package org.jboss.test.osgi.trailblazer;
+
+import java.util.Collection;
+
+
+/**
+ * [TODO]
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 10-May-2009
+ */
+public interface ShoppingMall
+{
+ /**
+ * Get the collection of currently registered shops.
+ */
+ Collection<Shop> getShops();
+
+ /**
+ * Get a shop by name.
+ */
+ Shop getShopByName(String shopName);
+
+ /**
+ * Purchase a product
+ */
+ void purchaseProduct(Product product);
+}
\ No newline at end of file
Property changes on: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/ShoppingMall.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Deleted: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/audit/AuditService.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/audit/AuditService.java 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/audit/AuditService.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -1,17 +0,0 @@
-package org.jboss.test.osgi.trailblazer.audit;
-
-import org.jboss.test.osgi.trailblazer.types.Product;
-
-
-/**
- * [TODO]
- *
- * @author thomas.diesler(a)jboss.com
- * @since 10-May-2009
- */
-public interface AuditService
-{
- int getTotalPurchases();
-
- void purchaseProduct(Product product);
-}
\ No newline at end of file
Added: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/audit/AuditServiceMBean.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/audit/AuditServiceMBean.java (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/audit/AuditServiceMBean.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -0,0 +1,14 @@
+package org.jboss.test.osgi.trailblazer.audit;
+
+
+
+/**
+ * [TODO]
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 10-May-2009
+ */
+public interface AuditServiceMBean
+{
+ int getTotalPurchases();
+}
\ No newline at end of file
Property changes on: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/audit/AuditServiceMBean.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/frontend/HttpRenderServlet.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/frontend/HttpRenderServlet.java 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/frontend/HttpRenderServlet.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -35,7 +35,7 @@
import javax.servlet.http.HttpServletResponse;
import org.jboss.osgi.common.log.LogServiceTracker;
-import org.jboss.test.osgi.trailblazer.mall.ShoppingMall;
+import org.jboss.test.osgi.trailblazer.ShoppingMall;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import org.osgi.service.http.HttpService;
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/frontend/RequestHandler.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/frontend/RequestHandler.java 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/frontend/RequestHandler.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -31,10 +31,10 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import org.jboss.test.osgi.trailblazer.mall.ShoppingMall;
-import org.jboss.test.osgi.trailblazer.pay.PaymentService;
-import org.jboss.test.osgi.trailblazer.shop.Shop;
-import org.jboss.test.osgi.trailblazer.types.Product;
+import org.jboss.test.osgi.trailblazer.PaymentService;
+import org.jboss.test.osgi.trailblazer.Product;
+import org.jboss.test.osgi.trailblazer.Shop;
+import org.jboss.test.osgi.trailblazer.ShoppingMall;
/**
* [TODO]
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/frontend/ShoppingCart.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/frontend/ShoppingCart.java 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/frontend/ShoppingCart.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -32,8 +32,8 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
-import org.jboss.test.osgi.trailblazer.shop.Shop;
-import org.jboss.test.osgi.trailblazer.types.Product;
+import org.jboss.test.osgi.trailblazer.Product;
+import org.jboss.test.osgi.trailblazer.Shop;
/**
* A basic implementation of a shopping cart that is maintained in the user session
Added: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/mall/ServiceActivator.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/mall/ServiceActivator.java (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/mall/ServiceActivator.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -0,0 +1,64 @@
+/*
+ * 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.test.osgi.trailblazer.mall;
+
+//$Id$
+
+import org.jboss.osgi.common.log.LogServiceTracker;
+import org.jboss.test.osgi.trailblazer.ShoppingMall;
+import org.jboss.test.osgi.trailblazer.frontend.HttpRenderServlet;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceRegistration;
+import org.osgi.service.http.HttpService;
+import org.osgi.service.log.LogService;
+
+/**
+ * A bundle activator that registers the {@link HttpRenderServlet} with the {@link HttpService}
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 10-May-2009
+ */
+public class ServiceActivator implements BundleActivator
+{
+ private LogService log;
+ private ServiceRegistration registration;
+
+ public void start(BundleContext context)
+ {
+ this.log = new LogServiceTracker(context);
+
+ log.log(LogService.LOG_INFO, "Register ShoppingMallService");
+ ShoppingMallImpl mallService = new ShoppingMallImpl(context);
+ registration = context.registerService(ShoppingMall.class.getName(), mallService, null);
+ }
+
+ public void stop(BundleContext context)
+ {
+ if (registration != null)
+ {
+ log.log(LogService.LOG_INFO, "Unregister ShoppingMallService");
+ registration.unregister();
+ registration = null;
+ }
+ }
+}
\ No newline at end of file
Property changes on: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/mall/ServiceActivator.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Deleted: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/mall/ShoppingMall.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/mall/ShoppingMall.java 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/mall/ShoppingMall.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -1,30 +0,0 @@
-package org.jboss.test.osgi.trailblazer.mall;
-
-import java.util.Collection;
-
-import org.jboss.test.osgi.trailblazer.shop.Shop;
-import org.jboss.test.osgi.trailblazer.types.Product;
-
-/**
- * [TODO]
- *
- * @author thomas.diesler(a)jboss.com
- * @since 10-May-2009
- */
-public interface ShoppingMall
-{
- /**
- * Get the collection of currently registered shops.
- */
- Collection<Shop> getShops();
-
- /**
- * Get a shop by name.
- */
- Shop getShopByName(String shopName);
-
- /**
- * Purchase a product
- */
- void purchaseProduct(Product product);
-}
\ No newline at end of file
Added: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/mall/ShoppingMallImpl.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/mall/ShoppingMallImpl.java (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/mall/ShoppingMallImpl.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -0,0 +1,103 @@
+/*
+ * 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.test.osgi.trailblazer.mall;
+
+//$Id$
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+import org.jboss.test.osgi.trailblazer.AuditService;
+import org.jboss.test.osgi.trailblazer.PaymentService;
+import org.jboss.test.osgi.trailblazer.Product;
+import org.jboss.test.osgi.trailblazer.Shop;
+import org.jboss.test.osgi.trailblazer.ShoppingMall;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.InvalidSyntaxException;
+import org.osgi.framework.ServiceReference;
+
+/**
+ * An implementation of {@link ShoppingMall}
+ *
+ * @author thomas.diesler(a)jboss.com
+ * @since 10-May-2009
+ */
+public class ShoppingMallImpl implements ShoppingMall
+{
+ private BundleContext context;
+
+ public ShoppingMallImpl(BundleContext context)
+ {
+ this.context = context;
+ }
+
+ public Shop getShopByName(String shopName)
+ {
+ Shop shop = null;
+ for (Shop aux : getShops())
+ {
+ if (aux.getName().equals(shopName))
+ {
+ shop = aux;
+ break;
+ }
+ }
+ return shop;
+ }
+
+ public Collection<Shop> getShops()
+ {
+ Collection<Shop> shops = new ArrayList<Shop>();
+ try
+ {
+ ServiceReference[] shoprefs = context.getServiceReferences(Shop.class.getName(), null);
+ if (shoprefs != null)
+ {
+ for(ServiceReference sref : shoprefs)
+ {
+ shops.add((Shop)context.getService(sref));
+ }
+ }
+ }
+ catch (InvalidSyntaxException ex)
+ {
+ // ignore, because we don't have a filter
+ }
+ return shops;
+ }
+
+ public void purchaseProduct(Product product)
+ {
+ Shop shop = product.getShop();
+ PaymentService paymentService = shop.getPaymentService();
+ if (paymentService == null)
+ throw new IllegalStateException("Payment service not available");
+
+ ServiceReference sref = context.getServiceReference(AuditService.class.getName());
+ if (sref != null)
+ {
+ AuditService auditService = (AuditService)context.getService(sref);
+ auditService.purchaseProduct(product);
+ }
+ }
+
+}
\ No newline at end of file
Property changes on: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/mall/ShoppingMallImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Deleted: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/PaymentService.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/PaymentService.java 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/PaymentService.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -1,14 +0,0 @@
-package org.jboss.test.osgi.trailblazer.pay;
-
-import java.util.Collection;
-
-/**
- * [TODO]
- *
- * @author thomas.diesler(a)jboss.com
- * @since 10-May-2009
- */
-public interface PaymentService
-{
- Collection<String> listPaymentTypes();
-}
\ No newline at end of file
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/creditcard/CreditCardService.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/creditcard/CreditCardService.java 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/creditcard/CreditCardService.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -3,7 +3,7 @@
import java.util.ArrayList;
import java.util.Collection;
-import org.jboss.test.osgi.trailblazer.pay.PaymentService;
+import org.jboss.test.osgi.trailblazer.PaymentService;
/**
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/creditcard/ServiceActivator.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/creditcard/ServiceActivator.java 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/creditcard/ServiceActivator.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -26,7 +26,7 @@
import java.util.Hashtable;
import org.jboss.osgi.common.log.LogServiceTracker;
-import org.jboss.test.osgi.trailblazer.pay.PaymentService;
+import org.jboss.test.osgi.trailblazer.PaymentService;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceRegistration;
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/paypal/PayPalService.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/paypal/PayPalService.java 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/paypal/PayPalService.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -3,7 +3,7 @@
import java.util.ArrayList;
import java.util.Collection;
-import org.jboss.test.osgi.trailblazer.pay.PaymentService;
+import org.jboss.test.osgi.trailblazer.PaymentService;
/**
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/paypal/ServiceActivator.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/paypal/ServiceActivator.java 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/pay/paypal/ServiceActivator.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -26,7 +26,7 @@
import java.util.Hashtable;
import org.jboss.osgi.common.log.LogServiceTracker;
-import org.jboss.test.osgi.trailblazer.pay.PaymentService;
+import org.jboss.test.osgi.trailblazer.PaymentService;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceRegistration;
Deleted: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/Shop.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/Shop.java 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/Shop.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -1,42 +0,0 @@
-package org.jboss.test.osgi.trailblazer.shop;
-
-import java.util.Collection;
-
-import org.jboss.test.osgi.trailblazer.pay.PaymentService;
-import org.jboss.test.osgi.trailblazer.types.Product;
-
-/**
- * A {@link Shop} represents and individual shop implementation.
- * <p/>
- * The trailblazer supports multiple shops. Each shop maintains a collection of
- * {@link Products}s and a {@link PaymentService}
- * <p/>
- * Shops can get registered and unregistered at any time.
- *
- * @author thomas.diesler(a)jboss.com
- * @since 10-May-2009
- */
-public interface Shop
-{
- /**
- * Get the name of the shop
- */
- String getName();
-
- /**
- * Get the product list
- * @return an empty collection if there are no products
- */
- Collection<Product> getProductList();
-
- /**
- * Get a product by name
- * @return null if the product does not exist
- */
- Product getProductByName(String name);
-
- /**
- * Get the associated payment service.
- */
- PaymentService getPaymentService();
-}
\ No newline at end of file
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/pets/PetStore.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/pets/PetStore.java 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/pets/PetStore.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -28,9 +28,9 @@
import java.util.LinkedHashMap;
import java.util.Map;
-import org.jboss.test.osgi.trailblazer.pay.PaymentService;
-import org.jboss.test.osgi.trailblazer.shop.Shop;
-import org.jboss.test.osgi.trailblazer.types.Product;
+import org.jboss.test.osgi.trailblazer.PaymentService;
+import org.jboss.test.osgi.trailblazer.Product;
+import org.jboss.test.osgi.trailblazer.Shop;
import org.osgi.framework.BundleContext;
import org.osgi.framework.InvalidSyntaxException;
import org.osgi.framework.ServiceReference;
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/pets/ServiceActivator.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/pets/ServiceActivator.java 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/pets/ServiceActivator.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -24,7 +24,7 @@
//$Id$
import org.jboss.osgi.common.log.LogServiceTracker;
-import org.jboss.test.osgi.trailblazer.shop.Shop;
+import org.jboss.test.osgi.trailblazer.Shop;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceRegistration;
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/sports/ClimbingStore.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/sports/ClimbingStore.java 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/sports/ClimbingStore.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -33,9 +33,9 @@
import javax.naming.NamingException;
import org.jboss.osgi.jndi.NamingService;
-import org.jboss.test.osgi.trailblazer.pay.PaymentService;
-import org.jboss.test.osgi.trailblazer.shop.Shop;
-import org.jboss.test.osgi.trailblazer.types.Product;
+import org.jboss.test.osgi.trailblazer.PaymentService;
+import org.jboss.test.osgi.trailblazer.Product;
+import org.jboss.test.osgi.trailblazer.Shop;
import org.osgi.framework.BundleContext;
import org.osgi.framework.InvalidSyntaxException;
import org.osgi.framework.ServiceReference;
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/sports/ServiceActivator.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/sports/ServiceActivator.java 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/java/org/jboss/test/osgi/trailblazer/shop/sports/ServiceActivator.java 2009-05-13 08:34:06 UTC (rev 88787)
@@ -24,7 +24,7 @@
//$Id$
import org.jboss.osgi.common.log.LogServiceTracker;
-import org.jboss.test.osgi.trailblazer.shop.Shop;
+import org.jboss.test.osgi.trailblazer.Shop;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceRegistration;
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/frontend.bnd
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/frontend.bnd 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/frontend.bnd 2009-05-13 08:34:06 UTC (rev 88787)
@@ -6,12 +6,7 @@
Private-Package: org.jboss.test.osgi.trailblazer.frontend
-Export-Package: \
- org.jboss.test.osgi.trailblazer.audit, \
- org.jboss.test.osgi.trailblazer.mall, \
- org.jboss.test.osgi.trailblazer.pay, \
- org.jboss.test.osgi.trailblazer.shop, \
- org.jboss.test.osgi.trailblazer.types
+Export-Package: org.jboss.test.osgi.trailblazer
Import-Package: \
javax.servlet*, \
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/mall.bnd
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/mall.bnd 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/mall.bnd 2009-05-13 08:34:06 UTC (rev 88787)
@@ -2,17 +2,13 @@
Bundle-SymbolicName: trailblazer-mall
-Bundle-Activator: org.jboss.test.osgi.trailblazer.mall.internal.ServiceActivator
+Bundle-Activator: org.jboss.test.osgi.trailblazer.mall.ServiceActivator
-Private-Package: org.jboss.test.osgi.trailblazer.mall.internal
+Private-Package: org.jboss.test.osgi.trailblazer.mall
Import-Package: \
org.osgi.framework, \
org.osgi.service.log, \
org.jboss.osgi.common.log, \
- org.jboss.test.osgi.trailblazer.audit, \
- org.jboss.test.osgi.trailblazer.mall, \
- org.jboss.test.osgi.trailblazer.pay, \
- org.jboss.test.osgi.trailblazer.shop, \
- org.jboss.test.osgi.trailblazer.types
+ org.jboss.test.osgi.trailblazer
\ No newline at end of file
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/pay-creditcard.bnd
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/pay-creditcard.bnd 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/pay-creditcard.bnd 2009-05-13 08:34:06 UTC (rev 88787)
@@ -9,4 +9,4 @@
org.osgi.framework, \
org.osgi.service.log, \
org.jboss.osgi.common.log, \
- org.jboss.test.osgi.trailblazer.pay
+ org.jboss.test.osgi.trailblazer
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/pay-paypal.bnd
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/pay-paypal.bnd 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/pay-paypal.bnd 2009-05-13 08:34:06 UTC (rev 88787)
@@ -9,4 +9,4 @@
org.osgi.framework, \
org.osgi.service.log, \
org.jboss.osgi.common.log, \
- org.jboss.test.osgi.trailblazer.pay
+ org.jboss.test.osgi.trailblazer
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/shop-pets.bnd
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/shop-pets.bnd 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/shop-pets.bnd 2009-05-13 08:34:06 UTC (rev 88787)
@@ -9,6 +9,4 @@
org.osgi.framework, \
org.osgi.service.log, \
org.jboss.osgi.common.log, \
- org.jboss.test.osgi.trailblazer.pay, \
- org.jboss.test.osgi.trailblazer.shop, \
- org.jboss.test.osgi.trailblazer.types
+ org.jboss.test.osgi.trailblazer
Modified: projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/shop-sports.bnd
===================================================================
--- projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/shop-sports.bnd 2009-05-13 08:14:55 UTC (rev 88786)
+++ projects/jboss-osgi/trunk/testsuite/trailblazer/src/test/resources/trailblazer/shop-sports.bnd 2009-05-13 08:34:06 UTC (rev 88787)
@@ -11,6 +11,4 @@
org.osgi.service.log, \
org.jboss.osgi.jndi, \
org.jboss.osgi.common.log, \
- org.jboss.test.osgi.trailblazer.pay, \
- org.jboss.test.osgi.trailblazer.shop, \
- org.jboss.test.osgi.trailblazer.types
+ org.jboss.test.osgi.trailblazer
17 years, 2 months
JBoss-OSGI SVN: r88768 - in projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org: osgi and 5 other directories.
by jboss-osgi-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-05-12 17:11:25 -0400 (Tue, 12 May 2009)
New Revision: 88768
Added:
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ModuleContext.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ModuleContextAware.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/NoSuchComponentException.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentDefinitionRegistry.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentNameAlreadyInUseException.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/NamespaceHandler.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ParserContext.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BindingListenerMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/CollectionBasedServiceReferenceComponentMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ComponentMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ComponentValue.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ConstructorInjectionMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/FieldInjectionMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/IndexedParameterSpecification.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ListValue.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/LocalComponentMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MapValue.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MethodInjectionMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/NamedParameterSpecification.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ParameterSpecification.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/PropertyInjectionMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ReferenceNameValue.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ReferenceValue.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RegistrationListenerMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceExportComponentMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceReferenceComponentMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/SetValue.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/TypedParameterSpecification.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/TypedStringValue.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/UnaryServiceReferenceComponentMetadata.java
projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Value.java
Log:
Add blueprint API
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ModuleContext.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ModuleContext.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ModuleContext.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,131 @@
+
+package org.osgi.service.blueprint.context;
+
+import org.osgi.framework.BundleContext;
+import org.osgi.service.blueprint.reflect.ComponentMetadata;
+import org.osgi.service.blueprint.reflect.LocalComponentMetadata;
+import org.osgi.service.blueprint.reflect.ServiceExportComponentMetadata;
+import org.osgi.service.blueprint.reflect.ServiceReferenceComponentMetadata;
+
+/**
+ * ModuleContext providing access to the components, service exports, and
+ * service references of a module. Only bundles in the ACTIVE state may
+ * have an associated ModuleContext. A given BundleContext has at most one associated
+ * ModuleContext.
+ *
+ * An instance of ModuleContext may be obtained from within a module context
+ * by implementing the ModuleContextAware interface on a component class.
+ * Alternatively you can look up ModuleContext services in the service registry.
+ * The Constants.BUNDLE_SYMBOLICNAME and Constants.BUNDLE_VERSION service
+ * properties can be used to determine which bundle the published ModuleContext
+ * service is associated with.
+ *
+ * A ModuleContext implementation must support safe concurrent access. It is legal
+ * for the set of named components and component metadata to change between invocations
+ * on the same thread if another thread is concurrently modifying the same mutable ModuleContext
+ * implementation object.
+ *
+ * @see ModuleContextAware
+ * @see org.osgi.framework.Constants
+ *
+ */
+public interface ModuleContext {
+
+ /**
+ * reason code for destroy method callback of a managed service factory
+ * created component, when the component is being disposed because
+ * the corresponding configuration admin object was deleted.
+ */
+ public static final int CONFIGURATION_ADMIN_OBJECT_DELETED = 1;
+
+ /**
+ * reason code for destroy method callback of a managed service factory
+ * created component, when the component is being disposed because
+ * the bundle is being stopped.
+ */
+ public static final int BUNDLE_STOPPING = 2;
+
+ /**
+ * Name of the property used to provide the symbolic name of the bundle on whose behalf
+ * a ModuleContext service has been published.
+ */
+ public static final String SYMBOLIC_NAME_PROPERTY = "osgi.service.blueprint.symbolicname";
+
+ /**
+ * Name of the property used to provide the version of the bundle on whose behalf a ModuleContext
+ * service has been published.
+ */
+ public static final String VERSION_PROPERTY = "osgi.service.blueprint.version";
+
+ /**
+ * The names of all the named components within the module context.
+ *
+ * @return an array containing the names of all of the components within
+ * the module.
+ */
+ String[] getComponentNames();
+
+ /**
+ * Get the component instance for a given named component.
+ *
+ * @param name the name of the component for which the instance is to be retrieved
+ *
+ * @return the component instance, the type of the returned object is dependent
+ * on the component definition, and may be determined by introspecting the
+ * component metadata.
+ *
+ * @throws NoSuchNamedComponentException if the name specified is not the name of a
+ * component within the module.
+ */
+ Object getComponent(String name) throws NoSuchComponentException;
+
+ /**
+ * Get the component metadata for a given named component.
+ *
+ * @param name the name of the component for which the metadata is to be retrieved.
+ *
+ * @return the component metadata for the component.
+ *
+ * @throws NoSuchNamedComponentException if the name specified is not the name of a
+ * component within the module.
+ */
+ ComponentMetadata getComponentMetadata(String name) throws NoSuchComponentException;
+
+ /**
+ * Get the service reference metadata for every OSGi service referenced by
+ * this module.
+ *
+ * @return an array of metadata, with one entry for each referenced service.
+ * If the module does not reference any services then an empty array will be
+ * returned.
+ */
+ ServiceReferenceComponentMetadata[] getReferencedServicesMetadata();
+
+ /**
+ * Get the service export metadata for every service exported by this
+ * module.
+ *
+ * @return an array of metadata, with one entry for each service export.
+ * If the module does not export any services then an empty array will be
+ * returned.
+ */
+ ServiceExportComponentMetadata[] getExportedServicesMetadata();
+
+ /**
+ * Get the metadata for all components defined locally within this module.
+ *
+ * @return an array of metadata, with one entry for each component.
+ * If the module does not define any local components then an empty array will
+ * be returned.
+ */
+ LocalComponentMetadata[] getLocalComponentsMetadata();
+
+ /**
+ * Get the bundle context of the bundle this module context is
+ * associated with.
+ *
+ * @return the module's bundle context
+ */
+ BundleContext getBundleContext();
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ModuleContext.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ModuleContextAware.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ModuleContextAware.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ModuleContextAware.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,19 @@
+package org.osgi.service.blueprint.context;
+
+/**
+ * If a component implements this interface then the setModuleContext operation
+ * will be invoked after the component instance has been instantiated and before
+ * the init-method (if specified) has been invoked.
+ *
+ */
+public interface ModuleContextAware {
+
+ /**
+ * Set the module context of the module in which the implementor is
+ * executing.
+ *
+ * @param context the module context in which the implementor of
+ * this interface is executing.
+ */
+ void setModuleContext(ModuleContext context);
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/ModuleContextAware.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/NoSuchComponentException.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/NoSuchComponentException.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/NoSuchComponentException.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,27 @@
+/**
+ *
+ */
+package org.osgi.service.blueprint.context;
+
+/**
+ * Thrown when an attempt is made to lookup a component by name and no such named
+ * component exists in the module context.
+ */
+public class NoSuchComponentException extends RuntimeException {
+
+ private final String componentName;
+
+ public NoSuchComponentException(String componentName) {
+ this.componentName = componentName;
+ }
+
+ public String getComponentName() {
+ return this.componentName;
+ }
+
+ public String getMessage() {
+ return "No component named '" +
+ (this.componentName == null ? "<null>" : this.componentName) +
+ "' could be found";
+ }
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/context/NoSuchComponentException.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentDefinitionRegistry.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentDefinitionRegistry.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentDefinitionRegistry.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,55 @@
+package org.osgi.service.blueprint.namespace;
+
+import org.osgi.service.blueprint.reflect.ComponentMetadata;
+
+/**
+ * A registry of the component definitions for a given context.
+ *
+ * Implementations of ComponentDefinitionRegistry are required to support
+ * concurrent access. The state of a component registry
+ * may change between invocations on the same thread. For example, a single
+ * thread invoking containsComponentDefinition("foo") and getting a return value
+ * of 'true' may see a return value of null on a subsequent call to
+ * getComponentDefinition("foo") if another thread has removed the component
+ * definition in the meantime.
+ */
+public interface ComponentDefinitionRegistry {
+
+ /**
+ * Returns true iff the registry contains a component definition with
+ * the given name as its component name or as an alias.
+ */
+ boolean containsComponentDefinition(String name);
+
+ /**
+ * Get the component definition for the component with the given name
+ * or alias.
+ *
+ * @return the matching component definition if present, or null if no
+ * component with a matching name or alias is present.
+ */
+ ComponentMetadata getComponentDefinition(String name);
+
+ /**
+ * Get the names of all the registered components.
+ */
+ String[] getComponentDefinitionNames();
+
+ /**
+ * Register a new component definition.
+ *
+ * @throws ComponentNameAlreadyInUseException if the name or one of the aliases of the
+ * component definition to be registered is already in use by an existing component
+ * definition.
+ */
+ void registerComponentDefinition(ComponentMetadata component) throws ComponentNameAlreadyInUseException;
+
+ /**
+ * Remove a component definition from the registry. If no matching component
+ * is present then this operation does nothing.
+ *
+ * @param name the name (or an alias) of the component to be removed.
+ */
+ void removeComponentDefinition(String name);
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentDefinitionRegistry.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentNameAlreadyInUseException.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentNameAlreadyInUseException.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentNameAlreadyInUseException.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,22 @@
+package org.osgi.service.blueprint.namespace;
+
+/**
+ * Exception thrown when an attempt is made to register a component with a
+ * name that is already in use by an existing component.
+ */
+public class ComponentNameAlreadyInUseException extends RuntimeException {
+
+ private String duplicateName;
+
+ public ComponentNameAlreadyInUseException(String name) {
+ this.duplicateName = name;
+ }
+
+ public String getMessage() {
+ return "Name or alias '" + this.duplicateName + "' is already in use by a registered component";
+ }
+
+ public String getConflictingName() {
+ return this.duplicateName;
+ }
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ComponentNameAlreadyInUseException.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/NamespaceHandler.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/NamespaceHandler.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/NamespaceHandler.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,61 @@
+
+package org.osgi.service.blueprint.namespace;
+
+import java.net.URL;
+
+import org.osgi.service.blueprint.reflect.ComponentMetadata;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+/**
+ * A namespace handler provides support for parsing custom namespace elements and attributes in
+ * module context configuration files. It manipulates component definitions and the
+ * component registry to implement the intended semantices of the namespace.
+ *
+ * Instances of NamespaceHandler are discovered through the service registry where
+ * they should be published with a service property org.osgi.module.context.namespace set
+ * to the schema URI of the schema that they handle.
+ *
+ * Implementations of NamespaceHandler are required to be thread-safe.
+ *
+ */
+public interface NamespaceHandler {
+
+ /**
+ * The URL where the xsd file for the schema may be found. Typically used to return a URL to a
+ * bundle resource entry so as to avoid needing to lookup schemas remotely.
+ * If null is returned then the schema location will be determined from the xsi:schemaLocation attribute
+ * value.
+ */
+ URL getSchemaLocation();
+
+ /**
+ * Called when a top-level (i.e. non-nested) element from the namespace is encountered.
+ * Implementers may register component definitions themselves, and/or return a component definition
+ * to be registered.
+ *
+ * @param element the dom element from the namespace that has just been encountered
+ * @param context parser context giving access component registry and context information about the
+ * current parsing location.
+ *
+ * @return a component metadata instance to be registered for the context, or null if there are no
+ * additional component descriptions to register.
+ */
+ ComponentMetadata parse(Element element, ParserContext context);
+
+ /**
+ * Called when an attribute or nested element is encountered. Implementors should parse the
+ * supplied Node and decorated the provided component, returning the decorated component.
+ *
+ * @param node the dom Node from the namespace that has just been encountered
+ * @param component the component metadata for the component in which the attribute or nested element
+ * was encountered
+ * @param context parser context giving access component registry and context information about the
+ * current parsing location.
+ *
+ * @return the decorated component to replace the original, or simply the original component if no
+ * decoration is required.
+ */
+ ComponentMetadata decorate(Node node, ComponentMetadata component, ParserContext context);
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/NamespaceHandler.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ParserContext.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ParserContext.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ParserContext.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,28 @@
+package org.osgi.service.blueprint.namespace;
+
+import org.osgi.service.blueprint.reflect.ComponentMetadata;
+import org.w3c.dom.Node;
+
+/**
+ * A ParserContext provides contextual information to a NamespaceHandler when
+ * parsing an Element or Node from the namespace.
+ */
+public interface ParserContext {
+
+ /**
+ * The dom Node which we are currently processing
+ */
+ Node getSourceNode();
+
+ /**
+ * The component definition registry containing all of the registered component
+ * definitions for this context
+ */
+ ComponentDefinitionRegistry getComponentDefinitionRegistry();
+
+ /**
+ * The enclosing component definition in the context of which the
+ * source node is to be processed.
+ */
+ ComponentMetadata getEnclosingComponent();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/namespace/ParserContext.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BindingListenerMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BindingListenerMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BindingListenerMetadata.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,34 @@
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Metadata for a listener interested in service bind and unbind events for a service
+ * reference.
+ */
+public interface BindingListenerMetadata {
+
+ /**
+ * The component instance that will receive bind and unbind
+ * events. The returned value must reference a component and therefore be
+ * either a ComponentValue, ReferenceValue, or ReferenceNameValue.
+ *
+ * @return the listener component reference.
+ */
+ Value getListenerComponent();
+
+ /**
+ * The name of the method to invoke on the listener component when
+ * a matching service is bound to the reference
+ *
+ * @return the bind callback method name.
+ */
+ String getBindMethodName();
+
+ /**
+ * The name of the method to invoke on the listener component when
+ * a service is unbound from the reference.
+ *
+ * @return the unbind callback method name.
+ */
+ String getUnbindMethodName();
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/BindingListenerMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/CollectionBasedServiceReferenceComponentMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/CollectionBasedServiceReferenceComponentMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/CollectionBasedServiceReferenceComponentMetadata.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,51 @@
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Service reference that binds to a collection of matching services from
+ * the OSGi service registry.
+ *
+ */
+public interface CollectionBasedServiceReferenceComponentMetadata extends
+ ServiceReferenceComponentMetadata {
+
+ /**
+ * Create natural ordering based on comparison on service objects.
+ */
+ public static final int ORDER_BASIS_SERVICES = 1;
+
+ /**
+ * Create natural ordering based on comparison of service reference objects.
+ */
+ public static final int ORDER_BASIS_SERVICE_REFERENCES = 2;
+
+ /**
+ * The type of collection to be created.
+ *
+ * @return Class object for the specified collection type (List, Set, Map).
+ */
+ Class getCollectionType();
+
+ /**
+ * The comparator specified for ordering the collection, or null if no
+ * comparator was specified.
+ *
+ * @return if a comparator was specified then a Value object identifying the
+ * comparator (a ComponentValue, ReferenceValue, or ReferenceNameValue) is
+ * returned. If no comparator was specified then null will be returned.
+ */
+ Value getComparator();
+
+ /**
+ * Should the collection be ordered based on natural ordering?
+ *
+ * @return true, iff natural-ordering based sorting was specified.
+ */
+ boolean isNaturalOrderingBasedComparison();
+
+ /**
+ * The basis on which to perform natural ordering, if specified.
+ *
+ * @return one of ORDER_BASIS_SERVICES and ORDER_BASIS_SERVICE_REFERENCES
+ */
+ int getNaturalOrderingComparisonBasis();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/CollectionBasedServiceReferenceComponentMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ComponentMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ComponentMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ComponentMetadata.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,38 @@
+
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Metadata for a component defined within a given module context.
+ *
+ * @see LocalComponentMetadata
+ * @see ServiceReferenceComponentMetadata
+ * @see ServiceExportComponentMetadata
+ */
+public interface ComponentMetadata {
+
+ /**
+ * The name of the component.
+ *
+ * @return component name. The component name may be null if this is an anonymously
+ * defined inner component.
+ */
+ String getName();
+
+ /**
+ * Any aliases by which the component is also known.
+ *
+ * @return an array of aliases by which the component is known (does not
+ * include the component name as returned by getName()). If the component
+ * has no aliases then an empty array is returned.
+ */
+ String[] getAliases();
+
+ /**
+ * The names of any components listed in a "depends-on" attribute for this
+ * component.
+ *
+ * @return an array of component names for components that we have explicitly
+ * declared a dependency, or an empty array if none.
+ */
+ String[] getExplicitDependencies();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ComponentMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ComponentValue.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ComponentValue.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ComponentValue.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,10 @@
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * A value represented by an anonymous local component definition.
+ */
+public interface ComponentValue extends Value {
+
+ LocalComponentMetadata getComponentMetadata();
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ComponentValue.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ConstructorInjectionMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ConstructorInjectionMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ConstructorInjectionMetadata.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,19 @@
+package org.osgi.service.blueprint.reflect;
+
+
+/**
+ * Metadata describing how to instantiate a component instance by
+ * invoking one of its constructors.
+ */
+public interface ConstructorInjectionMetadata {
+
+ /**
+ * The parameter specifications that determine which constructor to invoke
+ * and what arguments to pass to it.
+ *
+ * @return an array of parameter specifications, or an empty array if the
+ * default constructor is to be invoked.
+ */
+ ParameterSpecification[] getParameterSpecifications();
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ConstructorInjectionMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/FieldInjectionMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/FieldInjectionMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/FieldInjectionMetadata.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,22 @@
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Metadata describing a field of a component that is to be injected.
+ */
+public interface FieldInjectionMetadata {
+
+ /**
+ * The name of the field to be injected.
+ *
+ * @return the field name
+ */
+ String getName();
+
+ /**
+ * The value to inject the field with.
+ *
+ * @return the field value
+ */
+ Value getValue();
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/FieldInjectionMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/IndexedParameterSpecification.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/IndexedParameterSpecification.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/IndexedParameterSpecification.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,16 @@
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Parameter specification for injection of a parameter identified by its position in the
+ * argument list.
+ *
+ */
+public interface IndexedParameterSpecification extends ParameterSpecification {
+
+ /**
+ * The index into the argument list of the parameter to be injected.
+ *
+ * @return the parameter index, indices start at 0.
+ */
+ int getIndex();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/IndexedParameterSpecification.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ListValue.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ListValue.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ListValue.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,11 @@
+
+package org.osgi.service.blueprint.reflect;
+
+import java.util.List;
+
+/**
+ * A list-based value. Members of the List are instances of Value.
+ */
+public interface ListValue extends Value, List/*<Value>*/ {
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ListValue.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/LocalComponentMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/LocalComponentMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/LocalComponentMetadata.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,130 @@
+package org.osgi.service.blueprint.reflect;
+
+
+/**
+ * Metadata for a component defined locally with a module context.
+ *
+ */
+public interface LocalComponentMetadata extends ComponentMetadata {
+
+ static final String SCOPE_SINGLETON = "singleton";
+ static final String SCOPE_PROTOTYPE = "prototype";
+ static final String SCOPE_BUNDLE = "bundle";
+
+ /**
+ * The name of the class type specified for this component.
+ *
+ * @return the name of the component class.
+ */
+ String getClassName();
+
+ /**
+ * The name of the init method specified for this component, if any.
+ *
+ * @return the method name of the specified init method, or null if
+ * no init method was specified.
+ */
+ String getInitMethodName();
+
+ /**
+ * The name of the destroy method specified for this component, if any.
+ *
+ * @return the method name of the specified destroy method, or null if no
+ * destroy method was specified.
+ */
+ String getDestroyMethodName();
+
+ /**
+ * The constructor injection metadata for this component.
+ *
+ * @return the constructor injection metadata. This is guaranteed to be
+ * non-null and will refer to the default constructor if no explicit
+ * constructor injection was specified for the component.
+ */
+ ConstructorInjectionMetadata getConstructorInjectionMetadata();
+
+ /**
+ * The property injection metadata for this component.
+ *
+ * @return an array containing one entry for each property to be injected. If
+ * no property injection was specified for this component then an empty array
+ * will be returned.
+ *
+ */
+ PropertyInjectionMetadata[] getPropertyInjectionMetadata();
+
+ /**
+ * The field injection metadata for this component.
+ *
+ * @return an array containing one entry for each field to be injected. If no
+ * field injection was specified for this component then an empty array will be
+ * returned.
+ *
+ */
+ FieldInjectionMetadata[] getFieldInjectionMetadata();
+
+ /**
+ * The method injection metadata for this component.
+ *
+ * @return an array containing one entry for each method to be invoked using method
+ * injection after constructing the component instance. If no method injection
+ * was specified for this component then an empty array will be returned.
+ */
+ MethodInjectionMetadata[] getMethodInjectionMetadata();
+
+ /**
+ * Is this an abstract component declaration.
+ *
+ * @return true, iff this component definition is marked as abstract and hence
+ * has no associated component instance.
+ */
+ boolean isAbstract();
+
+ /**
+ * Is this component to be lazily instantiated?
+ *
+ * @return true, iff this component definition specifies lazy
+ * instantiation.
+ */
+ boolean isLazy();
+
+ /**
+ * The metadata for the parent definition of this component declaration, if any.
+ *
+ * @return the component metadata for the parent component definition if this component
+ * was declared using component metadata inheritance.
+ */
+ LocalComponentMetadata getParent();
+
+ /**
+ * The metadata describing how to create the component instance by invoking a
+ * method (as opposed to a constructor) if factory methods are used.
+ *
+ * @return the method injection metadata for the specified factory method, or null if no
+ * factory method is used for this component.
+ */
+ MethodInjectionMetadata getFactoryMethodMetadata();
+
+ /**
+ * The component instance on which to invoke the factory method (if specified).
+ *
+ * @return when a factory method and factory component has been specified for this
+ * component, this operation returns the metadata specifying the component on which
+ * the factory method is to be invoked. When no factory component has been specified
+ * this operation will return null. A return value of null with a non-null factory method
+ * indicates that the factory method should be invoked as a static method on the
+ * component class itself.
+ */
+ ComponentMetadata getFactoryComponent();
+
+ /**
+ * The specified scope for the component lifecycle.
+ *
+ * @return a String indicating the scope specified for the component.
+ *
+ * @see SCOPE_SINGLETON
+ * @see SCOPE_PROTOTYPE
+ * @see SCOPE_BUNDLE
+ */
+ String getScope();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/LocalComponentMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MapValue.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MapValue.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MapValue.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,12 @@
+package org.osgi.service.blueprint.reflect;
+
+import java.util.Map;
+
+/**
+ * A map-based value. Map keys are instances of Value, as are the Map entry
+ * values themselves.
+ *
+ */
+public interface MapValue extends Value, Map/*<Value,Value>*/ {
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MapValue.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MethodInjectionMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MethodInjectionMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MethodInjectionMetadata.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,26 @@
+package org.osgi.service.blueprint.reflect;
+
+
+/**
+ * Metadata describing a method to be invoked as part of component configuration.
+ *
+ */
+public interface MethodInjectionMetadata {
+
+ /**
+ * The name of the method to be invoked.
+ *
+ * @return the method name, overloaded methods are disambiguated by
+ * parameter specifications.
+ */
+ String getName();
+
+ /**
+ * The parameter specifications that determine which method to invoke
+ * (in the case of overloading) and what arguments to pass to it.
+ *
+ * @return an array of parameter specifications, or an empty array if the
+ * method takes no arguments.
+ */
+ ParameterSpecification[] getParameterSpecifications();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/MethodInjectionMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/NamedParameterSpecification.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/NamedParameterSpecification.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/NamedParameterSpecification.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,16 @@
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Parameter specification for injection of a parameter by name.
+ *
+ */
+public interface NamedParameterSpecification extends ParameterSpecification {
+
+ /**
+ * The name of the parameter to be injected.
+ *
+ * @return the parameter name
+ */
+ String getName();
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/NamedParameterSpecification.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ParameterSpecification.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ParameterSpecification.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ParameterSpecification.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,19 @@
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Metadata describing a parameter of a method or constructor and the
+ * value that is to be passed during injection.
+ *
+ * @see NamedParameterSpecification
+ * @see TypedParameterSpecification
+ * @see IndexedParameterSpecification
+ */
+public interface ParameterSpecification {
+
+ /**
+ * The value to inject into the parameter.
+ *
+ * @return the parameter value
+ */
+ Value getValue();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ParameterSpecification.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/PropertyInjectionMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/PropertyInjectionMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/PropertyInjectionMetadata.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,22 @@
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Metadata describing a property to be injected. Properties are defined
+ * following JavaBeans conventions.
+ */
+public interface PropertyInjectionMetadata {
+
+ /**
+ * The name of the property to be injected, following JavaBeans conventions.
+ *
+ * @return the property name.
+ */
+ String getName();
+
+ /**
+ * The value to inject the property with.
+ *
+ * @return the property value.
+ */
+ Value getValue();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/PropertyInjectionMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ReferenceNameValue.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ReferenceNameValue.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ReferenceNameValue.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,12 @@
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * A value which represents the name of another component in the module context.
+ * The name itself will be injected, not the component that the name refers to.
+ *
+ */
+public interface ReferenceNameValue extends Value {
+
+ String getReferenceName();
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ReferenceNameValue.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ReferenceValue.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ReferenceValue.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ReferenceValue.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,14 @@
+
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * A value which refers to another component in the module context by name.
+ */
+public interface ReferenceValue extends Value {
+
+ /**
+ * The name of the referenced component.
+ */
+ String getComponentName();
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ReferenceValue.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RegistrationListenerMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RegistrationListenerMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RegistrationListenerMetadata.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,35 @@
+
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Metadata for a listener interested in service registration and unregistration
+ * events for an exported service.
+ */
+public interface RegistrationListenerMetadata {
+
+ /**
+ * The component instance that will receive registration and unregistration
+ * events. The returned value must reference a component and therefore be
+ * either a ComponentValue, ReferenceValue, or ReferenceNameValue.
+ *
+ * @return the listener component reference.
+ */
+ Value getListenerComponent();
+
+ /**
+ * The name of the method to invoke on the listener component when
+ * the exported service is registered with the service registry.
+ *
+ * @return the registration callback method name.
+ */
+ String getRegistrationMethodName();
+
+ /**
+ * The name of the method to invoke on the listener component when
+ * the exported service is unregistered from the service registry.
+ *
+ * @return the unregistration callback method name.
+ */
+ String getUnregistrationMethodName();
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/RegistrationListenerMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceExportComponentMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceExportComponentMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceExportComponentMetadata.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,82 @@
+package org.osgi.service.blueprint.reflect;
+
+import java.util.Properties;
+
+
+/**
+ * Metadata representing a service to be exported by a module context.
+ *
+ */
+public interface ServiceExportComponentMetadata extends ComponentMetadata {
+
+ /**
+ * Do not auto-detect types for advertised service intefaces
+ */
+ public static final int EXPORT_MODE_DISABLED = 1;
+
+ /**
+ * Advertise all Java interfaces implemented by the exported component as
+ * service interfaces.
+ */
+ public static final int EXPORT_MODE_INTERFACES= 2;
+
+ /**
+ * Advertise all Java classes in the hierarchy of the exported component's type
+ * as service interfaces.
+ */
+ public static final int EXPORT_MODE_CLASS_HIERARCHY = 3;
+
+ /**
+ * Advertise all Java classes and interfaces in the exported component's type as
+ * service interfaces.
+ */
+ public static final int EXPORT_MODE_ALL = 4;
+
+ /**
+ * The component that is to be exported as a service. Value must refer to a component and
+ * therefore be either a ComponentValue, ReferenceValue, or ReferenceNameValue.
+ *
+ * @return the component to be exported as a service.
+ */
+ Value getExportedComponent();
+
+ /**
+ * The type names of the set of interface types that the service should be advertised
+ * as supporting.
+ *
+ * @return an array of type names, or an empty array if using auto-export
+ */
+ String[] getInterfaceNames();
+
+ /**
+ * Return the auto-export mode specified.
+ *
+ * @return One of EXPORT_MODE_DISABLED, EXPORT_MODE_INTERFACES, EXPORT_MODE_CLASS_HIERARCHY, EXPORT_MODE_ALL
+ */
+ int getAutoExportMode();
+
+ /**
+ * The user declared properties to be advertised with the service.
+ *
+ * @return Properties object containing the set of user declared service properties (may be
+ * empty if no properties were specified).
+ */
+ Properties getServiceProperties();
+
+ /**
+ * The ranking value to use when advertising the service
+ *
+ * @return service ranking
+ */
+ int getRanking();
+
+ /**
+ * The listeners that have registered to be notified when the exported service
+ * is registered and unregistered with the framework.
+ *
+ * @return an array of registration listeners, or an empty array if no listeners
+ * have been specified.
+ */
+ RegistrationListenerMetadata[] getRegistrationListeners();
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceExportComponentMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceReferenceComponentMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceReferenceComponentMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceReferenceComponentMetadata.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,50 @@
+package org.osgi.service.blueprint.reflect;
+
+
+/**
+ * Metadata describing a reference to a service that is to be imported into the module
+ * context from the OSGi service registry.
+ */
+public interface ServiceReferenceComponentMetadata extends ComponentMetadata {
+
+ /**
+ * A matching service is required at all times.
+ */
+ public static final int MANDATORY_AVAILABILITY = 1;
+
+ /**
+ * A matching service is not required to be present.
+ */
+ public static final int OPTIONAL_AVAILABILITY = 2;
+
+ /**
+ * Whether or not a matching service is required at all times.
+ *
+ * @return one of MANDATORY_AVAILABILITY or OPTIONAL_AVAILABILITY
+ */
+ int getServiceAvailabilitySpecification();
+
+ /**
+ * The interface types that the matching service must support
+ *
+ * @return an array of type names
+ */
+ String[] getInterfaceNames();
+
+ /**
+ * The filter expression that a matching service must pass
+ *
+ * @return filter expression
+ */
+ String getFilter();
+
+ /**
+ * The set of listeners registered to receive bind and unbind events for
+ * backing services.
+ *
+ * @return an array of registered binding listeners, or an empty array
+ * if no listeners are registered.
+ */
+ BindingListenerMetadata[] getBindingListeners();
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/ServiceReferenceComponentMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/SetValue.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/SetValue.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/SetValue.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,11 @@
+
+package org.osgi.service.blueprint.reflect;
+
+import java.util.Set;
+
+/**
+ * A set-based value. Members of the set are instances of Value.
+ */
+public interface SetValue extends Value, Set/*<Value>*/ {
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/SetValue.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/TypedParameterSpecification.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/TypedParameterSpecification.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/TypedParameterSpecification.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,15 @@
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * Parameter specification for injection of a parameter by type.
+ */
+public interface TypedParameterSpecification extends ParameterSpecification {
+
+ /**
+ * The name of the type that the parameter type must be assignable from.
+ *
+ * @return the parameter type name
+ */
+ String getTypeName();
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/TypedParameterSpecification.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/TypedStringValue.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/TypedStringValue.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/TypedStringValue.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,20 @@
+
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * A simple string value that will be type-converted if necessary before
+ * injecting into a target.
+ *
+ */
+public interface TypedStringValue extends Value {
+
+ /**
+ * The string value (unconverted) of this value).
+ */
+ String getStringValue();
+
+ /**
+ * The name of the type to which this value should be coerced. May be null.
+ */
+ String getTypeName();
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/TypedStringValue.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/UnaryServiceReferenceComponentMetadata.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/UnaryServiceReferenceComponentMetadata.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/UnaryServiceReferenceComponentMetadata.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,20 @@
+package org.osgi.service.blueprint.reflect;
+
+/**
+ *
+ * Service reference that will bind to a single matching service
+ * in the service registry.
+ *
+ */
+public interface UnaryServiceReferenceComponentMetadata extends
+ ServiceReferenceComponentMetadata {
+
+ /**
+ * Timeout for service invocations when a matching backing service
+ * is unavailable.
+ *
+ * @return service invocation timeout in milliseconds
+ */
+ long getTimeout();
+
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/UnaryServiceReferenceComponentMetadata.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Value.java
===================================================================
--- projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Value.java (rev 0)
+++ projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Value.java 2009-05-12 21:11:25 UTC (rev 88768)
@@ -0,0 +1,9 @@
+package org.osgi.service.blueprint.reflect;
+
+/**
+ * A value to inject into a field, property, method argument or constructor
+ * argument.
+ */
+public interface Value {
+ // deliberately left empty
+}
Property changes on: projects/jboss-osgi/trunk/bundle/blueprint/src/main/java/org/osgi/service/blueprint/reflect/Value.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
17 years, 2 months