cuba.util.ddgen.tokens
Class CUBAComponent

java.lang.Object
  extended by cuba.util.ddgen.tokens.Interception
      extended by cuba.util.ddgen.tokens.CUBAComponent

public class CUBAComponent
extends Interception

Author:
Jan Wegener

Field Summary
 
Fields inherited from class cuba.util.ddgen.tokens.Interception
AROUND_INVOKE, LIFECYCLE, POST_ACTIVATE, POST_CONSTRUCT, PRE_DESTROY, PRE_PASSIVATE
 
Method Summary
 void addBaseInterceptor(java.lang.String className, java.lang.String method, java.lang.String methodType)
           
 void addComponentRef(ComponentReference ref)
           
 void addContainerTransaction(ContainerTransaction transaction)
           
 void addEntityManagerRef(EntityManagerReference ref)
           
 void addEnvEntry(EnvironmentEntry entry)
           
 void addInterceptor(Interception interceptor)
           
 void addRef(java.util.Map refs, Reference newRef)
           
 void addResourceRef(ResourceReference ref)
           
 Interception createBaseInterceptor(java.lang.String className)
           
 java.util.Collection getBaseInterceptors()
           
 java.lang.String getComponentClass()
           
 java.lang.String getComponentName()
           
 java.util.Collection getComponentRefs()
           
 java.lang.String getComponentType()
           
 java.util.Collection getContainerTransactions()
           
 java.lang.String getDescription()
           
 java.util.Collection getEntityManagerRefs()
           
 java.util.Collection getEnvEntries()
           
 java.lang.String getExternalInterface()
           
 java.util.Collection getInterceptors()
           
 java.lang.String getInternalInterface()
           
 java.util.Collection getResourceRefs()
           
 java.lang.String getTransactionType()
           
 boolean hasDependencies()
           
 boolean hasInterception(java.lang.String type)
           
 boolean hasInterception(java.lang.String type, java.util.Collection interceptors)
           
 boolean needsInjection()
           
static boolean needsInjection(java.util.Map refMap)
           
 void setComponentClass(java.lang.String string)
           
 void setComponentName(java.lang.String string)
           
 void setDescription(java.lang.String string)
           
 void setExternalInterface(java.lang.String string)
           
 void setInternalInterface(java.lang.String string)
           
 void setTransactionType(java.lang.String string)
           
 void setType(java.lang.String string)
           
 
Methods inherited from class cuba.util.ddgen.tokens.Interception
getAroundInvoke, getInterceptionMethod, getInterceptorClass, getPostActivate, getPostConstruct, getPreDestroy, getPrePassivate, setAroundInvoke, setInterceptionMethod, setPostActivate, setPostConstruct, setPreDestroy, setPrePassivate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addInterceptor

public void addInterceptor(Interception interceptor)

createBaseInterceptor

public Interception createBaseInterceptor(java.lang.String className)

addBaseInterceptor

public void addBaseInterceptor(java.lang.String className,
                               java.lang.String method,
                               java.lang.String methodType)
                        throws GeneratorException
Throws:
GeneratorException

getBaseInterceptors

public java.util.Collection getBaseInterceptors()

hasInterception

public boolean hasInterception(java.lang.String type,
                               java.util.Collection interceptors)
                        throws GeneratorException
Throws:
GeneratorException

hasInterception

public boolean hasInterception(java.lang.String type)
                        throws GeneratorException
Throws:
GeneratorException

addEnvEntry

public void addEnvEntry(EnvironmentEntry entry)

addRef

public void addRef(java.util.Map refs,
                   Reference newRef)
            throws GeneratorException
Throws:
GeneratorException

addComponentRef

public void addComponentRef(ComponentReference ref)
                     throws GeneratorException
Throws:
GeneratorException

addResourceRef

public void addResourceRef(ResourceReference ref)
                    throws GeneratorException
Throws:
GeneratorException

addEntityManagerRef

public void addEntityManagerRef(EntityManagerReference ref)
                         throws GeneratorException
Throws:
GeneratorException

addContainerTransaction

public void addContainerTransaction(ContainerTransaction transaction)

needsInjection

public static boolean needsInjection(java.util.Map refMap)

needsInjection

public boolean needsInjection()

hasDependencies

public boolean hasDependencies()

getComponentClass

public java.lang.String getComponentClass()

getComponentName

public java.lang.String getComponentName()

getComponentRefs

public java.util.Collection getComponentRefs()

getResourceRefs

public java.util.Collection getResourceRefs()

getEntityManagerRefs

public java.util.Collection getEntityManagerRefs()

getContainerTransactions

public java.util.Collection getContainerTransactions()

getInterceptors

public java.util.Collection getInterceptors()

getDescription

public java.lang.String getDescription()

getEnvEntries

public java.util.Collection getEnvEntries()

getTransactionType

public java.lang.String getTransactionType()

getExternalInterface

public java.lang.String getExternalInterface()

getInternalInterface

public java.lang.String getInternalInterface()

getComponentType

public java.lang.String getComponentType()

setComponentClass

public void setComponentClass(java.lang.String string)

setComponentName

public void setComponentName(java.lang.String string)

setDescription

public void setDescription(java.lang.String string)

setTransactionType

public void setTransactionType(java.lang.String string)

setExternalInterface

public void setExternalInterface(java.lang.String string)

setInternalInterface

public void setInternalInterface(java.lang.String string)

setType

public void setType(java.lang.String string)