[Design of POJO Server] - Re: Depending on a MBean
by scott.stark@jboss.org
"bill.burke(a)jboss.com" wrote : btw, what is a canoical name? alphabetical sorting of key fields?
Yes, from the ObjectName javadoc:
'jdk5 javadoc" wrote :
| public String getCanonicalName()
|
| Returns the canonical form of the name; that is, a string representation where the properties are sorted in lexical order.
|
| More precisely, the canonical form of the name is a String consisting of the domain part, a colon (:), the canonical key property list, and a pattern indication.
|
| The canonical key property list is the same string as described for getCanonicalKeyPropertyListString().
|
| The pattern indication is:
|
| * empty for an ObjectName that is not a property pattern;
| * an asterisk for an ObjectName that is a property pattern with no keys; or
| * a comma and an asterisk (,*) for an ObjectName that is a property pattern with at least one key.
|
| Returns:
| The canonical form of the name.
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032401#4032401
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032401
17 years, 3 months
[Design the new POJO MicroContainer] - Install Items
by adrian@jboss.org
While discussing how the OSGi service layer works,
we came up with a better way of doing something that is already supported
in the Microcontainer.
An example would be the new deployers configuration
where you "manually" install deployers into the main deployer, e.g.
| <!--
| Security Deployer
| -->
| <deployment xmlns="urn:jboss:bean-deployer:2.0">
| <bean name="SecurityDeployer" class="org.jboss.deployment.security.SecurityDeployer">
| <install bean="MainDeployer" method="addDeployer">
| <parameter>
| <this/>
| </parameter>
| </install>
| <uninstall bean="MainDeployer" method="removeDeployer">
| <parameter>
| <this/>
| </parameter>
| </uninstall>
| <property name="type">security</property>
| <property name="ignoreSuffixes">
| <set elementClass="java.lang.String">
| <value>xml</value>
| <value>beans</value>
| <value>deployer</value>
| </set>
| </property>
| </bean>
| </deployment>
|
The idea is to remove the install and uninstall from the individual deployer xmls
and instead configure the MainDeployer to want all implementations
of a specific class, in this case org.jboss.deployers.spi.deployer.Deployer
and have the Microcontainer do the add/remove invocations.
| /**
| * Add a deployer
| *
| * @param deployer the deployer
| */
| @Install
| public synchronized void addDeployer(Deployer deployer) { ... }
|
| /**
| * Remove a deployer
| *
| * @param deployer the deployer
| */
| @Uninstall
| public synchronized void removeDeployer(Deployer deployer) { ... }
|
This feature is being tracked here:
http://jira.jboss.com/jira/browse/JBMICROCONT-165
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032377#4032377
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032377
17 years, 3 months