001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.scheduler;
016    
017    import com.liferay.portal.kernel.util.StringBundler;
018    import com.liferay.portal.kernel.util.StringPool;
019    
020    /**
021     * @author Shuyang Zhou
022     */
023    public class SchedulerEntryImpl implements SchedulerEntry {
024    
025            @Override
026            public String getDescription() {
027                    return _description;
028            }
029    
030            @Override
031            public String getEventListenerClass() {
032                    return _eventListenerClass;
033            }
034    
035            @Override
036            public Trigger getTrigger() {
037                    return _trigger;
038            }
039    
040            public void setDescription(String description) {
041                    _description = description;
042            }
043    
044            public void setEventListenerClass(String eventListenerClass) {
045                    _eventListenerClass = eventListenerClass;
046            }
047    
048            public void setTrigger(Trigger trigger) {
049                    _trigger = trigger;
050            }
051    
052            @Override
053            public String toString() {
054                    StringBundler sb = new StringBundler(5);
055    
056                    sb.append(", description=, eventListenerClass=");
057                    sb.append(_eventListenerClass);
058                    sb.append(", trigger=");
059                    sb.append(_trigger);
060                    sb.append("}");
061    
062                    return sb.toString();
063            }
064    
065            private String _description = StringPool.BLANK;
066            private String _eventListenerClass = StringPool.BLANK;
067            private Trigger _trigger;
068    
069    }