Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, Version 3, 29 June 2007; you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
package org.kevoree.library.defaultChannels;
import  org.kevoree.framework.AbstractChannelFragment;
import  org.kevoree.framework.ChannelFragmentSender;
import  org.kevoree.framework.KevoreeChannelFragment;
import  org.kevoree.framework.NoopChannelFragmentSender;
import  org.kevoree.framework.message.*;
import  org.kevoree.log.Log;

@Library(name = "JavaSE")
public class defMSG extends AbstractChannelFragment {
    public Object dispatch(Message msg) {
        if (getBindedPorts().isEmpty() && getOtherFragments().isEmpty()) {
           Log.debug("No consumer, msg lost");
        for (org.kevoree.framework.KevoreePort p : getBindedPorts()) {
        for (KevoreeChannelFragment cf : getOtherFragments()) {
            if (!msg.getPassedNodes().contains(cf.getNodeName())) {
        return null;
    public void startHello() {
       Log.debug("Hello Channel");
    public void stopHello() {
        Log.debug("Bye Channel");
    public void updateHello() {
        for (String s : this.getDictionary().keySet()) {
            Log.debug("Dic => " + s + " - " + this.getDictionary().get(s));
    public ChannelFragmentSender createSender(String remoteNodeNameString remoteChannelName) {
        return new NoopChannelFragmentSender();
    public void updateLocalBinding(){"local binding updated");
New to GrepCode? Check out our FAQ X