Author: nickarls
Date: 2008-11-28 02:51:44 -0500 (Fri, 28 Nov 2008)
New Revision: 375
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/AbstractBean.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/AbstractClassBean.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/EnterpriseBean.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/MergedStereotypes.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/ProducerMethodBean.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/SimpleBean.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/XmlEnterpriseBean.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/XmlSimpleBean.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/jlr/AnnotatedMethodImpl.java
Log:
javadocs/comments/toString
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/AbstractBean.java
===================================================================
---
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/AbstractBean.java 2008-11-28
07:37:21 UTC (rev 374)
+++
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/AbstractBean.java 2008-11-28
07:51:44 UTC (rev 375)
@@ -395,6 +395,8 @@
* Destroys a bean instance
*
* @param instance The instance to destroy
+ *
+ * @see javax.webbeans.manager.Bean#destroy(Object)
*/
@Override
public void destroy(T instance)
@@ -429,6 +431,8 @@
* Returns the binding types
*
* @return The set of binding types
+ *
+ * @see javax.webbeans.manager.Bean#getBindingTypes()
*/
public Set<Annotation> getBindingTypes()
{
@@ -468,6 +472,8 @@
* Returns the deployment type of the bean
*
* @return The deployment type
+ *
+ * @see javax.webbeans.manager.Bean#getDeploymentType()
*/
public Class<? extends Annotation> getDeploymentType()
{
@@ -509,6 +515,8 @@
* Returns the name of the bean
*
* @return The name
+ *
+ * @see javax.webbeans.manager.Bean#getName()
*/
public String getName()
{
@@ -529,6 +537,8 @@
* Returns the scope type of the bean
*
* @return The scope type
+ *
+ * @see javax.webbeans.manager.Bean#getScopeType()
*/
public Class<? extends Annotation> getScopeType()
{
@@ -559,6 +569,8 @@
* Returns the API types of the bean
*
* @return The set of API types
+ *
+ * @see javax.webbeans.manager.Bean#getTypes()
*/
@Override
public Set<Class<?>> getTypes()
@@ -592,6 +604,8 @@
* Inicates if bean is nullable
*
* @return True if nullable, false otherwise
+ *
+ * @see javax.webbeans.manager.Bean#isNullable()
*/
@Override
public boolean isNullable()
@@ -613,6 +627,8 @@
* Indicates if bean is serializable
*
* @return True if serializable, false otherwise
+ *
+ * @see @see javax.webbeans.manager.Bean#isSerializable()
*/
@Override
public boolean isSerializable()
@@ -625,10 +641,11 @@
public String toString()
{
StringBuffer buffer = new StringBuffer();
+ buffer.append("AbstractBean:\n");
buffer.append("Name: " + name + "\n");
buffer.append("Type: " + type + "\n");
- buffer.append("Scope type " + scopeType.getName() + "\n");
- buffer.append("Deployment type: " + deploymentType.getName() +
"\n");
+ buffer.append("Scope type " + scopeType.toString() + "\n");
+ buffer.append("Deployment type: " + deploymentType.toString() +
"\n");
buffer.append("Primitive : " + primitive + "\n");
buffer.append("Declared bean type: " + (declaredBeanType == null ?
"null" : declaredBeanType.toString()) + "\n");
buffer.append("Remove method: " + (removeMethod == null ?
"null" : removeMethod.toString()) + "\n");
@@ -644,7 +661,6 @@
{
buffer.append(++i + " - " + apiType.getName() + "\n");
}
- buffer.append("Merged stereotype\n");
buffer.append(mergedStereotypes.toString() + "\n");
buffer.append("Injection points: " + injectionPoints.size() +
"\n");
i = 0;
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/AbstractClassBean.java
===================================================================
---
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/AbstractClassBean.java 2008-11-28
07:37:21 UTC (rev 374)
+++
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/AbstractClassBean.java 2008-11-28
07:51:44 UTC (rev 375)
@@ -262,7 +262,8 @@
public String toString()
{
StringBuffer buffer = new StringBuffer();
- buffer.append(super.toString());
+ buffer.append("AbstractClassBean:\n");
+ buffer.append(super.toString() + "\n");
buffer.append("Annotated item: " + annotatedItem.toString() +
"\n");
buffer.append("Initializer methods: " + initializerMethods.size() +
"\n");
int i = 0;
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/EnterpriseBean.java
===================================================================
---
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/EnterpriseBean.java 2008-11-28
07:37:21 UTC (rev 374)
+++
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/EnterpriseBean.java 2008-11-28
07:51:44 UTC (rev 375)
@@ -339,7 +339,8 @@
public String toString()
{
StringBuffer buffer = new StringBuffer();
- buffer.append("EnterpriseBean[" + getType().getName() +
"]\n");
+ buffer.append("EnterpriseBean:\n");
+ buffer.append(super.toString() + "\n");
buffer.append(ejbMetaData.toString() + "\n");
return buffer.toString();
}
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/MergedStereotypes.java
===================================================================
---
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/MergedStereotypes.java 2008-11-28
07:37:21 UTC (rev 374)
+++
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/MergedStereotypes.java 2008-11-28
07:51:44 UTC (rev 375)
@@ -152,7 +152,7 @@
public String toString()
{
StringBuffer buffer = new StringBuffer();
- buffer.append("Merged stereotype\n");
+ buffer.append("Merged stereotypes:\n");
buffer.append("Bean name defaulted: " + beanNameDefaulted +
"\n");
buffer.append("Possible deployment types: " +
possibleDeploymentTypes.size() + "\n");
int i = 0;
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/ProducerMethodBean.java
===================================================================
---
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/ProducerMethodBean.java 2008-11-28
07:37:21 UTC (rev 374)
+++
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/ProducerMethodBean.java 2008-11-28
07:51:44 UTC (rev 375)
@@ -292,7 +292,7 @@
public String toString()
{
StringBuffer buffer = new StringBuffer();
- buffer.append("ProducerMethodBean[" + getType().getName() +
"]\n");
+ buffer.append("ProducerMethodBean:\n");
buffer.append(super.toString() + "\n");
buffer.append("Location: " + location + "\n");
buffer.append("Declaring bean: " + declaringBean.toString() +
"\n");
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/SimpleBean.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/SimpleBean.java 2008-11-28
07:37:21 UTC (rev 374)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/SimpleBean.java 2008-11-28
07:51:44 UTC (rev 375)
@@ -360,7 +360,7 @@
public String toString()
{
StringBuffer buffer = new StringBuffer();
- buffer.append("SimpleWebBean[" + getAnnotatedItem().toString() +
"]\n");
+ buffer.append("SimpleBean\n");
buffer.append(super.toString() + "\n");
buffer.append("Location: " + location + "\n");
buffer.append("Constructor: " + constructor.toString() +
"\n");
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/XmlEnterpriseBean.java
===================================================================
---
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/XmlEnterpriseBean.java 2008-11-28
07:37:21 UTC (rev 374)
+++
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/XmlEnterpriseBean.java 2008-11-28
07:51:44 UTC (rev 375)
@@ -52,7 +52,7 @@
public String toString()
{
StringBuffer buffer = new StringBuffer();
- buffer.append("XML-defined enterprise bean\n");
+ buffer.append("XmlEnterpriseBean\n");
buffer.append(super.toString() + "\n");
return buffer.toString();
}
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/XmlSimpleBean.java
===================================================================
---
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/XmlSimpleBean.java 2008-11-28
07:37:21 UTC (rev 374)
+++
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/XmlSimpleBean.java 2008-11-28
07:51:44 UTC (rev 375)
@@ -52,7 +52,7 @@
public String toString()
{
StringBuffer buffer = new StringBuffer();
- buffer.append("XML-defined simple bean\n");
+ buffer.append("XmlLSimpleBean\n");
buffer.append(super.toString() + "\n");
return buffer.toString();
}
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/jlr/AnnotatedMethodImpl.java
===================================================================
---
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/jlr/AnnotatedMethodImpl.java 2008-11-28
07:37:21 UTC (rev 374)
+++
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/jlr/AnnotatedMethodImpl.java 2008-11-28
07:51:44 UTC (rev 375)
@@ -31,7 +31,6 @@
import org.jboss.webbeans.introspector.AnnotatedParameter;
import org.jboss.webbeans.introspector.AnnotatedType;
import org.jboss.webbeans.util.Reflections;
-import org.jboss.webbeans.util.Strings;
import com.google.common.collect.ForwardingMap;
Show replies by date