org.jboss.ejb.deployers
Class SimpleCreateDestinationMatcher

java.lang.Object
  extended by org.jboss.ejb.deployers.SimpleCreateDestinationMatcher
All Implemented Interfaces:
CreateDestinationMatcher

public class SimpleCreateDestinationMatcher
extends Object
implements CreateDestinationMatcher

SimpleCreateDestinationMatcher.

Version:
$Revision: 85945 $
Author:
Adrian Brock

Constructor Summary
SimpleCreateDestinationMatcher()
           
 
Method Summary
 String getMessageListener()
          Get the messageListener.
 String getRarName()
          Get the rarName.
 boolean isDefault()
          Get the defaultMatcher.
 boolean isMatch(org.jboss.deployers.structure.spi.DeploymentUnit unit, org.jboss.metadata.ejb.jboss.JBossMessageDrivenBeanMetaData mdb)
          Return true if it is a match
protected static boolean noMatch(String check, String parameter, boolean defaultMatch)
           
 void setDefault(boolean defaultMatcher)
          Set the defaultMatcher.
 void setMessageListener(String messageListener)
          Set the messageListener.
 void setRarName(String rarName)
          Set the rarName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCreateDestinationMatcher

public SimpleCreateDestinationMatcher()
Method Detail

getMessageListener

public String getMessageListener()
Get the messageListener.

Returns:
the messageListener.

setMessageListener

public void setMessageListener(String messageListener)
Set the messageListener.

Parameters:
messageListener - the messageListener.

getRarName

public String getRarName()
Get the rarName.

Returns:
the rarName.

setRarName

public void setRarName(String rarName)
Set the rarName.

Parameters:
rarName - the rarName.

isDefault

public boolean isDefault()
Get the defaultMatcher.

Returns:
the defaultMatcher.

setDefault

public void setDefault(boolean defaultMatcher)
Set the defaultMatcher.

Parameters:
defaultMatcher - the defaultMatcher.

isMatch

public boolean isMatch(org.jboss.deployers.structure.spi.DeploymentUnit unit,
                       org.jboss.metadata.ejb.jboss.JBossMessageDrivenBeanMetaData mdb)
                throws org.jboss.deployers.spi.DeploymentException
Description copied from interface: CreateDestinationMatcher
Return true if it is a match

Specified by:
isMatch in interface CreateDestinationMatcher
Parameters:
unit - the unit
mdb - the mdb
Returns:
true if this is a match
Throws:
org.jboss.deployers.spi.DeploymentException - for any error

noMatch

protected static boolean noMatch(String check,
                                 String parameter,
                                 boolean defaultMatch)


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.