[jboss-cvs] JBossAS SVN: r89125 - projects/integration/branches/5_x/jboss-profileservice-spi/src/main/java/org/jboss/profileservice/spi.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue May 19 11:43:20 EDT 2009
Author: emuckenhuber
Date: 2009-05-19 11:43:20 -0400 (Tue, 19 May 2009)
New Revision: 89125
Modified:
projects/integration/branches/5_x/jboss-profileservice-spi/src/main/java/org/jboss/profileservice/spi/ProfileDeployment.java
Log:
missing transient attachment on profile deployment
Modified: projects/integration/branches/5_x/jboss-profileservice-spi/src/main/java/org/jboss/profileservice/spi/ProfileDeployment.java
===================================================================
--- projects/integration/branches/5_x/jboss-profileservice-spi/src/main/java/org/jboss/profileservice/spi/ProfileDeployment.java 2009-05-19 15:37:09 UTC (rev 89124)
+++ projects/integration/branches/5_x/jboss-profileservice-spi/src/main/java/org/jboss/profileservice/spi/ProfileDeployment.java 2009-05-19 15:43:20 UTC (rev 89125)
@@ -67,6 +67,18 @@
Object getAttachment(String name);
/**
+ * Get attachment.
+ *
+ * @param <T> the expected type
+ * @param name the name of the attachment
+ * @param expectedType the expected type
+ * @return the attachment or null if not present
+ *
+ * @throws IllegalArgumentException for a null name
+ */
+ <T> T getAttachment(String name, Class<T> expectedType);
+
+ /**
* Add attachment
*
* @param name the name of the attachment
@@ -77,5 +89,58 @@
*/
Object addAttachment(String name, Object attachment);
+ /**
+ * Remove attachment.
+ *
+ * @param name the attachment name
+ * @return the attachment or null if not present
+ *
+ * @throws IllegalArgumentException for a null name
+ */
+ Object removeAttachment(String name);
+
+ /**
+ * Get transient attachment.
+ *
+ * @param name the name of the attachment
+ * @return the attachment or null if not present
+ *
+ * @throws IllegalArgumentException for a null name
+ */
+ Object getTransientAttachment(String name);
+
+ /**
+ * Get transient attachment.
+ *
+ * @param <T> the expected type
+ * @param name the name of the attachment
+ * @param expectedType the expected type
+ * @return the attachment or null if not present
+ *
+ * @throws IllegalArgumentException for a null name
+ */
+ <T> T getTransientAttachment(String name, Class<T> expectedType);
+
+ /**
+ * Add transient attachment
+ *
+ * @param name the name of the attachment
+ * @param attachment the attachment
+ * @return any previous attachment
+ *
+ * @throws IllegalArgumentException for a null name or attachment
+ */
+ Object addTransientAttachment(String name, Object attachment);
+
+ /**
+ * Remove transient attachment.
+ *
+ * @param name the attachment name
+ * @return the attachment or null if not present
+ *
+ * @throws IllegalArgumentException for a null name
+ */
+ Object removeTransientAttachment(String name);
+
}
More information about the jboss-cvs-commits
mailing list