Class RoleEntryImpl

java.lang.Object
org.apache.fulcrum.yaafi.framework.role.RoleEntryImpl
All Implemented Interfaces:
RoleEntry

public class RoleEntryImpl extends Object implements RoleEntry
Interface exposed by the ServiceContainerImpl
Author:
Siegfried Goeschl
  • Constructor Details

    • RoleEntryImpl

      public RoleEntryImpl(String name, String defaultClass, String shorthand, boolean earlyInit, String description, String componentType, String componentFlavour, boolean hasProxy, ArrayList<String> interceptorList, String logCategory)
      YAAFI role entry
      Parameters:
      name - the name of the service component to be used for the service lookup
      defaultClass - the name of the implementation class of the service component
      shorthand - the short name of the service component
      earlyInit - do we incarnate the instance of the service component during start-up?
      description - a description for the service component if any
      componentType - the type of service component
      componentFlavour - the flavour of the gicen component type
      hasProxy - create a dynamic proxy
      interceptorList - the list of service interceptor to be invoked
      logCategory - the category for creating the logger
  • Method Details

    • getComponentType

      public String getComponentType()
      Specified by:
      getComponentType in interface RoleEntry
      Returns:
      Returns the componentType.
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface RoleEntry
      Returns:
      Returns the description.
    • getImplementationClazzName

      public String getImplementationClazzName()
      Specified by:
      getImplementationClazzName in interface RoleEntry
      Returns:
      Returns the implementationClazzName.
    • isEarlyInit

      public boolean isEarlyInit()
      Specified by:
      isEarlyInit in interface RoleEntry
      Returns:
      Returns the isEarlyInit.
    • getName

      public String getName()
      Specified by:
      getName in interface RoleEntry
      Returns:
      Returns the name.
    • getShorthand

      public String getShorthand()
      Specified by:
      getShorthand in interface RoleEntry
      Returns:
      Returns the shorthand.
    • getComponentFlavour

      public String getComponentFlavour()
      Specified by:
      getComponentFlavour in interface RoleEntry
      Returns:
      Returns the componentFlavour.
    • hasDynamicProxy

      public boolean hasDynamicProxy()
      Specified by:
      hasDynamicProxy in interface RoleEntry
      Returns:
      Returns the hasDynamicProxy.
    • setHasDynamicProxy

      public void setHasDynamicProxy(boolean hasProxy)
      Specified by:
      setHasDynamicProxy in interface RoleEntry
      Parameters:
      hasProxy - The hasDynamicProxy to set.
    • hasInterceptor

      public boolean hasInterceptor(String interceptorName)
      Determines if the given name of the interceptor is already defined.
      Parameters:
      interceptorName - the name of the interceptor
      Returns:
      true if it is already defined
    • addInterceptors

      public void addInterceptors(Collection<?> collection)
      Adds all given interceptors but avoiding duplicates.
      Specified by:
      addInterceptors in interface RoleEntry
      Parameters:
      collection - the interceptors to be added
    • getInterceptorList

      public String[] getInterceptorList()
      Specified by:
      getInterceptorList in interface RoleEntry
      Returns:
      Returns the interceptorList.
    • getLogCategory

      public String getLogCategory()
      Specified by:
      getLogCategory in interface RoleEntry
      Returns:
      Returns the logCategory.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: