diff lib/IMPL/Config/Container.pm @ 418:3f38dabaf5cc ref20150831

sync
author cin
date Mon, 28 Dec 2015 15:11:35 +0300
parents 3ed0c58e9da3
children bbc4739c4d48
line wrap: on
line diff
--- a/lib/IMPL/Config/Container.pm	Mon Nov 02 01:56:53 2015 +0300
+++ b/lib/IMPL/Config/Container.pm	Mon Dec 28 15:11:35 2015 +0300
@@ -6,7 +6,6 @@
 use IMPL::declare {
 	require => {
 		Descriptor        => 'IMPL::Config::Descriptor',
-		ValueDescriptor   => 'IMPL::Config::ValueDescriptor',
 		ActivationContext => 'IMPL::Config::ActivationContext',
 		Hierarchy         => 'IMPL::Config::Hierarchy',
 		Bag               => 'IMPL::Config::Bag',
@@ -107,6 +106,24 @@
 	return \@result;
 }
 
+sub Configure {
+	my ($this, $config) = @_;
+	
+	if (isarray($config)) {
+		$this->Configure($_) foreach @$config;
+	} elsif (ishash($config)) {
+		
+	} else {
+		die IMPL::ArgumentException->new(config => 'Either a hash or an array is required');
+	}
+}
+
+sub ParseDescriptor {
+	my ($this, $data) = @_;
+	
+	if ()
+}
+
 1;
 
 __END__