Tadashi Okoshi
slash****@users*****
2006年 6月 6日 (火) 17:39:59 JST
Index: affelio/lib/Affelio.pm
diff -u affelio/lib/Affelio.pm:1.45 affelio/lib/Affelio.pm:1.46
--- affelio/lib/Affelio.pm:1.45 Fri Jun 2 16:01:26 2006
+++ affelio/lib/Affelio.pm Tue Jun 6 17:39:58 2006
@@ -14,7 +14,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
-# $Id: Affelio.pm,v 1.45 2006/06/02 07:01:26 slash5234 Exp $
+# $Id: Affelio.pm,v 1.46 2006/06/06 08:39:58 slash5234 Exp $
package Affelio;
{
@@ -177,8 +177,6 @@
return $self;
}
-
-
######################################################################
#Destructor
######################################################################
@@ -805,7 +803,12 @@
eval "require $clsname; import $clsname;";
if($@){ throw Affelio::exception::SystemException("Could not load [$clsname]"); }
debug_print("Affelio::read_site_config: AFE_con [$clsname] loaded.");
- $self->{farm_con} = eval "new $clsname;";
+# $self->{farm_con} = eval "new $clsname;";
+ $self->{farm_con} = $clsname->new(af => $self);
+ if($@){
+ debug_print("$@");
+ throw Affelio::exception::SystemException("Could not instantiate [$clsname].");
+ }
$self->{farm_con}->load_config();
####################