[
https://issues.apache.org/jira/browse/CAMEL-19806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17761210#comment-17761210
]
Claus Ibsen commented on CAMEL-19806:
-------------------------------------
We can get bean metadata of the beans and find out their class names,
properties, constructors, and list/map and all of that
{code}
vsclaus/workspace/camel-kamelets-examples/jbang/blueprint-to-yaml
org.apache.aries.blueprint.container.BlueprintContainerImpl@6ac4c3f7
[blueprintContainer, orderService, office]
org.apache.aries.blueprint.reflect.PassThroughMetadataImpl@66f5a02e
BeanMetadata[id='orderService', initialization=0, dependsOn=null,
className='com.foo.OrderService', initMethodName='null',
destroyMethodName='null',
arguments=[BeanArgument[value=ValueMetadata[stringValue='true', type='null',
value='null'], valueType='null', index=0],
BeanArgument[value=RefMetadata[componentId='office'], valueType='null',
index=1]], properties=null, factoryMethodName='null', factoryComponent=null,
scope='null', runtimeClass=null, fieldInjection=false]
BeanMetadata[id='office', initialization=0, dependsOn=null,
className='com.foo.Address', initMethodName='null', destroyMethodName='null',
arguments=null, properties=[BeanProperty[name='zip',
value=ValueMetadata[stringValue='1234', type='null', value='null']],
BeanProperty[name='street', value=ValueMetadata[stringValue='MyStreet 123',
type='null', value='null']]], factoryMethodName='null', factoryComponent=null,
scope='null', runtimeClass=null, fieldInjection=false]
Listening for transport dt_socket at address: 4004
org.apache.aries.blueprint.container.BlueprintContainerImpl@7e87ef9e
[blueprintContainer, orderService, office]
org.apache.aries.blueprint.reflect.PassThroughMetadataImpl@17207f5b
BeanMetadata[id='orderService', initialization=0, dependsOn=null,
className='com.foo.OrderService', initMethodName='null',
destroyMethodName='null',
arguments=[BeanArgument[value=ValueMetadata[stringValue='true', type='null',
value='null'], valueType='null', index=0],
BeanArgument[value=RefMetadata[componentId='office'], valueType='null',
index=1]], properties=null, factoryMethodName='null', factoryComponent=null,
scope='null', runtimeClass=null, fieldInjection=false]
BeanMetadata[id='office', initialization=0, dependsOn=null,
className='com.foo.Address', initMethodName='null', destroyMethodName='null',
arguments=null, properties=[BeanProperty[name='zip',
value=ValueMetadata[stringValue='1234', type='null', value='null']],
BeanProperty[name='street', value=ValueMetadata[stringValue='MyStreet 123',
type='null', value='null']]], factoryMethodName='null', factoryComponent=null,
scope='null', runtimeClass=null, fieldInjection=false]
{code}
> camel-jbang - Allow to load OSGi <blueprint> with embedded <camelContext>
> -------------------------------------------------------------------------
>
> Key: CAMEL-19806
> URL: https://issues.apache.org/jira/browse/CAMEL-19806
> Project: Camel
> Issue Type: New Feature
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.1.0
>
>
> Load Camel OSGi <blueprint> XML files with limited parsing for OSGi <bean>
> and embedded <camelContext> so we can load its beans and routes, so users can
> more easier migrate to modern Camel DSL.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)