View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Alceu Rodrigues de Freitas Junior > Siebel-Srvrmgr > Siebel::Srvrmgr::Daemon::ActionFactory



Annotate this POD


View/Report Bugs
Module Version: 0.29   Source  


Siebel::Srvrmgr::Daemon::ActionFactory - abstract factory to create Action subclasses


        my $action = Siebel::Srvrmgr::Daemon::ActionFactory->create(
                        parser => Siebel::Srvrmgr::ListParser->new(),
                        params => \@params


This is a abstract factory used to instatiate Action classes. It is used primarily by Siebel::Srvrmgr::Daemon class to define the Action objects to process generated output.



Expects as parameter the name of the class that needs to be instantiated followed by any required parameters for the class to instantiate a new object. It returns the instantiated object, if possible, otherwise it will raise an exception.

If a single string (without double semicolon separators) is given as the class name, ActionFactory will understand that it will have to expand it to a full Action subclass name available from this distribution. For example, if a "LoadPrefences" is given it will be expanded to "Siebel::Srvrmgr::Daemon::Action::LoadPreferences" and try to instantiate such object.

If a full class name (with double semicolon separators) is given, the factory will try to instantiate that object and return it. That should make possible to create objects from classes outside the distribution directory.



Alceu Rodrigues de Freitas Junior, <>.


This software is copyright (c) 2012 of Alceu Rodrigues de Freitas Junior, <>.

This file is part of Siebel Monitoring Tools.

Siebel Monitoring Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Siebel Monitoring Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Siebel Monitoring Tools. If not, see

syntax highlighting: