/**
 * Copyright (c) 2015-2016 Linagora
 * 
 * This program/library is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 2.1 of the License, or (at your
 * option) any later version.
 * 
 * This program/library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
 * for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program/library; If not, see <http://www.gnu.org/licenses/>
 * for the GNU Lesser General Public License version 2.1.
 */
package org.ow2.petals.bc.gateway;

import java.util.List;

import org.ow2.petals.bc.gateway.utils.JbiGatewayJBIHelper;
import org.ow2.petals.component.framework.DefaultBootstrap;
import org.ow2.petals.component.framework.api.exception.PEtALSCDKException;
import org.ow2.petals.component.framework.jbidescriptor.generated.Component;

/**
 * There is one instance of this class for the whole component. The class is declared in the jbi.xml.
 * 
 * @author vnoel
 *
 */
public class JbiGatewayBootstrap extends DefaultBootstrap {

    private static final String METHOD_NAME_ADD_TRANSPORT = "addTransportListener";

    @Override
    public List<String> getMethodList() {
        final List<String> methods = super.getMethodList();

        methods.add(METHOD_NAME_ADD_TRANSPORT);

        return methods;
    }

    /**
     * TODO could we infer all of this from the jbi without bothering? Like it is the case with the runtimeint and co?
     */
    public void addTransportListener(final String id, final int port) throws PEtALSCDKException {
        final Component component = getJbiComponentConfiguration().getComponent();
        JbiGatewayJBIHelper.addTransportListener(id, port, component);
    }

}

@@ -844,20 +844,26 @@
 va.util.
-List
+Collection
 ;%0A%0Aimpor
@@ -1411,16 +1411,17 @@
 ener%22;%0A%0A
+%0A
     @Ove
@@ -1437,20 +1437,26 @@
  public 
-List
+Collection
 %3CString%3E
@@ -1460,25 +1460,35 @@
 ng%3E getM
-ethodList
+BeanOperationsNames
 () %7B%0A   
@@ -1498,20 +1498,26 @@
   final 
-List
+Collection
 %3CString%3E
@@ -1541,17 +1541,27 @@
 getM
-ethodList
+BeanOperationsNames
 ();%0A

Align with trunk