I need to see your composite file. It seems that you're trying to configure the context as a property. Any setter method annotated with @Context will be excluded from the SCA Reference/Property introspection against the Java impl class.

Thanks,
Raymond
--------------------------------------------------
From: "Gilbert Kwan" <[EMAIL PROTECTED]>
Sent: Tuesday, April 15, 2008 9:08 AM
To: <tuscany-dev@ws.apache.org>
Subject: Got WARNING if @Context is used to annotate a setter method

I am curious why I got following warnings when @Context is used to
annotate a setter method:

Apr 15, 2008 11:45:18 AM
org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl$1
problem
WARNING: No type specified on component property: BComponent/requestContext
Apr 15, 2008 11:45:18 AM
org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl$1
problem
WARNING: No type specified on component property: BComponent/componentContext
Apr 15, 2008 11:45:18 AM
org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl$1
problem
WARNING: No type specified on component property: BComponent/requestContext
Apr 15, 2008 11:45:18 AM
org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl$1
problem
WARNING: No type specified on component property: BComponent/componentContext

public RequestContext requestContext;
public ComponentContext componentContext;

@Context
public void setComponentContext(ComponentContext componentContext) {
this.componentContext = componentContext;
}

@Context
public void setRequestContext(RequestContext requestContext) {
this.requestContext = requestContext;
}

If @Context is used to annotate a class field, there is no warning.

Regards
Gilbert

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


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

Reply via email to