You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by ge...@apache.org on 2008/12/17 23:31:11 UTC
svn commit: r727551 -
/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractComponent.java
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.