Update of /cvsroot/velcro/velcro/main/src/java/velcro/broadcaster
In directory sc8-pr-cvs1:/tmp/cvs-serv14753/velcro/broadcaster
Added Files:
MessageProcessorEntry.java
Log Message:
Initial add.
--- NEW FILE: MessageProcessorEntry.java ---
/*
* MessageProcessorEntry.java
*
* This file is part of Velcro.
*
* Velcro is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* Velcro 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 General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with Velcro; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Copyright 2002, Mike Heath
*
* Created on November 19, 2002, 9:16 PM
* Created by Mike Heath (heathm at users.sourceforge.net)
* $Author: heathm $
* $Date: 2002/12/03 15:03:17 $
* $Revision: 1.1 $
*/
package velcro.broadcaster;
/**
* Holds a message processor entry as retreived from the EJB environment
* entries.
*
* @author Mike Heath (mike at users.sourceforgen.net)
*/
class MessageProcessorEntry {
private String type;
private String phase;
private String ejbName;
private int priority;
/**
* Creates a new instance of MessageProcessorEntry
*/
public MessageProcessorEntry(String type, String phase, String ejbName, int priority) {
setType(type);
setPhase(phase);
setEjbName(ejbName);
setPriority(priority);
}
/**
* Returns the JNDI EJB reference name for the current entry.
*
* @return EJB reference name
*/
public java.lang.String getEjbName() {
return ejbName;
}
/**
* Sets the JNDI EJB reference name for the current entry.
*
* @param ejbName EJB reference name
*/
public void setEjbName(String ejbName) {
this.ejbName = ejbName;
}
/**
* Returns the priority in which entry is invoked.
*
* @return The priority
*/
public int getPriority() {
return priority;
}
/**
* Sets the priority in which entry is invoked.
*
* @param priority The priority.
*
*/
public void setPriority(int priority) {
this.priority = priority;
}
/**
* Returns the type of the message this processor handles.
*
* @return The message type.
*/
public String getType() {
return type;
}
/**
* Sets the type of the message this processor handles.
*
* @param type The message type.
*/
public void setType(String type) {
this.type = type;
}
/**
* Returns the phase of the message this processor handles.
*
* @return The message phase.
*/
public String getPhase() {
return phase;
}
/**
* Sets the phase of the message this processor handles.
*
* @param phase The message phase.
*/
public void setPhase(java.lang.String phase) {
this.phase = phase;
}
}
/*
* $Log: MessageProcessorEntry.java,v $
* Revision 1.1 2002/12/03 15:03:17 heathm
* Initial add.
*
*/
|