geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vamsavardhana Reddy" <c1vams...@gmail.com>
Subject GBeanOverride class - sourceClass or className ??
Date Mon, 20 Mar 2006 09:33:38 GMT
Hi,

I have trouble with the following code in GBeanOverride class.

    public GBeanOverride(GBeanData gbeanData) throws
InvalidAttributeException {
        GBeanInfo gbeanInfo = gbeanData.getGBeanInfo();
        this.gbeanInfo = gbeanInfo.getSourceClass();
        if (this.gbeanInfo == null) {
            throw new IllegalArgumentException("GBeanInfo must have a source
class set");
        }
    ...
    ...
    }

Q: Why is this check for sourceClass needed here?  Is this code intending to
check className here and checking sourceClass instead?

Thanks,
Vamsi

Mime
View raw message