pt.digitalis.dif.dem.config
Class DEMRegistratorImpl

java.lang.Object
  extended by pt.digitalis.dif.dem.config.DEMRegistratorImpl
All Implemented Interfaces:
IDEMRegistrator

public final class DEMRegistratorImpl
extends Object
implements IDEMRegistrator

Holds the list of packages that will be searched for Entity classes by the DIFCodeGenerator. Provides methods to add packages to the list of packages, and to access the list.

Author:
Pedro Viegas pviegas@digitalis.pt, Rodrigo Gonçalves rgoncalves@digitalis.pt
Created on:
Jul 23, 2007

Constructor Summary
DEMRegistratorImpl()
           
 
Method Summary
 void excludeEntities(Entity entityType, List<String> entities)
          Exclude the list of entities to exclude from the load process
 List<String> getEntitiesToExclude(Entity entityType)
          Get the list of entities to be exclude from the DEM load process
 boolean registerAppSuiteBasePackage(String packageName)
          Adds a package to the folder list.
 boolean registerMetaModelPackage(String packageName)
          Adds a package to the package list of classes to enrich.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DEMRegistratorImpl

public DEMRegistratorImpl()
Method Detail

excludeEntities

public void excludeEntities(Entity entityType,
                            List<String> entities)
Description copied from interface: IDEMRegistrator
Exclude the list of entities to exclude from the load process

Specified by:
excludeEntities in interface IDEMRegistrator
Parameters:
entityType - the entity type
entities - the list of entities to exclude
See Also:
IDEMRegistrator.excludeEntities(pt.digitalis.dif.dem.Entity, java.util.List)

getEntitiesToExclude

public List<String> getEntitiesToExclude(Entity entityType)
Description copied from interface: IDEMRegistrator
Get the list of entities to be exclude from the DEM load process

Specified by:
getEntitiesToExclude in interface IDEMRegistrator
Parameters:
entityType - the entity type
Returns:
the list of entities to be exclude
See Also:
IDEMRegistrator.getEntitiesToExclude(pt.digitalis.dif.dem.Entity)

registerAppSuiteBasePackage

public boolean registerAppSuiteBasePackage(String packageName)
Description copied from interface: IDEMRegistrator
Adds a package to the folder list. This CodeGen utility will search a group of conventioned subpackages and none other: providers, applications, services, stages, validators

Specified by:
registerAppSuiteBasePackage in interface IDEMRegistrator
Parameters:
packageName - the package name
Returns:
T if app suite was successfully added, F otherwise
See Also:
IDEMRegistrator.registerAppSuiteBasePackage(java.lang.String)

registerMetaModelPackage

public boolean registerMetaModelPackage(String packageName)
Description copied from interface: IDEMRegistrator
Adds a package to the package list of classes to enrich. This CodeGen utility will search all subpackages inside the given package for annotated entity classes

Specified by:
registerMetaModelPackage in interface IDEMRegistrator
Parameters:
packageName - the package name
Returns:
T if package was successfully registered, F otherwise
See Also:
IDEMRegistrator.registerMetaModelPackage(java.lang.String)


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.