org.apache.avalon.repository.meta
Class FactoryDescriptor

java.lang.Object
  extended byorg.apache.avalon.repository.meta.ArtifactDescriptor
      extended byorg.apache.avalon.repository.meta.FactoryDescriptor
All Implemented Interfaces:
Serializable

public class FactoryDescriptor
extends ArtifactDescriptor

A RelationalDescriptor represents a set of metadata describing the structural relationships that an artifact has on other artifacts.

Version:
$Revision: 1.2 $
Author:
Stephen McConnell
See Also:
Serialized Form

Field Summary
static String API_KEY
           
static String FACTORY_KEY
           
static String IMP_KEY
           
static String SPI_KEY
           
 
Fields inherited from class org.apache.avalon.repository.meta.ArtifactDescriptor
BUILD_KEY, DOMAIN_KEY, VERSION_KEY
 
Constructor Summary
FactoryDescriptor(Attributes attributes)
          Creates a new RelationalDescriptor.
 
Method Summary
 Artifact[] getDependencies()
           
 Artifact[] getDependencies(String key)
          Return the implementation dependencies
 String getFactory()
          Return the factory classname.
 String toString()
          Return a stringified representation of the instance.
 
Methods inherited from class org.apache.avalon.repository.meta.ArtifactDescriptor
equals, getBuild, getDomain, getValue, getVersion, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

API_KEY

public static final String API_KEY
See Also:
Constant Field Values

SPI_KEY

public static final String SPI_KEY
See Also:
Constant Field Values

IMP_KEY

public static final String IMP_KEY
See Also:
Constant Field Values

FACTORY_KEY

public static final String FACTORY_KEY
See Also:
Constant Field Values
Constructor Detail

FactoryDescriptor

public FactoryDescriptor(Attributes attributes)
                  throws MetaException
Creates a new RelationalDescriptor.

Parameters:
attributes - the meta data attributes
Method Detail

getFactory

public String getFactory()
Return the factory classname.

Returns:
the classname

getDependencies

public Artifact[] getDependencies(String key)
Return the implementation dependencies

Returns:
the artifacts

getDependencies

public Artifact[] getDependencies()

toString

public String toString()
Description copied from class: ArtifactDescriptor
Return a stringified representation of the instance.

Overrides:
toString in class ArtifactDescriptor
Returns:
the string representation


Copyright © Apache Software Foundation. All Rights Reserved.