org.oddjob.arooa.deploy
Class ClassPathDescriptorFactory
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AROOA_FILE
public static final String AROOA_FILE
- See Also:
- Constant Field Values
ClassPathDescriptorFactory
public ClassPathDescriptorFactory()
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
-