|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMUM.repositoryService.ComponentDescriptorRepositoryFile
This class is a Component Repository. It implements the interface IComponentRepository. Pay attention!!!! All works properly if and only if the files and directories used as component repository are not utilized by others applications, even a file explorer.
IComponentRepository
Constructor Summary | |
ComponentDescriptorRepositoryFile(java.lang.String absoluteFileName,
java.io.PrintStream out)
This is the constructor. |
Method Summary | |
boolean |
eliminateComponentDescriptor(java.lang.String packageName,
java.lang.String interfaceName)
This method eliminate an entry in the DB |
java.lang.Object |
getClassInstance(java.lang.String packageName,
java.lang.String interfaceName,
java.lang.Object[] arguments)
This method returns a factory for the desired interface |
ComponentDescriptor |
getComponentDescriptor(java.lang.String packageName,
java.lang.String interfaceName)
This method given a package name and an interface name returns the hashSet which contains all the classes needed by that component. |
boolean |
insertComponentDescriptor(ComponentDescriptor componentDescriptor)
This method introduce a new entry in the DB |
boolean |
insertComponentDescriptor(java.lang.String packageName,
java.lang.String interfaceName,
java.lang.String className,
java.util.HashSet classList)
This method introduce a new entry in the DB. |
boolean |
isPresentComponentDescriptor(java.lang.String packageName,
java.lang.String interfaceName)
This method query the DB if the required component is present |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ComponentDescriptorRepositoryFile(java.lang.String absoluteFileName, java.io.PrintStream out) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
Method Detail |
public boolean insertComponentDescriptor(java.lang.String packageName, java.lang.String interfaceName, java.lang.String className, java.util.HashSet classList) throws java.io.IOException
insertComponentDescriptor
in interface IComponentDescriptorRepository
packageName
- the name of the class's packageinterfaceName
- the name of the class's interfaceclassList
- the list of the classes componing this componentclassName
- the name of the class
java.io.IOException
public boolean insertComponentDescriptor(ComponentDescriptor componentDescriptor) throws java.io.IOException
insertComponentDescriptor
in interface IComponentDescriptorRepository
java.io.IOException
public ComponentDescriptor getComponentDescriptor(java.lang.String packageName, java.lang.String interfaceName)
getComponentDescriptor
in interface IComponentDescriptorRepository
packageName
- the name of the class's packageinterfaceName
- the name of the class's interface
public boolean eliminateComponentDescriptor(java.lang.String packageName, java.lang.String interfaceName) throws java.io.IOException
eliminateComponentDescriptor
in interface IComponentDescriptorRepository
packageName
- the name of the class's packageinterfaceName
- the name of the class's interface
java.io.IOException
public boolean isPresentComponentDescriptor(java.lang.String packageName, java.lang.String interfaceName)
isPresentComponentDescriptor
in interface IComponentDescriptorRepository
packageName
- the name of the class's packageinterfaceName
- the name of the class's interface
public java.lang.Object getClassInstance(java.lang.String packageName, java.lang.String interfaceName, java.lang.Object[] arguments) throws ComponentDescriptorRepositoryException, java.lang.IllegalAccessException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.reflect.InvocationTargetException
getClassInstance
in interface IComponentDescriptorRepository
packageName
- the name of the class's packageinterfaceName
- the name of the class's interface
ComponentDescriptorRepositoryException
java.lang.IllegalAccessException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.reflect.InvocationTargetException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |