[Users] abstractcomponent=null!!!

lolo [via Petals ESB] ml-node+3203747-1836962670-385891 at n3.nabble.com
Wed Jul 27 17:16:31 CEST 2011



Bonjour,
Je suis entrain de créer un BC RESTful avec maven et un serveur
d'application jetty, en utilisant JAX-RS, la pile Jersey.

Petals réussi à installer le composant.
Jetty réussi à démarrer.
Mon problème est que j'ai rajouté une classe componentController qui prend
comme paramètre un abstract component et renvoie restfulBindingComponent ou
null si le abstract component n'est pas  un restfulBindingComponent. Comme
suit:


public class ComponentController {
	
	/**
	 * Get the RestfulBindingComponent
	 * @param abstractComponent the abstract component
	 * @return the restfulBindingComponent or null if the abstract component
isn't a restfulBindingComponent
	 */
	public final static RestfulBindingComponent getRestfulBindingComponent(
			AbstractComponent abstractComponent) {
		RestfulBindingComponent restfulBindingComponent = null;
		if (abstractComponent instanceof RestfulBindingComponent) {
			restfulBindingComponent = (RestfulBindingComponent) abstractComponent;
		}
		return restfulBindingComponent;
	}
}


lors de l'utilisation de cette classe dans ma méthode GET que j'ai
implémenté:

...
RestfulBindingComponent restfulBindingComponent = ComponentController
		.getRestfulBindingComponent(this.getComponent());


le this.getComponent(): me renvoie un un abstract component null.
Je ne sais pas si ma question est claire, pouvez-vous m'aider?

_______________________________________________
If you reply to this email, your message will be added to the discussion below:
http://forum.petalslink.com/abstractcomponent-null-tp3203747p3203747.html
To start a new topic under Users (get help, provide help), email ml-node+2681628-1333396262-385891 at n3.nabble.com
To unsubscribe from Users (get help, provide help), visit http://forum.petalslink.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2681628&code=dXNlcnNAZm9ydW0ucGV0YWxzbGluay5vcmd8MjY4MTYyOHwtOTE3MDU0NjU4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110727/55fea467/attachment-0001.htm>


More information about the Users mailing list