[jboss-jira] [JBoss JIRA] Created: (JBMICROCONT-174) Add API for dynamic aliases

Adrian Brock (JIRA) jira-events at lists.jboss.org
Tue Apr 3 12:34:58 EDT 2007


Add API for dynamic aliases
---------------------------

                 Key: JBMICROCONT-174
                 URL: http://jira.jboss.com/jira/browse/JBMICROCONT-174
             Project: JBoss MicroContainer
          Issue Type: Sub-task
          Components: Dependency
            Reporter: Adrian Brock
             Fix For: JBossMC_2_0_0_CR1


Besides the static aliases defined upfront in for example the beans xml,
an additional feature is to be able to add dynamic aliases as well.

For example. If a bean is deployed with something like:
<bean name="POJOName">
   <annotation>@JMX(objectName="com.acme:a=b")</annotation>

Then that ObjectName could also be an alias for POJOName context added "dynamically" by the JMX Decorator.

This would involve two new methods on the Controller interface:
addAlias(Object alias, Object original);
removeAlias(Object alias);

Initially, for simplicty, we should apply the following constraints:
1) The "original" name must already exist.
2) The person that adds the alias is expected to remove the alias.

A full solution would require keeping track of aliases and originals and also define a correct way of handling
broken aliases with the caller having to do it themselves.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list