donaldp 2002/08/24 01:49:03
Added: containerkit/src/java/org/apache/excalibur/containerkit/registry
ComponentProfile.java
Log:
Add a class to describe ComponentProfile
Revision Changes Path
1.1
jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/registry/ComponentProfile.java
Index: ComponentProfile.java
===================================================================
/*
* 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.
*/
package org.apache.excalibur.containerkit.registry;
import org.apache.avalon.framework.info.ComponentInfo;
import org.apache.excalibur.containerkit.metadata.ComponentMetaData;
/**
* The ComponentProfile defines a component as a conjunction
* of the [EMAIL PROTECTED] ComponentInfo} and [EMAIL PROTECTED]
ComponentMetaData}.
* The [EMAIL PROTECTED] ComponentInfo} defines the type of the component
* and the [EMAIL PROTECTED] ComponentMetaData} defines the data required to
* construct a specific instance of the component.
*
* @author <a href="mailto:peter at apache.org">Peter Donald</a>
* @version $Revision: 1.1 $ $Date: 2002/08/24 08:49:03 $
*/
public class ComponentProfile
{
/**
* The [EMAIL PROTECTED] ComponentInfo} that describes
* the type of this component.
*/
private final ComponentInfo m_info;
/**
* The [EMAIL PROTECTED] ComponentMetaData} that describes
* this component.
*/
private final ComponentMetaData m_metaData;
/**
* Creation of a new <code>ComponentProfile</code> instance.
*
* @param metaData the [EMAIL PROTECTED] ComponentMetaData} instance
defining the component.
*/
public ComponentProfile( final ComponentInfo info,
final ComponentMetaData metaData )
{
m_info = info;
m_metaData = metaData;
}
/**
* Returns the underlying [EMAIL PROTECTED] ComponentInfo} instance.
*
* @return the component info instance
*/
public ComponentInfo getInfo()
{
return m_info;
}
/**
* Returns the underlying [EMAIL PROTECTED] ComponentMetaData} instance.
* @return the component meta data instance
*/
public ComponentMetaData getMetaData()
{
return m_metaData;
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>