Andreas 'ac0v' Specht > Hyper-Developer > Hyper::Developer::Generator

Download:
Hyper-Developer-0.07.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: v0.01   Source  

NAME ^

Hyper::Developer::Generator - abstract base class for code generation.

VERSION ^

This document describes Hyper::Developer::Generator 0.01

SYNOPSIS ^

    package Hyper::Developer::Generator::Example;
    use base qw(Hyper::Developer::Generator);

    Hyper::Developer::Generator::Example->new({
        service   => 'MyService',
        usecase   => 'AnotherUsecase',
    });

    1;

DESCRIPTION ^

Hyper::Developer::Generator is an abstract base class for code and environment generation in the Hyper framework.

ATTRIBUTES ^

base_path :get :init_arg
template :get
namespace :name
verbose :name :default<()>
force :name :default<()>

SUBROUTINES/METHODS ^

START

    package Hyper::Developer::Generator::Example;
    use base qw(Hyper::Developer::Generator);

    Hyper::Developer::Generator::Example->new({
        service   => 'MyService',
        usecase   => 'AnotherUsecase',
    });

    1;

Called automatically from Class::Std after object initialization.

create

    $generator->create();

Creates files for the service of the usecase.

verbose_message

    $object->verbose_message('message 1', 'message 2');

Prints params and a newline if verbose attribute is true.

DIAGNOSTICS ^

CONFIGURATION AND ENVIRONMENT ^

Use Hyper::Singleton::Context for your configuration.

Sample for your Context.ini

    [Global]
    base_path=/srv/web/www.example.com/

DEPENDENCIES ^

INCOMPATIBILITIES ^

BUGS AND LIMITATIONS ^

RCS INFORMATIONS ^

Last changed by
 $Author: ac0v $
Id
 $Id: Generator.pm 333 2008-02-18 22:59:27Z ac0v $
Revision
 $Revision: 333 $
Date
 $Date: 2008-02-18 23:59:27 +0100 (Mon, 18 Feb 2008) $
HeadURL
 $HeadURL: http://svn.hyper-framework.org/Hyper/Hyper-Developer/branches/0.07/lib/Hyper/Developer/Generator.pm $

AUTHOR ^

Andreas Specht <ACID@cpan.org>

LICENSE AND COPYRIGHT ^

Copyright (c) 2007, Andreas Specht <ACID@cpan.org>. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: