Return-Path: Delivered-To: apmail-jakarta-avalon-cvs-archive@apache.org Received: (qmail 28654 invoked from network); 12 Jan 2002 02:08:05 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Jan 2002 02:08:05 -0000 Received: (qmail 16143 invoked by uid 97); 12 Jan 2002 02:08:14 -0000 Delivered-To: qmlist-jakarta-archive-avalon-cvs@jakarta.apache.org Received: (qmail 16127 invoked by uid 97); 12 Jan 2002 02:08:13 -0000 Mailing-List: contact avalon-cvs-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon CVS List" Reply-To: "Avalon Developers List" Delivered-To: mailing list avalon-cvs@jakarta.apache.org Received: (qmail 16116 invoked by uid 97); 12 Jan 2002 02:08:13 -0000 Date: 12 Jan 2002 02:08:02 -0000 Message-ID: <20020112020802.74410.qmail@icarus.apache.org> From: donaldp@apache.org To: jakarta-avalon-phoenix-cvs@apache.org Subject: cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/metainfo BlockInfo.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N donaldp 02/01/11 18:08:01 Modified: src/java/org/apache/avalon/phoenix/tools/infobuilder BlockInfoBuilder.java src/java/org/apache/avalon/phoenix/metainfo BlockInfo.java Log: Make it possible for infos to also parse management services from descriptor. Revision Changes Path 1.7 +4 -1 jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/infobuilder/BlockInfoBuilder.java Index: BlockInfoBuilder.java =================================================================== RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/infobuilder/BlockInfoBuilder.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- BlockInfoBuilder.java 11 Dec 2001 10:13:35 -0000 1.6 +++ BlockInfoBuilder.java 12 Jan 2002 02:08:01 -0000 1.7 @@ -55,6 +55,9 @@ configuration = info.getChild( "services" ); final ServiceDescriptor[] services = buildServices( configuration ); + configuration = info.getChild( "management" ); + final ServiceDescriptor[] management = buildServices( configuration ); + configuration = info.getChild( "dependencies" ); final DependencyDescriptor[] dependencies = buildDependencies( classname, configuration ); @@ -70,7 +73,7 @@ getLogger().debug( message ); } - return new BlockInfo( descriptor, services, dependencies ); + return new BlockInfo( descriptor, services, management, dependencies ); } /** 1.8 +20 -3 jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/metainfo/BlockInfo.java Index: BlockInfo.java =================================================================== RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/metainfo/BlockInfo.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- BlockInfo.java 11 Dec 2001 10:13:35 -0000 1.7 +++ BlockInfo.java 12 Jan 2002 02:08:01 -0000 1.8 @@ -10,7 +10,11 @@ import org.apache.avalon.excalibur.container.Info; /** - * This descrbes information about the block that is used by administration tools and kernel. + * This class contains meta-information of use to administative + * tools and the kernel. It describes the services offered by a type + * of block, the dependencies of the block, the management interface of + * block (if any) and also contains information useful to presenting + * information in administative screens (like human readable names etc). * * @author Peter Donald */ @@ -19,6 +23,7 @@ { private final BlockDescriptor m_descriptor; private final ServiceDescriptor[] m_services; + private final ServiceDescriptor[] m_management; private final DependencyDescriptor[] m_dependencies; /** @@ -26,10 +31,12 @@ */ public BlockInfo( final BlockDescriptor descriptor, final ServiceDescriptor[] services, + final ServiceDescriptor[] management, final DependencyDescriptor[] dependencies ) { m_descriptor = descriptor; m_services = services; + m_management = management; m_dependencies = dependencies; } @@ -48,7 +55,7 @@ /** * This returns a list of Services that this block exports. * - * @return an array of Services (can be null) + * @return an array of Services */ public ServiceDescriptor[] getServices() { @@ -56,9 +63,19 @@ } /** + * This returns a list of Services that this block can be Managed by. + * + * @return an array of Management Services + */ + public ServiceDescriptor[] getManagement() + { + return m_management; + } + + /** * Return an array of Service dependencies that this Block depends upon. * - * @return an array of Service dependencies (may be null) + * @return an array of Service dependencies */ public DependencyDescriptor[] getDependencies() { -- To unsubscribe, e-mail: For additional commands, e-mail: