Detects Factory pattern (Factory Method and Abstract Factory). Factory defines an interface for creating objects, letting subclasses decide which class to instantiate. Detection: Surface (name contains 'Factory', 'create', 'make'), Deep (parameterized creation methods + inheritance hierarchy), Full (polymorphic object creation).
| Visibility | Name | Type | Description |
|---|---|---|---|
| public | pattern_type | str | |
| public | category | str |
| Visibility | Name | Description |
|---|---|---|
| public | detect_surface() | |
| public | detect_deep() |
| Name | Value |
|---|---|
| name | FactoryDetector |
| stereotype | null |
| visibility | public |
| isAbstract | false |
| isFinalSpecialization | false |
| isLeaf | false |
| isActive | false |