[jboss-jira] [JBoss JIRA] Resolved: (JBMAN-58) Add attachment notion to ManagedDeployment

Scott M Stark (JIRA) jira-events at lists.jboss.org
Thu Feb 26 14:23:44 EST 2009


     [ https://jira.jboss.org/jira/browse/JBMAN-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott M Stark resolved JBMAN-58.
--------------------------------

    Resolution: Done


The following have been added:

   /**
    * Get an attachment from the deployment.
    * 
    * @see #setAttachment(String, Object)
    * 
    * @param name the name
    * @return the attachment
    */
   Object getAttachment(String name);
   
   /**
    * Get an attachment from the deployment,
    * 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 getAttachment(Class<T> expectedType);

   /**
    * Set an attachment against the deployment. Attachments added to a deployment
    * are serialized to external clients like admin tools, so the attachment
    * type should be restricted to jdk types and commonly provided management
    * related classes.
    * 
    * @param name the name
    * @param attachment the attachment, pass null to remove an attachment
    * @throws IllegalArgumentException for a null name
    */
   void setAttachment(String name, Object attachment);

> Add attachment notion to ManagedDeployment
> ------------------------------------------
>
>                 Key: JBMAN-58
>                 URL: https://jira.jboss.org/jira/browse/JBMAN-58
>             Project: JBoss Managed
>          Issue Type: Feature Request
>          Components: managedobject
>            Reporter: Scott M Stark
>            Assignee: Scott M Stark
>             Fix For:  JBossMan.2.1.0.CR2
>
>
> We need an attachment notion to carry external information like the ProfileKey.

-- 
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

        



More information about the jboss-jira mailing list