Class AccessMgrFactory
- java.lang.Object
-
- org.apache.directory.fortress.core.AccessMgrFactory
-
public final class AccessMgrFactory extends Object
Creates an instance of the AccessMgr object.The default implementation class is specified as
AccessMgrImpl
but can be overridden by adding theGlobalIds.ACCESS_IMPLEMENTATION
config property.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description AccessMgrFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AccessMgr
createInstance()
Create and return a reference toAccessMgr
object using HOME context.static AccessMgr
createInstance(String contextId)
Create and return a reference toAccessMgr
object.
-
-
-
Method Detail
-
createInstance
public static AccessMgr createInstance() throws SecurityException
Create and return a reference toAccessMgr
object using HOME context.- Returns:
- instance of
AccessMgr
. - Throws:
SecurityException
- in the event of failure during instantiation.
-
createInstance
public static AccessMgr createInstance(String contextId) throws SecurityException
Create and return a reference toAccessMgr
object.- Parameters:
contextId
- maps to sub-tree in DIT, e.g. ou=contextId, dc=example, dc=com.- Returns:
- instance of
AccessMgr
. - Throws:
SecurityException
- in the event of failure during instantiation.
-
-