DJabberd::Component - Abstract class representing a component in DJabberd


    package MyPackage::DJabberd::MyComponent;
    use base DJabberd::Component;
    sub initialize {
        my ($self, $opts) = @_;
        # ... perform initialization
    sub handle_stanza {
        my ($self, $vhost, $stanza) = @_;
        # ... handle the given stanza

This class provides a parent class for all DJabberd components. Components that inherit from this class can then be used directly by the server via the DJabberd::Plugin::Component plugin, or used directly by other classes.

See DJabberd::Component::Example for an example component implementation.

TODO: Write more docs