Class RoleEntryImpl
java.lang.Object
org.apache.fulcrum.yaafi.framework.role.RoleEntryImpl
- All Implemented Interfaces:
RoleEntry
Interface exposed by the ServiceContainerImpl
- Author:
- Siegfried Goeschl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInterceptors
(Collection<?> collection) Adds all given interceptors but avoiding duplicates.String[]
getName()
boolean
boolean
hasInterceptor
(String interceptorName) Determines if the given name of the interceptor is already defined.boolean
void
setHasDynamicProxy
(boolean hasProxy) toString()
-
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 lookupdefaultClass
- the name of the implementation class of the service componentshorthand
- the short name of the service componentearlyInit
- do we incarnate the instance of the service component during start-up?description
- a description for the service component if anycomponentType
- the type of service componentcomponentFlavour
- the flavour of the gicen component typehasProxy
- create a dynamic proxyinterceptorList
- the list of service interceptor to be invokedlogCategory
- the category for creating the logger
-
-
Method Details
-
getComponentType
- Specified by:
getComponentType
in interfaceRoleEntry
- Returns:
- Returns the componentType.
-
getDescription
- Specified by:
getDescription
in interfaceRoleEntry
- Returns:
- Returns the description.
-
getImplementationClazzName
- Specified by:
getImplementationClazzName
in interfaceRoleEntry
- Returns:
- Returns the implementationClazzName.
-
isEarlyInit
public boolean isEarlyInit()- Specified by:
isEarlyInit
in interfaceRoleEntry
- Returns:
- Returns the isEarlyInit.
-
getName
-
getShorthand
- Specified by:
getShorthand
in interfaceRoleEntry
- Returns:
- Returns the shorthand.
-
getComponentFlavour
- Specified by:
getComponentFlavour
in interfaceRoleEntry
- Returns:
- Returns the componentFlavour.
-
hasDynamicProxy
public boolean hasDynamicProxy()- Specified by:
hasDynamicProxy
in interfaceRoleEntry
- Returns:
- Returns the hasDynamicProxy.
-
setHasDynamicProxy
public void setHasDynamicProxy(boolean hasProxy) - Specified by:
setHasDynamicProxy
in interfaceRoleEntry
- Parameters:
hasProxy
- The hasDynamicProxy to set.
-
hasInterceptor
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
Adds all given interceptors but avoiding duplicates.- Specified by:
addInterceptors
in interfaceRoleEntry
- Parameters:
collection
- the interceptors to be added
-
getInterceptorList
- Specified by:
getInterceptorList
in interfaceRoleEntry
- Returns:
- Returns the interceptorList.
-
getLogCategory
- Specified by:
getLogCategory
in interfaceRoleEntry
- Returns:
- Returns the logCategory.
-
toString
-