|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.StandardMBean
org.jboss.osgi.testing.internal.ClipboardImpl
public class ClipboardImpl
An implementation of a simple clipboard.
| Field Summary |
|---|
| Fields inherited from interface org.jboss.osgi.testing.ClipboardMBean |
|---|
OBJECTNAME |
| Constructor Summary | |
|---|---|
ClipboardImpl()
|
|
| Method Summary | |
|---|---|
void |
addMessage(String message)
Add a message to the clipboard |
void |
clearMessages()
Clear the messages on the clipboard. |
String |
getLastMessage()
Get the last message added to the list. |
String |
getMessage(int index)
Get the message at the given index. |
int |
getMessageCount()
Get the current message count. |
List<String> |
getMessages()
Get the unmodifieable list of clipboard messages |
String |
removeMessage(int index)
Remove the message at the given index. |
| Methods inherited from class javax.management.StandardMBean |
|---|
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClipboardImpl()
throws NotCompliantMBeanException
NotCompliantMBeanException| Method Detail |
|---|
public void addMessage(String message)
ClipboardMBean
addMessage in interface ClipboardMBeanpublic List<String> getMessages()
ClipboardMBean
getMessages in interface ClipboardMBeanpublic int getMessageCount()
ClipboardMBean
getMessageCount in interface ClipboardMBeanpublic String getMessage(int index)
ClipboardMBean
getMessage in interface ClipboardMBeanpublic String getLastMessage()
ClipboardMBean
getLastMessage in interface ClipboardMBeanpublic String removeMessage(int index)
ClipboardMBean
removeMessage in interface ClipboardMBeanpublic void clearMessages()
ClipboardMBean
clearMessages in interface ClipboardMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||