enum PublishType extends java.lang.Enum<PublishType>
EventAdmin. Normally this would be implemented by
an interface but since the publishing types are predefined, an enum fits nicely.| Modifier and Type | Method and Description |
|---|---|
(package private) abstract void |
publish(org.osgi.service.event.EventAdmin admin,
org.osgi.service.event.Event event) |
static PublishType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PublishType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PublishType SEND
public static final PublishType POST
public static PublishType[] values()
for (PublishType c : PublishType.values()) System.out.println(c);
public static PublishType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullabstract void publish(org.osgi.service.event.EventAdmin admin,
org.osgi.service.event.Event event)