以下哪种命名没有体现出使用了某种面向对象的设计模式( )
OrderFactory
LoginAdapter
ResourceObserver
CustomPattern
在Java中,常用的设计模式包括创建型模式、结构型模式和行为型模式。根据命名规则,可以通过方法名或类名识别出模式的应用。以下是一些常见设计模式的命名规则示例:
创建型模式:
工厂方法模式: create 或 FactoryMethod
抽象工厂模式: create 或 AbstractFactory
建造者模式: Builder
单例模式: Singleton
原型模式: Prototype
结构型模式:
适配器模式: Adapter
装饰器模式: Decorator
代理模式: Proxy
外观模式: Facade
桥接模式: Bridge
组合模式: Composite
享元模式: Flyweight
行为型模式:
策略模式: Strategy
模板方法模式: TemplateMethod
观察者模式: Observer
迭代器模式: Iterator
责任链模式: Chain of Responsibility
命令模式: Command
状态模式: State
访问者模式: Visitor
解释器模式: Interpreter
中介者模式: Mediator
备忘录模式: Memento
创建型模式:
工厂方法模式: create 或 FactoryMethod
抽象工厂模式: create 或 AbstractFactory
建造者模式: Builder
单例模式: Singleton
原型模式: Prototype
结构型模式:
适配器模式: Adapter
装饰器模式: Decorator
代理模式: Proxy
外观模式: Facade
桥接模式: Bridge
组合模式: Composite
享元模式: Flyweight
行为型模式:
策略模式: Strategy
模板方法模式: TemplateMethod
观察者模式: Observer
迭代器模式: Iterator
责任链模式: Chain of Responsibility
命令模式: Command
状态模式: State
访问者模式: Visitor
解释器模式: Interpreter
中介者模式: Mediator
备忘录模式: Memento