[
https://jira.jboss.org/jira/browse/JBMAN-75?page=com.atlassian.jira.plugi...
]
Scott M Stark resolved JBMAN-75.
--------------------------------
Resolution: Done
A common TransientAttachments interface with these methods has been added and
ManagedProperty, ManagedOperation and ManagedParameter implement it.
ManagedOperation needs attachments
----------------------------------
Key: JBMAN-75
URL:
https://jira.jboss.org/jira/browse/JBMAN-75
Project: JBoss Managed
Issue Type: Feature Request
Components: managedobject
Affects Versions: JBossMan.2.1.0.CR6
Reporter: Scott M Stark
Assignee: Scott M Stark
Fix For: JBossMan.2.1.0.CR7
Similar to the ManagedProperty transient attachments, ManagedOperations also need to
carry additional server side information.
/**
* Get a transient attachment from the property.
*
* @see #setTransientAttachment(String, Object)
*
* @param name the name
* @return the attachment
*/
Object getTransientAttachment(String name);
/**
* Get an attachment from the property,
* uses the expected type as both the name
* and to cast the resulting object.
*
* @param <T> the expected type
* @param expectedType the expected type
* @return the attachment
* @throws ClassCastException when the object is not of the expected type
*/
<T> T getTransientAttachment(Class<T> expectedType);
/**
* Set an transient attachment against the property. A transient attachment
* is one that will not be available to clients of the property, typically
* admin tools. Such attachments are used by the server side where the
* underlying metadata to which the property is
*
* @param name the name
* @param attachment the attachment, pass null to remove an attachment
* @throws IllegalArgumentException for a null name
*/
void setTransientAttachment(String name, Object attachment);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira