|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentManager
Manages components.
Component
Method Summary | |
---|---|
void |
addComponent(String subdomain,
Component component)
Adds a component. |
Log |
getLog()
Returns a Log instance, which can be used by components for logging error, warning, info, and debug messages. |
String |
getProperty(String name)
Returns a property value specified by name. |
String |
getServerName()
Returns the domain of the XMPP server. |
boolean |
isExternalMode()
Returns true if components managed by this component manager are external components connected to the server over a network connection. |
void |
removeComponent(String subdomain)
Removes a component. |
void |
sendPacket(Component component,
Packet packet)
Sends a packet to the XMPP server. |
void |
setProperty(String name,
String value)
Sets a property value. |
Method Detail |
---|
void addComponent(String subdomain, Component component) throws ComponentException
Component.initialize(org.xmpp.packet.JID, ComponentManager)
method will be called on the component. The subdomain specifies the address of
the component on a server. For example, if the subdomain is "test" and the XMPP
server is at "example.com", then the component's address would be "test.example.com".
subdomain
- the subdomain of the component's address.component
- the component.
ComponentException
void removeComponent(String subdomain) throws ComponentException
Component.shutdown()
method will be called on the
component.
subdomain
- the subdomain of the component's address.
ComponentException
void sendPacket(Component component, Packet packet) throws ComponentException
component
- the component sending the packet.packet
- the packet to send.
ComponentException
String getProperty(String name)
name
- the property name.
void setProperty(String name, String value)
name
- the property name.value
- the property value.String getServerName()
boolean isExternalMode()
Log getLog()
|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |