openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r727551 - /incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractComponent.java
Date Wed, 17 Dec 2008 22:31:11 GMT
Author: gerdogdu
Date: Wed Dec 17 14:31:10 2008
New Revision: 727551

URL: http://svn.apache.org/viewvc?rev=727551&view=rev
Log:
Stereotype method is added.

Modified:
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractComponent.java

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractComponent.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractComponent.java?rev=727551&r1=727550&r2=727551&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractComponent.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractComponent.java
Wed Dec 17 14:31:10 2008
@@ -79,8 +79,12 @@
 	/** Return type of the component */
 	protected Class<T> returnType;
 	
+	/**Dependent object map of the component*/
 	protected Map<Object, Bean<?>> dependentObjects = new WeakHashMap<Object,
Bean<?>>();
 	
+	/**Stereotypes of the component*/
+	protected Set<Annotation> stereoTypes = new HashSet<Annotation>();
+	
 	/**
 	 * Holds the all of the interceptor related data, contains around-invoke,
 	 * post-construct and pre-destroy
@@ -269,6 +273,16 @@
 	{
 		this.implBindingTypes.add(bindingType);
 	}
+	
+	/**
+	 * Add new stereotype.
+	 * 
+	 * @param stereoType new stereotype annotation
+	 */
+	public void addStereoType(Annotation stereoType)
+	{
+		this.stereoTypes.add(stereoType);
+	}
 
 	/**
 	 * Add new api type.
@@ -290,6 +304,16 @@
 	{
 		return implBindingTypes;
 	}
+	
+	/**
+	 * Gets the stereotypes.
+	 * 
+	 * @return stereotypes of the component
+	 */
+	public Set<Annotation> getStereoTypes()
+	{
+		return this.stereoTypes;
+	}
 
 	/**
 	 * Set name.



Mime
View raw message