Class OfficeFloorMBeanRegistratorImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.OfficeFloorMBeanRegistratorImpl
-
- All Implemented Interfaces:
OfficeFloorMBeanRegistrator
,OfficeFloorListener
public class OfficeFloorMBeanRegistratorImpl extends java.lang.Object implements OfficeFloorMBeanRegistrator, OfficeFloorListener
OfficeFloorMBeanRegistrator
instance.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description OfficeFloorMBeanRegistratorImpl(MBeanRegistrator mbeanRegistrator)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
officeFloorClosed(OfficeFloorEvent event)
Notifies that theOfficeFloor
has been closed.void
officeFloorOpened(OfficeFloorEvent event)
Notifies that theOfficeFloor
has been opened.void
registerPossibleMBean(java.lang.Class<?> type, java.lang.String name, java.lang.Object mbean)
Registers a possible MBean.
-
-
-
Constructor Detail
-
OfficeFloorMBeanRegistratorImpl
public OfficeFloorMBeanRegistratorImpl(MBeanRegistrator mbeanRegistrator)
Instantiate.- Parameters:
mbeanRegistrator
-MBeanRegistrator
.
-
-
Method Detail
-
registerPossibleMBean
public void registerPossibleMBean(java.lang.Class<?> type, java.lang.String name, java.lang.Object mbean)
Description copied from interface:OfficeFloorMBeanRegistrator
Registers a possible MBean.- Specified by:
registerPossibleMBean
in interfaceOfficeFloorMBeanRegistrator
- Parameters:
type
- Type of MBean.name
- Name of MBean.mbean
- MBean.
-
officeFloorOpened
public void officeFloorOpened(OfficeFloorEvent event) throws java.lang.Exception
Description copied from interface:OfficeFloorListener
Notifies that theOfficeFloor
has been opened.- Specified by:
officeFloorOpened
in interfaceOfficeFloorListener
- Parameters:
event
-OfficeFloorEvent
.- Throws:
java.lang.Exception
- If fails to handle open listen logic.
-
officeFloorClosed
public void officeFloorClosed(OfficeFloorEvent event) throws java.lang.Exception
Description copied from interface:OfficeFloorListener
Notifies that theOfficeFloor
has been closed.- Specified by:
officeFloorClosed
in interfaceOfficeFloorListener
- Parameters:
event
-OfficeFloorEvent
.- Throws:
java.lang.Exception
- If fails to handle close listen logic.
-
-