public class LampAccessImpl extends ComponentImplBase
m_containerServices, m_instanceName, m_logger| Constructor and Description |
|---|
LampAccessImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Releases the lamp component.
|
double |
getLampBrightness()
Returns the magnitude of the lamp component's brightness.
|
void |
initialize(ContainerServices containerServices)
Subclass must call
super.initialize(containerServices)
unless it overrides as well all other methods which access the member vars of this class. |
void |
setLampBrightness(double brightness)
Passes a value to the brightness property of the lamp component.
|
aboutToAbort, componentState, execute, namepublic void initialize(ContainerServices containerServices) throws ComponentLifecycleException
ComponentImplBasesuper.initialize(containerServices)
unless it overrides as well all other methods which access the member vars of this class.initialize in interface ComponentLifecycleinitialize in class ComponentImplBasecontainerServices - callback object for services provided by the containerComponentLifecycleExceptionComponentLifecycle.initialize(ContainerServices)public void cleanUp()
cleanUp in interface ComponentLifecyclecleanUp in class ComponentImplBaseComponentLifecycle.cleanUp()public void setLampBrightness(double brightness)
throws LampUnavailable
brightness - LampUnavailablealma.demo.LampAccessOperations#setLampBrightness(double)public double getLampBrightness()
throws LampUnavailable
LampUnavailablealma.demo.LampAccessOperations#getLampBrightness()