[Design the new POJO MicroContainer] - Re: Scoped beans deployment
by adrian@jboss.org
I don't understand the question?
The policy xml should be unmarshalled to an object that implements
BeanMetaDataFactory. When the deployment invokes getBeans()
that object will create some BeanMetaData for a POJO
that knows how to install/uninstall data into the MetaData repository.
| public class Policy implements BeanMetaDataFactory
| {
| public void setScope(ScopeMetaData);
|
| public void setMappings(Map<String, ValueMetaData>)
|
| public List<BeanMetaData> getBeanMetaData()
| {
| // IMPORTANT the Mappings needs to be converted to a MapMetaData
| // such that the injections in ValueMetaData work correctly, i.e. dependencies
| return buildMetaDataRepositoryInstallerBeanMetaData();
| }
| }
|
| public class MetaDataRepositoryInstaller
| {
| public void setScope(ScopeMetaData);
|
| @Inject // If we can assume there be will only one instance?
| public void setKernelMetaDataRepository(KernelMetaDataRepository)
|
| // The MC will resolve the ValueMetaData to objects!
| public void setMappings(Map<String, Object>)
|
| public void start()
| {
| // Install
| }
|
| public void stop()
| {
| // Uninstall
| }
| }
|
NOTE: I'm not overly impressed by the name "Policy"
perhaps <metadata> would be a better name?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012985#4012985
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012985
19 years, 2 months
[Design of JBoss Web Services] - Re: wsimport API, SPI, command line tool, and ant task
by thomas.diesler@jboss.com
Yes, this functionality should be included in 1.2.0 for many reasons. The actual naming of the tools seems to be the only remaining issue and should of course not hold back this important feature.
Lets clarify and step back a little.
When consuming a thirdparty web service using jbossws (i.e. a web service client) one would start with the abstract contract as input
| wsdl -> [wsimport]
| +- SEI
| +- Service
| +- JAXB artifacts
| +- [wrappers]
| +- [impl template]
|
[wrappers] - are generated on demand (i.e. with doc/lit wrapped, for exceptions)
[impl template] - a template for the endpoint implementation could be generated
When providing a webservice using jbossws one would start with the implementation bean or possibly with an SEI
| Impl -> [wsgen]
| [SEI] +- [wrappers]
| +- [wsdl]
|
[wrappers] - are generated on demand (i.e. with doc/lit wrapped, for exceptions)
[wsdl] - could be generated if asked to do so
For branding reasons and clarity sake we cannot name the jbossws tools the same as the RI tools. After some whiteboard sessions, we came up with the following suggestions
[wsgen]: javatowsdl, wsserver, wscontract, wsendpoint, wsexport
[wsimport]: wsdltojava, wsclient
Our favorite choice is underlined.
I would like to reach a conclusion on this today, so we can actually bring the feature in and write about is here http://tddell.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#JBossWS_Tools
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012965#4012965
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012965
19 years, 2 months
[Design of JCA on JBoss] - Re: JBAS-1437 RARMetaDataRepository
by adrian@jboss.org
"weston.price(a)jboss.com" wrote : anonymous wrote :
| | If you are doing this in two phases (parse/runtime) it should be automatic?
| |
| | The parsing stage populates the repository, the runtime stage (the actual
| | construction/configuration of the MBeans/Pojos) should have all the parsed rar information
| | in the repository by then?
| |
|
| No, that's the issue.
|
You missed the point.
The logic should be something like:
1a) Parse the MCF xml
1b) Parse the rar xml
2a) Deploy the mcf (create mbean/pojo metadata)
2b) Deploy the rar (create mbean/pojo metadata)
3a) Create the mcf object (callback from the MC when dependencies are satisified)
3b) Create the rar object (-""-)
(1) is the parsing stage of deployment
(2) is the post parsing or "real deployer" stage of deployment
Within each category it doesn't matter in which order things get done
because stage (1) fills the repository and stage (2) references it.
All you need is for stage (2) to look at the data from (1)
so you can decide what name to put in the dependency.
It is only in stage (3) - construction of the MBean/POJOs that you are
actually going to have wired objects.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012957#4012957
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012957
19 years, 2 months