public class AdminUserMenuItemProviderRegistrar extends Object implements org.springframework.beans.factory.BeanNameAware
className
or provider
must be set. Ordering can be
altered by using insertAfter
or insertBefore
properties.
Normally used from Spring.Constructor and Description |
---|
AdminUserMenuItemProviderRegistrar(AdminUserMenuService service)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
registerAdminUserMenuItemProvider()
Registers the item provider
|
void |
setBeanName(String strName)
Set the name under which to register the admin user menu item provider
|
void |
setClassName(String strClassName)
Class name of the admin user menu item provider
|
void |
setInsertAfter(String strAfterName)
Name of the item provider after which to insert this one
|
void |
setInsertBefore(String strBeforeName)
Name of the item provider before which to insert this one
|
void |
setProvider(IAdminUserMenuItemProvider provider)
Provider
|
@Inject public AdminUserMenuItemProviderRegistrar(AdminUserMenuService service)
service
- the admin user item servicepublic void setClassName(String strClassName) throws InstantiationException, IllegalAccessException, ClassNotFoundException
strClassName
- class nameInstantiationException
- if the class cannot be instantiatedIllegalAccessException
- if the class cannot be instantiatedIllegalStateException
- if the item provider is already setClassNotFoundException
- if the class cannot be foundpublic void setProvider(IAdminUserMenuItemProvider provider)
provider
- the providerIllegalStateException
- if the item provider is already setpublic void setInsertAfter(String strAfterName)
strAfterName
- item provider namepublic void setInsertBefore(String strBeforeName)
strBeforeName
- item provider name@PostConstruct public void registerAdminUserMenuItemProvider()
public void setBeanName(String strName)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
strName
- name of the admin user menu item providerCopyright © 2020 City of Paris. All rights reserved.