1 package DBIx::Class::AccessorGroup;
6 use base qw/Class::Accessor::Grouped/;
7 use Scalar::Util qw/weaken blessed/;
10 my $successfully_loaded_components;
12 sub get_component_class {
13 my $class = $_[0]->get_inherited($_[1]);
15 # It's already an object, just go for it.
16 return $class if blessed $class;
18 if (defined $class and ! $successfully_loaded_components->{$class} ) {
19 $_[0]->ensure_class_loaded($class);
22 $successfully_loaded_components->{$class}
23 = ${"${class}::__LOADED__BY__DBIC__CAG__COMPONENT_CLASS__"}
24 = do { \(my $anon = 'loaded') };
25 weaken($successfully_loaded_components->{$class});
31 sub set_component_class {
32 shift->set_inherited(@_);
39 DBIx::Class::AccessorGroup - See Class::Accessor::Grouped
45 This class now exists in its own right on CPAN as Class::Accessor::Grouped
47 =head1 FURTHER QUESTIONS?
49 Check the list of L<additional DBIC resources|DBIx::Class/GETTING HELP/SUPPORT>.
51 =head1 COPYRIGHT AND LICENSE
53 This module is free software L<copyright|DBIx::Class/COPYRIGHT AND LICENSE>
54 by the L<DBIx::Class (DBIC) authors|DBIx::Class/AUTHORS>. You can
55 redistribute it and/or modify it under the same terms as the
56 L<DBIx::Class library|DBIx::Class/COPYRIGHT AND LICENSE>.