[jboss-jira] [JBoss JIRA] Commented: (JBMICROCONT-35) Allow retrieval of the collection instance from the bean

Ales Justin (JIRA) jira-events at jboss.com
Sun Aug 27 16:12:45 EDT 2006


    [ http://jira.jboss.com/jira/browse/JBMICROCONT-35?page=comments#action_12342008 ] 
            
Ales Justin commented on JBMICROCONT-35:
----------------------------------------

public class MyClass
{
    private List<String> list;

    public List<String> getList();
}

<property name="list"><list><value>...</value><list></property>
	

i.e. this will do
getList() and if it is not null, it will add to the list
rather than overwriting it.



> Allow retrieval of the collection instance from the bean
> --------------------------------------------------------
>
>                 Key: JBMICROCONT-35
>                 URL: http://jira.jboss.com/jira/browse/JBMICROCONT-35
>             Project: JBoss MicroContainer
>          Issue Type: Task
>          Components: MetaData
>            Reporter: Adrian Brock
>         Assigned To: Ales Justin
>             Fix For: JBossMC_2_0_0 final
>
>
> See org.jboss.test.kernel.config.test.CollectionTestCase#TODOtestCustomCollectionPreInstantiated
> Same issues apply to Lists, Sets, Maps, Arrays, etc.
> i.e. If the bean already has a collection value for the property that can be
> retrieved using the getter, we should be able to use that collection instance.
> Need to think about the configuration options and rules.
> Current rules are:
> 1) Use class specified in metadata
> 2) Use class specified on setter (if not an interface)
> 3) Use ArrayList

-- 
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