|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
net.dpml.tools.tasks.GenericTask
net.dpml.tools.tasks.PartTask
net.dpml.metro.tools.ComponentBuilderTask
Task that handles the construction of a serialized container part.
| Nested Class Summary | |
static class |
ComponentBuilderTask.URIPersistenceDelegate
Utility class used to handle uri persistence. |
| Field Summary | |
static URI |
PART_BUILDER_URI
Constant builder uri. |
static URI |
PART_HANDLER_URI
Constant controller uri. |
static URI |
STRATEGY_BUILDER_URI
Constant strategy builder uri. |
| Fields inherited from class net.dpml.tools.tasks.PartTask |
PLUGIN_DESCRIPTION_KEY, PLUGIN_HANDLER_KEY, PLUGIN_TITLE_KEY, TYPE |
| Fields inherited from class net.dpml.tools.tasks.GenericTask |
ASC_EXT, GPG_EXE_KEY, MD5_EXT |
| Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
| Constructor Summary | |
ComponentBuilderTask()
|
|
| Method Summary | |
protected Part |
build(Resource resource)
Build the plugin definition. |
Directive |
buildDirective(ClassLoader classloader)
Build the part. |
PartReference |
buildPartReference(ClassLoader classloader,
Type type)
Build a part reference. |
CategoriesDataType |
createCategories()
Create a new categories data type. |
protected ClassLoader |
createClassLoader()
Return the runtime classloader. |
ContextDataType |
createContext()
Create a new context data type. |
PartsDataType |
createParts()
Create a new part datatype. |
ActivationPolicy |
getActivationPolicy()
Return the activation policy. |
URI |
getBuilderURI()
Return a uri identitifying the builder. |
protected String |
getClassname()
Return the component classname. |
CollectionPolicy |
getCollectionPolicy(Type type)
Return the collection policy. |
String |
getKey()
Return the part key. |
LifestylePolicy |
getLifestylePolicy()
Return the lifestyle policy declared relative to usage. |
protected String |
getName(String typeName)
Return the component name. |
URI |
getPartHandlerURI()
Return a urn identitifying the part handler for this builder. |
void |
setActivation(String policy)
Set the activation policy value. |
void |
setAlias(boolean alias)
Set the alias production flag value. |
void |
setCollection(String policy)
Set the gabage collection policy value. |
void |
setExtends(URI uri)
Set the extends uri feature. |
void |
setKey(String key)
Set the part key. |
void |
setLifestyle(String policy)
Set the lifestyle policy vlaue. |
void |
setName(String name)
Set the component name. |
void |
setType(String classname)
Set the component classname. |
protected static URI |
setupURI(String spec)
Utility function to create a static uri. |
| Methods inherited from class net.dpml.tools.tasks.PartTask |
execute, getClasspath, getContext, getInfo, setDest, setTest, writePart |
| Methods inherited from class net.dpml.tools.tasks.GenericTask |
asc, checksum, copy, deleteDir, getContext, getLibrary, getResource, init, isInitialized, mkDir |
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final URI PART_HANDLER_URI
public static final URI STRATEGY_BUILDER_URI
public static final URI PART_BUILDER_URI
| Constructor Detail |
public ComponentBuilderTask()
| Method Detail |
public void setKey(String key)
key - the keypublic void setAlias(boolean alias)
alias - true if alias production is requestedpublic void setExtends(URI uri)
uri - the uri from which the component extendspublic void setName(String name)
name - the component namepublic void setType(String classname)
classname - the component type classnamepublic void setLifestyle(String policy)
policy - the lifestyle policypublic void setCollection(String policy)
policy - the collection policypublic void setActivation(String policy)
policy - the activation policypublic CategoriesDataType createCategories()
public ContextDataType createContext()
public PartsDataType createParts()
protected Part build(Resource resource)
build in class PartTaskresource - the project resource definition
protected ClassLoader createClassLoader()
public URI getBuilderURI()
public URI getPartHandlerURI()
public Directive buildDirective(ClassLoader classloader)
throws IntrospectionException,
IOException,
ClassNotFoundException
classloader - the classloader
IntrospectionException - if an error occurs while introspecting the component class
IOException - if an I/O error occurs
ClassNotFoundException - if the component class cannot be foundpublic String getKey()
getKey in interface PartReferenceBuilder
public PartReference buildPartReference(ClassLoader classloader,
Type type)
throws IntrospectionException,
IOException,
ClassNotFoundException
buildPartReference in interface PartReferenceBuilderclassloader - the classloadertype - the component type
IntrospectionException - if an error occurs while introspecting the component class
IOException - if an I/O error occurs
ClassNotFoundException - if the component class cannot be foundprotected String getName(String typeName)
typeName - the component type name (used as a default)
protected String getClassname()
public LifestylePolicy getLifestylePolicy()
public CollectionPolicy getCollectionPolicy(Type type)
type - the component type from which the default collection
policy can be resolved if needed
public ActivationPolicy getActivationPolicy()
protected static URI setupURI(String spec)
spec - the uri spec
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||