|
||||||||||
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.metro.tools.TypeBuilderTask
public class TypeBuilderTask
The TypeTask creates a serialized descriptor of a component type.
Field Summary |
---|
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 | |
---|---|
TypeBuilderTask()
|
Method Summary | |
---|---|
Type |
buildType(Class subject)
Build the type. |
Type |
buildType(ClassLoader classloader)
Build the type. |
CategoriesDescriptorDataType |
createCategories()
Create a new services datatype. |
ServicesDataType |
createServices()
Create a new services datatype. |
StateDataType |
createState()
Create a state descriptor for the component. |
void |
execute()
Execute the task. |
URI |
getBuilderURI()
Return a uri identitifying the builder. |
protected String |
getClassname()
Return the type classname. |
protected String |
getName()
Return the type name. |
URI |
getTypeHandlerURI()
Return a urn identitifying the component type strategy that this builder is supporting. |
void |
setClass(String classname)
Set the classname of the type. |
void |
setCollection(String value)
Set the type collection policy. |
void |
setLifestyle(String value)
Set the type lifestyle policy. |
void |
setName(String name)
Set the name of the type. |
void |
setThreadsafe(boolean flag)
Set the threadsafe flag. |
protected static URI |
setupURI(String spec)
Internal utility to create a static uri. |
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 |
Constructor Detail |
---|
public TypeBuilderTask()
Method Detail |
---|
public void setName(String name)
name
- the component namepublic void setClass(String classname)
classname
- the component type classnamepublic void setThreadsafe(boolean flag)
flag
- true if the component type is threadsafepublic void setCollection(String value)
value
- the collection policy valuepublic void setLifestyle(String value)
value
- the lifestyle policy valuepublic ServicesDataType createServices()
public CategoriesDescriptorDataType createCategories()
public StateDataType createState()
public URI getTypeHandlerURI()
public URI getBuilderURI()
public Type buildType(ClassLoader classloader) throws IntrospectionException, IOException
buildType
in interface TypeBuilder
classloader
- the classloader to use for type creation
IntrospectionException
- if a class introspection error occurs
IOException
- if an I/O error occurspublic Type buildType(Class subject) throws IntrospectionException, IOException
subject
- the implementation class
IntrospectionException
- if a class introspection error occurs
IOException
- if an I/O error occurspublic void execute()
execute
in class Task
protected String getName()
protected String getClassname()
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 |