| Modifier and Type | Field and Description |
|---|---|
| private Class | |
| private Class | |
| private ClassLoader | |
| private String | |
| private Class | |
| private String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Object | |
| private Object | Returns: the instantiatedObject, will never be null.Get the constructor of the definition and invoke it. |
| private String | |
| public ClassLoader | Returns: the classloader for this definition.Get the classloader for this definition. |
| public String | Returns: the name of the class of this definition.Get the classname of the definition. |
| public Class | Returns: the exposed class - may return null if unable to load the classthe current project. project)Get the exposed class for this definition. |
| public String | |
| public Class | Returns: the type of the definition.the current project. project)Get the definition class. |
| private Object | |
| public < return type of the method T> T | Returns: a newly constructed and bound instance.class to create newclass, Project the project to use project)Inner implementation of the |
| public Class | Returns: the class that implements this componentTry and load a class, with no attempt to catch any fault. |
| public boolean | |
| public boolean | Returns: true if the definitions are the same.another definition. other, Project the project the definition. project)Equality method for this definition (assumes the names are the same). |
| public void | |
| public void | setAdaptToClass(Class<?>
the assignable class. adaptToClass)Set the assignable class for this definition. |
| public void | |
| public void | setClassLoader(ClassLoader
the ClassLoader. classLoader)Set the classloader to use to create an instance of the definition. |
| public void | |
| public void | |
| public void | |
| public boolean | Returns: true if the definitions are the same.the definition to compare to. other, Project the current project. project)Similar definition; used to compare two definitions defined twice with the same name and the same types. |
| adapterClass | back to summary |
|---|---|
| private Class<?> adapterClass | |
| adaptToClass | back to summary |
|---|---|
| private Class<?> adaptToClass | |
| classLoader | back to summary |
|---|---|
| private ClassLoader classLoader | |
| className | back to summary |
|---|---|
| private String className | |
| clazz | back to summary |
|---|---|
| private Class<?> clazz | |
| name | back to summary |
|---|---|
| private String name | |
| restrict | back to summary |
|---|---|
| private boolean restrict | |
| AntTypeDefinition | back to summary |
|---|---|
| public AntTypeDefinition() | |
| checkClass | back to summary |
|---|---|
| public void checkClass(Project project) Checks if the attributes are correct.
| |
| create | back to summary |
|---|---|
| public Object create(Project project) Create an instance of the definition. The instance may be wrapped in a proxy class. | |
| createAndSet | back to summary |
|---|---|
| private Object createAndSet(Project project, Class<?> c) Get the constructor of the definition and invoke it.
| |
| extractClassname | back to summary |
|---|---|
| private String extractClassname(Class<?> c) | |
| getClassLoader | back to summary |
|---|---|
| public ClassLoader getClassLoader() Get the classloader for this definition.
| |
| getClassName | back to summary |
|---|---|
| public String getClassName() Get the classname of the definition.
| |
| getExposedClass | back to summary |
|---|---|
| public Class Get the exposed class for this definition. This will be a proxy class (adapted class) if there is an adapter class and the definition class is not assignable from the assignable class. | |
| getName | back to summary |
|---|---|
| public String getName() Return the definition's name.
| |
| getTypeClass | back to summary |
|---|---|
| public Class Get the definition class. | |
| icreate | back to summary |
|---|---|
| private Object icreate(Project project) Create a component object based on its definition.
| |
| innerCreateAndSet | back to summary |
|---|---|
| public <T> T innerCreateAndSet(Class<T> newclass, Project project) throws NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException Inner implementation of the
| |
| innerGetTypeClass | back to summary |
|---|---|
| public Class Try and load a class, with no attempt to catch any fault.
| |
| isRestrict | back to summary |
|---|---|
| public boolean isRestrict() Get the restrict attribute.
| |
| sameDefinition | back to summary |
|---|---|
| public boolean sameDefinition(AntTypeDefinition other, Project project) Equality method for this definition (assumes the names are the same).
| |
| setAdapterClass | back to summary |
|---|---|
| public void setAdapterClass(Class<?> adapterClass) Set the adapter class for this definition. This class is used to adapt the definitions class if required.
| |
| setAdaptToClass | back to summary |
|---|---|
| public void setAdaptToClass(Class<?> adaptToClass) Set the assignable class for this definition.
| |
| setClass | back to summary |
|---|---|
| public void setClass(Class<?> clazz) Set the class of the definition. As a side-effect may set the classloader and classname.
| |
| setClassLoader | back to summary |
|---|---|
| public void setClassLoader(ClassLoader classLoader) Set the classloader to use to create an instance of the definition.
| |
| setClassName | back to summary |
|---|---|
| public void setClassName(String className) Set the classname of the definition.
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Set the definition's name.
| |
| setRestrict | back to summary |
|---|---|
| public void setRestrict(boolean restrict) Set the restrict attribute.
| |
| similarDefinition | back to summary |
|---|---|
| public boolean similarDefinition(AntTypeDefinition other, Project project) Similar definition; used to compare two definitions defined twice with the same name and the same types. The classloader may be different but have the same path so #sameDefinition cannot be used.
| |