blob: 5c2c03391cd116979796887df8618cae00f1a625 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package org.apache.felix.ipojo.runtime.core.components;
import org.apache.felix.ipojo.runtime.core.services.Toto;
import java.util.Properties;
public class TotoProvider implements Toto {
private int i = 0;
public static int toto = 0;
public static int toto_2 = 0;
public static int toto_3 = 0;
public static int toto_4 = 0;
public static int toto1 = 0;
public int count() {
return i;
}
public void toto() {
toto++;
}
public void toto(int i, int j) {
toto_2++;
}
public String toto(String a) {
toto_3++;
return a;
}
public String toto(String[] a) {
toto_4++;
return "toto";
}
public void toto1(String j) {
i++;
toto1++;
}
public Properties getProps() {
Properties props = new Properties();
props.put("i", new Integer(i));
props.put("toto", new Integer(toto));
props.put("toto_2", new Integer(toto_2));
props.put("toto_3", new Integer(toto_3));
props.put("toto_4", new Integer(toto_4));
props.put("toto1", new Integer(toto1));
return props;
}
}