[ 
http://issues.apache.org/jira/browse/HIVEMIND-131?page=comments#action_12313453 
] 

Stefan Ledent commented on HIVEMIND-131:
----------------------------------------

Sorry accidendaly submitted incomplete issue report:
This is the a configuration which I presume (???) should be supported by 
hivemind 1.1 :
...
        <configuration-point id="Test" 
schema-id="hivemind.lib.BeanFactoryContribution"/>

        <service-point id="TestFactory" 
interface="org.apache.hivemind.BeanFactory">
                <invoke-factory service-id="hivemind.lib.BeanFactoryBuilder">
                        <factory vend-class="TestProvider" 
configuration-id="Test" default-cacheable="false"/>
                </invoke-factory>
        </service-point>

        <contribution configuration-id="Test">
                <bean name="test1"  class="TestImpl" />
                <bean name="test2" class="TestImpl" cachebale="true"/>  
        </contribution>

        <configuration-point id="BeanUsage">
                <schema>
                        <element name="testuser">
                                <attribute name="name"/>
                                <attribute name="provider"      
translator="bean"/>
                                
                                <conversion class="TestUserImpl"/>
                        </element>
                </schema>                       
        </configuration-point>

        <contribution configuration-id="BeanUsage">
                <channel name="Test1" 
provider="TestFactory:test1,test1Initializer" 
                                attributes="configuration:SMTPSettings"/>
                <channel name="Test2  
provider="TestFactory:test1,test2Initializer"/>
        </contribution>
...
       
It took me a lot of time digging into the documentation and source code for 
finding 
it out as I didn't found any example of Fatory usage with parameters and bean 
translator usage. I supose it is no wonder as the translator is still not 
configured !?

> Configuration for the documented "bean" translator is missing in 
> "hivemind.lib" module
> --------------------------------------------------------------------------------------
>
>          Key: HIVEMIND-131
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-131
>      Project: HiveMind
>         Type: Bug
>   Components: library
>     Versions: 1.1
>  Environment: n/a
>     Reporter: Stefan Ledent

>
> The partially documented "bean" translator is not implemented or configured.
> The documnention is also not clear in where and how parameters to the 
> BeanFactoryBuilder are provided.
> Maybe a configuration example should be provided !?
> Although I am still not sure of the correctness of a following configuration:
>       <configuration-point id="Test" 
> schema-id="hivemind.lib.BeanFactoryContribution"/>
>       <service-point id="TestFactory" 
> interface="org.apache.hivemind.BeanFactory">
>               <invoke-factory service-id="hivemind.lib.BeanFactory">
>                       <factory vend-class="Test" configuration-id="Test" 
> default-cacheable="false"/>
>               </invoke-factory>
>       </service-point>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to