| 1 | #********************************************************************* | ||||||||||||||||||||
| 2 | #*** ResourcePool::Factory::SOAP::Lite | ||||||||||||||||||||
| 3 | #*** Copyright (c) 2003 by Markus Winand <mws@fatalmind.com> | ||||||||||||||||||||
| 4 | #*** $Id: Lite.pm,v 1.6 2011-01-31 13:49:38 mws Exp $ | ||||||||||||||||||||
| 5 | #********************************************************************* | ||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | package ResourcePool::Factory::SOAP::Lite; | ||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | 3 | ▶ | use vars qw($VERSION @ISA); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 10 | 3 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 11 | 3 | ▶ | use ResourcePool::Resource::SOAP::Lite; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 12 | 3 | ▶ | use ResourcePool::Factory; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | 3 | $VERSION = "1.0103"; | |||||||||||||||||||
| 15 | 3 | push @ISA, "ResourcePool::Factory"; | |||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | 10 | ▶ | sub new($$) { | ||||||||||||||||||
|
Subroutine
new: called CC=3 SCAR=11.4
Pod
documented
| |||||||||||||||||||||
| 18 | 10 | my $proto = shift; | |||||||||||||||||||
| 19 | 10 | ▶ | my $class = ref($proto) || $proto; | ||||||||||||||||||
|
Condition33%1/3
ref $proto || $proto
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||
| 20 | 10 | my $self = $class->SUPER::new("SOAP::Lite"); | |||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | 10 | ▶ | if (! exists($self->{PROXYURL})) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 23 | 10 | $self->{PROXYURL} = shift; | |||||||||||||||||||
| 24 | } | ||||||||||||||||||||
| 25 | 10 | bless($self, $class); | |||||||||||||||||||
| 26 | 10 | return $self; | |||||||||||||||||||
| 27 | } | ||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | 6 | ▶ | sub create_resource($) { | ||||||||||||||||||
|
Subroutine
create_resource: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 30 | 6 | my ($self) = @_; | |||||||||||||||||||
| 31 | return ResourcePool::Resource::SOAP::Lite->new( | ||||||||||||||||||||
| 32 | $self->{PROXYURL} | ||||||||||||||||||||
| 33 | 6 | ); | |||||||||||||||||||
| 34 | } | ||||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | 2 | ▶ | sub info($) { | ||||||||||||||||||
|
Subroutine
info: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 37 | 2 | my ($self) = @_; | |||||||||||||||||||
| 38 | 2 | return $self->{PROXYURL}; | |||||||||||||||||||
| 39 | } | ||||||||||||||||||||
| 40 | |||||||||||||||||||||
| 41 | 3 | 1; | |||||||||||||||||||