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 AUTHOR AND CONTRIBUTORS
49 See L<AUTHOR|DBIx::Class/AUTHOR> and L<CONTRIBUTORS|DBIx::Class/CONTRIBUTORS> in DBIx::Class
53 You may distribute this code under the same terms as Perl itself.