Sponsored Content
Full Discussion: Tron Legacy
The Lounge What is on Your Mind? Tron Legacy Post 302511041 by figaro on Tuesday 5th of April 2011 03:38:51 PM
Old 04-05-2011
Link inaccessible.
This User Gave Thanks to figaro For This Post:
 

6 More Discussions You Might Find Interesting

1. Programming

CMI Legacy

Is there anyone who still uses CMI to connect to the legacy system , my c applications do uses the binaries and libraries for using the CMI functionality but i do not have access to the original source code , and since this is a very old stuff , i just could not get any source to get to knwo the... (0 Replies)
Discussion started by: dino_leix
0 Replies

2. Solaris

How to set up legacy services right on Solaris 10

I want to add auto startup and shutdown script to Solaris 10's legacy services as they run in Solaris 9 or in Linux. To make this work, I created the crontrol script in /etc/init.d and then link it to /etc/rc0.d and /etc/rc2.d directories. rc0.d is for shutdown and rc2.d is for srat. After I... (15 Replies)
Discussion started by: duke0001
15 Replies

3. Programming

VERSYS Legacy System

I need help locating the tables that hold the demograhic data in this system on an AIX box. Does anyone know the path? (0 Replies)
Discussion started by: Chelcye
0 Replies

4. Solaris

NFS server on Legacy Container?

Hi All, I have a problem as follows. Historically, there was an Ultra10 workstation running Solaris 8 using automount to access NFS volumes on a Solaris 8 server. The Ultra 10 was retired and the Solaris 8 server has been migrated to a Legacy Container (Solaris 8 Branded, whole root,... (9 Replies)
Discussion started by: hicksd8
9 Replies

5. Solaris

Determine if you are in a Legacy Zone?

Hi Folks, Just a quick question here, about Legacy Zones. Well more about how to determine if you are actually in one, on logging into a legacy zone - is there a quick way of checking that? Regards Gull04 (7 Replies)
Discussion started by: gull04
7 Replies

6. UNIX for Advanced & Expert Users

Upgrading legacy packages with patch

Hi, All of our production servers are installed with Apache and OpenSSL from source and not yum. My boss has assigned me with a task of upgrading all production servers Apache httpd & openssl to the latest patch from Centos Repo. Is it possible to do this via yum? Please suggest the best... (10 Replies)
Discussion started by: anaigini45
10 Replies
Moose::Cookbook::Legacy::Table_ClassMetaclass(3pm)	User Contributed Perl Documentation	Moose::Cookbook::Legacy::Table_ClassMetaclass(3pm)

NAME
Moose::Cookbook::Meta::Table_ClassMetaclass - Adding a "table" attribute to the metaclass VERSION
version 2.0603 SYNOPSIS
package MyApp::Meta::Class; use Moose; extends 'Moose::Meta::Class'; has table => ( is => 'rw', isa => 'Str', ); DESCRIPTION
WARNING: Subclassing metaclasses (as opposed to providing metaclass traits) is strongly discouraged. This recipe is provided solely for reference when encountering older code that does this. In this recipe, we'll create a new metaclass which has a "table" attribute. This metaclass is for classes associated with a DBMS table, as one might do for an ORM. In this example, the table name is just a string, but in a real ORM the table might be an object describing the table. THE METACLASS
This really is as simple as the recipe "SYNOPSIS" shows. The trick is getting your classes to use this metaclass, and providing some sort of sugar for declaring the table. This is covered in Moose::Cookbook::Extending::Recipe2, which shows how to make a module like "Moose.pm" itself, with sugar like "has_table()". Using this Metaclass in Practice Accessing this new "table" attribute is quite simple. Given a class named "MyApp::User", we could simply write the following: my $table = MyApp::User->meta->table; As long as "MyApp::User" has arranged to use "MyApp::Meta::Class" as its metaclass, this method call just works. If we want to be more careful, we can check the metaclass's class: $table = MyApp::User->meta->table if MyApp::User->meta->isa('MyApp::Meta::Class'); CONCLUSION
Creating custom metaclass is trivial. Using it is a little harder, and is covered in other recipes. We will also talk about applying traits to a class metaclass, which is a more flexible and cooperative implementation. SEE ALSO
Moose::Cookbook::Meta::Recipe5 - The "table" attribute implemented as a metaclass trait Moose::Cookbook::Extending::Recipe2 - Acting like Moose.pm and providing sugar Moose-style AUTHOR
Moose is maintained by the Moose Cabal, along with the help of many contributors. See "CABAL" in Moose and "CONTRIBUTORS" in Moose for details. COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Infinity Interactive, Inc.. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-28 Moose::Cookbook::Legacy::Table_ClassMetaclass(3pm)
All times are GMT -4. The time now is 03:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy