org.jboss.portal.registration.impl
Class RegistrationManagerImpl
java.lang.Object
ServiceMBeanSupport
org.jboss.portal.jems.as.system.AbstractJBossService
org.jboss.portal.registration.impl.RegistrationManagerImpl
- All Implemented Interfaces:
- RegistrationManager, RegistrationPropertyChangeListener
public class RegistrationManagerImpl
- extends AbstractJBossService
- implements RegistrationManager
- Since:
- 2.6
- Version:
- $Revision: 6648 $
- Author:
- Chris Laprun
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegistrationManagerImpl
public RegistrationManagerImpl()
getPolicy
public RegistrationPolicy getPolicy()
- Specified by:
getPolicy in interface RegistrationManager
setPolicy
public void setPolicy(RegistrationPolicy policy)
- Specified by:
setPolicy in interface RegistrationManager
getPersistenceManager
public RegistrationPersistenceManager getPersistenceManager()
- Specified by:
getPersistenceManager in interface RegistrationManager
setPersistenceManager
public void setPersistenceManager(RegistrationPersistenceManager persistenceManager)
- Specified by:
setPersistenceManager in interface RegistrationManager
addRegistrationTo
public Registration addRegistrationTo(java.lang.String consumerName,
java.util.Map registrationProperties,
boolean createConsumerIfNeeded)
throws RegistrationException
- Specified by:
addRegistrationTo in interface RegistrationManager
- Throws:
RegistrationException
createConsumer
public Consumer createConsumer(java.lang.String name)
throws RegistrationException,
InvalidConsumerDataException
- Specified by:
createConsumer in interface RegistrationManager
- Throws:
RegistrationException
InvalidConsumerDataException
addConsumerToGroupNamed
public Consumer addConsumerToGroupNamed(java.lang.String consumerName,
java.lang.String groupName,
boolean createGroupIfNeeded,
boolean createConsumerIfNeeded)
throws RegistrationException
- Specified by:
addConsumerToGroupNamed in interface RegistrationManager
- Throws:
RegistrationException
createConsumerGroup
public ConsumerGroup createConsumerGroup(java.lang.String groupName)
throws RegistrationException
- Specified by:
createConsumerGroup in interface RegistrationManager
- Throws:
RegistrationException
removeConsumer
public void removeConsumer(java.lang.String identity)
throws RegistrationException,
NoSuchRegistrationException
- Specified by:
removeConsumer in interface RegistrationManager
- Throws:
RegistrationException
NoSuchRegistrationException
removeConsumer
public void removeConsumer(Consumer consumer)
throws RegistrationException,
NoSuchRegistrationException
- Specified by:
removeConsumer in interface RegistrationManager
- Throws:
RegistrationException
NoSuchRegistrationException
getConsumerByIdentity
public Consumer getConsumerByIdentity(java.lang.String identity)
throws RegistrationException
- Specified by:
getConsumerByIdentity in interface RegistrationManager
- Throws:
RegistrationException
getConsumerFor
public Consumer getConsumerFor(java.lang.String registrationHandle)
throws RegistrationException
- Specified by:
getConsumerFor in interface RegistrationManager
- Throws:
RegistrationException
getRegistration
public Registration getRegistration(java.lang.String registrationHandle)
throws RegistrationException
- Specified by:
getRegistration in interface RegistrationManager
- Throws:
RegistrationException
removeRegistration
public void removeRegistration(java.lang.String registrationHandle)
throws RegistrationException,
NoSuchRegistrationException
- Specified by:
removeRegistration in interface RegistrationManager
- Throws:
RegistrationException
NoSuchRegistrationException
removeRegistration
public void removeRegistration(Registration registration)
throws RegistrationException
- Specified by:
removeRegistration in interface RegistrationManager
- Throws:
RegistrationException
getConsumerGroup
public ConsumerGroup getConsumerGroup(java.lang.String groupName)
throws RegistrationException
- Specified by:
getConsumerGroup in interface RegistrationManager
- Throws:
RegistrationException
getConsumerGroups
public java.util.Collection getConsumerGroups()
- Specified by:
getConsumerGroups in interface RegistrationManager
removeConsumerGroup
public void removeConsumerGroup(ConsumerGroup group)
throws RegistrationException
- Specified by:
removeConsumerGroup in interface RegistrationManager
- Throws:
RegistrationException
removeConsumerGroup
public void removeConsumerGroup(java.lang.String name)
throws RegistrationException
- Specified by:
removeConsumerGroup in interface RegistrationManager
- Throws:
RegistrationException
getConsumers
public java.util.Collection getConsumers()
- Specified by:
getConsumers in interface RegistrationManager
clear
public void clear()
throws RegistrationException
- Specified by:
clear in interface RegistrationManager
- Throws:
RegistrationException
propertiesHaveChanged
public void propertiesHaveChanged()
- We listen to registration property changes on the producer configuration so that we can invalidate the current
registrations. Consumers will need to call modifyRegistration since properties have changed...
- Specified by:
propertiesHaveChanged in interface RegistrationPropertyChangeListener