org.oddjob.arooa.deploy
Class ClassPathDescriptorFactory

java.lang.Object
  extended by org.oddjob.arooa.deploy.ClassPathDescriptorFactory
All Implemented Interfaces:
ArooaDescriptorFactory

public class ClassPathDescriptorFactory
extends Object
implements ArooaDescriptorFactory

Create an ArooaDescriptor by scanning for arooa.xml descriptor files.

This ArooaDescriptorFactory Returns null if there are no descriptors on the class path.

Author:
rob

Field Summary
static String AROOA_FILE
           
 
Constructor Summary
ClassPathDescriptorFactory()
           
 
Method Summary
 ArooaDescriptor createDescriptor(ClassLoader loader)
          Create an ArooaDesciptor.
 String getResource()
           
 boolean isExludeParent()
           
 void setExcludeParent(boolean exludeParent)
          Set to true to exclude arooa.xml files in the parent class loader.
 void setResource(String resource)
          Set the descriptor file to scan for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AROOA_FILE

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

ClassPathDescriptorFactory

public ClassPathDescriptorFactory()
Method Detail

createDescriptor

public ArooaDescriptor createDescriptor(ClassLoader loader)
Description copied from interface: ArooaDescriptorFactory
Create an ArooaDesciptor.

Specified by:
createDescriptor in interface ArooaDescriptorFactory
Parameters:
loader - The classLoader to use.
Returns:
An ArooaDescriptor. May be null.

getResource

public String getResource()

setResource

public void setResource(String resource)
Set the descriptor file to scan for. Defaults to META-INF/arooa.xml

Parameters:
resource -

isExludeParent

public boolean isExludeParent()

setExcludeParent

public void setExcludeParent(boolean exludeParent)
Set to true to exclude arooa.xml files in the parent class loader.

Parameters:
exludeParent -