ymikulski 2002/09/25 15:48:11
Modified: csframework/src/cs/Service DefaultServiceManager.cs
DefaultServiceSelector.cs IServiceable.cs
IServiceManager.cs IServiceSelector.cs
ServiceException.cs
Log:
no message
Revision Changes Path
1.2 +7 -7
jakarta-avalon-excalibur/csframework/src/cs/Service/DefaultServiceManager.cs
Index: DefaultServiceManager.cs
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/csframework/src/cs/Service/DefaultServiceManager.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DefaultServiceManager.cs 19 Aug 2002 18:44:30 -0000 1.1
+++ DefaultServiceManager.cs 25 Sep 2002 22:48:11 -0000 1.2
@@ -1,10 +1,10 @@
-///
-/// Copyright (C) The Apache Software Foundation. All rights reserved.
-///
-/// This software is published under the terms of the Apache Software License
-/// version 1.1, a copy of which has been included with this distribution in
-/// the LICENSE.txt file.
-///
+//------------------------------------------------------------------------------
+// Copyright (C) The Apache Software Foundation. All rights reserved.
+//
+// This software is published under the terms of the Apache Software License
+// version 1.1, a copy of which has been included with this distribution in
+// the LICENSE.txt file.
+//------------------------------------------------------------------------------
using System;
using System.Collections;
using System.Text;
1.2 +20 -14
jakarta-avalon-excalibur/csframework/src/cs/Service/DefaultServiceSelector.cs
Index: DefaultServiceSelector.cs
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/csframework/src/cs/Service/DefaultServiceSelector.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DefaultServiceSelector.cs 19 Aug 2002 18:44:30 -0000 1.1
+++ DefaultServiceSelector.cs 25 Sep 2002 22:48:11 -0000 1.2
@@ -1,10 +1,10 @@
-///
-/// Copyright (C) The Apache Software Foundation. All rights reserved.
-///
-/// This software is published under the terms of the Apache Software License
-/// version 1.1, a copy of which has been included with this distribution in
-/// the LICENSE.txt file.
-///
+//------------------------------------------------------------------------------
+// Copyright (C) The Apache Software Foundation. All rights reserved.
+//
+// This software is published under the terms of the Apache Software License
+// version 1.1, a copy of which has been included with this distribution in
+// the LICENSE.txt file.
+//------------------------------------------------------------------------------
using System;
using System.Collections;
using System.Text;
@@ -36,15 +36,21 @@
}
}
- public object this[object policy]
+ /// <summary>
+ /// Gets the component associated with the given hint.
+ /// </summary>
+ /// <value>
+ /// The Component associated with the given hint.
+ /// </value>
+ public object this[object hint]
{
get
{
- object component = components[policy];
+ object component = components[hint];
if (component == null)
{
- throw new
ServiceException(string.Format("Unable to provide implementation for {0}.", policy));
+ throw new
ServiceException(string.Format("Unable to provide implementation for {0}.", hint));
}
return component;
}
@@ -52,22 +58,22 @@
set
{
CheckReadOnly();
- components[policy] = value;
+ components[hint] = value;
}
}
/// <summary>
/// Returns whether a component exists or not.
/// </summary>
- /// <param name="policy">The policy to retrieve a component</param>
+ /// <param name="hint">The hint to retrieve a component</param>
/// <returns>True if the component is available, false if it
not.</returns>
- public bool Contains(object policy)
+ public bool Contains(object hint)
{
bool componentContains = false;
try
{
- Release(this[policy]);
+ Release(this[hint]);
componentContains = true;
}
catch (Exception)
1.2 +11 -13
jakarta-avalon-excalibur/csframework/src/cs/Service/IServiceable.cs
Index: IServiceable.cs
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/csframework/src/cs/Service/IServiceable.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IServiceable.cs 19 Aug 2002 18:44:30 -0000 1.1
+++ IServiceable.cs 25 Sep 2002 22:48:11 -0000 1.2
@@ -1,10 +1,10 @@
-///
-/// Copyright (C) The Apache Software Foundation. All rights reserved.
-///
-/// This software is published under the terms of the Apache Software License
-/// version 1.1, a copy of which has been included with this distribution in
-/// the LICENSE.txt file.
-///
+//------------------------------------------------------------------------------
+// Copyright (C) The Apache Software Foundation. All rights reserved.
+//
+// This software is published under the terms of the Apache Software License
+// version 1.1, a copy of which has been included with this distribution in
+// the LICENSE.txt file.
+//------------------------------------------------------------------------------
using System;
namespace Apache.Avalon.Service
@@ -16,7 +16,7 @@
///
/// The contract surrounding a <c>IServiceable</c> is that it is a user.
/// The <c>IServiceable</c> is able to use <c>object</c>s managed
- /// by the <see cref="IServiceManager"/>IServiceManager</see> it was
initialized with.
+ /// by the <see cref="IServiceManager"/> it was initialized with.
/// As part of the contract with the system, the instantiating entity must call
/// the <c>Service( IServiceManager manager )</c> method before the
<c>IServiceable</c>
/// can be considered valid.
@@ -24,15 +24,13 @@
public interface IServiceable
{
/// <summary>
- /// Pass the <see cref="IServiceManager"/>IServiceManager</see>
- /// to the <code>IServiceable</code>.
+ /// Pass the <see cref="IServiceManager"/> to the
<code>IServiceable</code>.
///
/// The <code>IServiceable</code> implementation should use the
specified
- /// <see cref="IServiceManager"/>IServiceManager</see>
- /// to acquire the components it needs for execution.
+ /// <see cref="IServiceManager"/> to acquire the components it needs
for execution.
/// </summary>
/// <param name="manager">
- /// The <see cref="IServiceManager"/>IServiceManager</see> which
+ /// The <see cref="IServiceManager"/> which
/// this <code>IServiceable</code> uses.
/// </param>
/// <exception cref="ServiceException">if an error occurs</exception>
1.2 +7 -7
jakarta-avalon-excalibur/csframework/src/cs/Service/IServiceManager.cs
Index: IServiceManager.cs
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/csframework/src/cs/Service/IServiceManager.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IServiceManager.cs 19 Aug 2002 18:44:30 -0000 1.1
+++ IServiceManager.cs 25 Sep 2002 22:48:11 -0000 1.2
@@ -1,10 +1,10 @@
-///
-/// Copyright (C) The Apache Software Foundation. All rights reserved.
-///
-/// This software is published under the terms of the Apache Software License
-/// version 1.1, a copy of which has been included with this distribution in
-/// the LICENSE.txt file.
-///
+//------------------------------------------------------------------------------
+// Copyright (C) The Apache Software Foundation. All rights reserved.
+//
+// This software is published under the terms of the Apache Software License
+// version 1.1, a copy of which has been included with this distribution in
+// the LICENSE.txt file.
+//------------------------------------------------------------------------------
using System;
namespace Apache.Avalon.Service
1.2 +10 -7
jakarta-avalon-excalibur/csframework/src/cs/Service/IServiceSelector.cs
Index: IServiceSelector.cs
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/csframework/src/cs/Service/IServiceSelector.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IServiceSelector.cs 19 Aug 2002 18:44:30 -0000 1.1
+++ IServiceSelector.cs 25 Sep 2002 22:48:11 -0000 1.2
@@ -1,10 +1,10 @@
-///
-/// Copyright (C) The Apache Software Foundation. All rights reserved.
-///
-/// This software is published under the terms of the Apache Software License
-/// version 1.1, a copy of which has been included with this distribution in
-/// the LICENSE.txt file.
-///
+//------------------------------------------------------------------------------
+// Copyright (C) The Apache Software Foundation. All rights reserved.
+//
+// This software is published under the terms of the Apache Software License
+// version 1.1, a copy of which has been included with this distribution in
+// the LICENSE.txt file.
+//------------------------------------------------------------------------------
using System;
namespace Apache.Avalon.Service
@@ -19,6 +19,9 @@
/// <summary>
/// Gets the component associated with the given policy.
/// </summary>
+ /// <value>
+ /// The Component associated with the given policy.
+ /// </value>
/// <exception cref="ServiceException"></exception>
object this[object policy]
{
1.2 +7 -7
jakarta-avalon-excalibur/csframework/src/cs/Service/ServiceException.cs
Index: ServiceException.cs
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/csframework/src/cs/Service/ServiceException.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ServiceException.cs 19 Aug 2002 18:44:30 -0000 1.1
+++ ServiceException.cs 25 Sep 2002 22:48:11 -0000 1.2
@@ -1,10 +1,10 @@
-///
-/// Copyright (C) The Apache Software Foundation. All rights reserved.
-///
-/// This software is published under the terms of the Apache Software License
-/// version 1.1, a copy of which has been included with this distribution in
-/// the LICENSE.txt file.
-///
+//------------------------------------------------------------------------------
+// Copyright (C) The Apache Software Foundation. All rights reserved.
+//
+// This software is published under the terms of the Apache Software License
+// version 1.1, a copy of which has been included with this distribution in
+// the LICENSE.txt file.
+//------------------------------------------------------------------------------
using System;
namespace Apache.Avalon.Service
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>