directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet" <gno...@gmail.com>
Subject Re: XBean questions
Date Thu, 27 Nov 2008 07:41:42 GMT
On a given setter, you should be able to use the following:
    @org.apache.xbean.Property hidden="true"
AFAIK, there is no way to tell xbean to ignore the parent class.

On Wed, Nov 19, 2008 at 10:50 PM, Emmanuel Lecharny <elecharny@gmail.com> wrote:
> Hi,
>
> as I have added some properies into the AbstractProtocolService class, I'm
> now trying to get them listed on the web site (documentation effort ...).
>
> The problem I have is that all the setXXX() methods are immediately seen as
> configuration parameters, even if it's not the case.
>
> We are using a generic XBean annotation :
>
> * @org.apache.xbean.XBean
> */
> public class NtpServer extends AbstractProtocolService
> ...
>
> which use reflection to construct the XSD file from the javaclass. What I
> would like to do is to remove the useless parameters from this XSD file when
> the maven-xbean-plugin is run. For instance, I don't want :
> - DatagramAcceptor
> - SocketAcceptor
> - DirectoryService (we don't use it for the NtpServer)
> - ServiceID (This is a technical info which will never change)
> - ServiceName (This is a technical info which will never change)
> - started (it's a protected boolean set by the server itself, no need to
> configure it)
> - TransportProtocols
>
> Anyone knows how to get those elements not generated as part of the XSD file
> ?
>
> I have looked at the very sparse xbean doco, but didn't find anywhere
> something helpful. What I would like to do is to add some annotation to tell
> XBean not to use a setter as a configuration element. Or the opposite :
> declare all the configurable element in the top level class, telling xbean
> not to dig into the class and its parents for a new configurable element.
>
> Is it possible ?
>
> Thanks !
>
> --
> --
> cordialement, regards,
> Emmanuel L├ęcharny
> www.iktek.com
> directory.apache.org
>
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Mime
View raw message