001 /*
002 * Copyright (c) 2009 The openGion Project.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
013 * either express or implied. See the License for the specific language
014 * governing permissions and limitations under the License.
015 */
016 package org.opengion.fukurou.mail;
017
018 /**
019 * メール受信処??メール受信ごとに呼び出されるリスナ?クラスです?
020 *
021 * @version 4.0
022 * @author Kazuhiko Hasegawa
023 * @since JDK5.0,
024 */
025 public interface MailReceiveListener {
026
027 /**
028 * メール受信処??メール受信ごとに呼び出されます?
029 * 処?果を?boolean で返します?
030 *
031 * @param message MailMessageオブジェク?
032 *
033 * @return 処?果(正常:true / 異常:false)
034 */
035 boolean receive( MailMessage message ) ;
036 }