# ClassMatcher Annotation DSL

Create a `classMatcher` annotation on the component with the following DSL values:

| DSL                                | Description                                                                                                              |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| any                                | Matches against any class path or method name                                                                            |
| annotatedWith:{annotation}         | Matches against the finding of an annotation in a cfcomponent                                                            |
| annotatedWith:{annotation}:{value} | Matches against the finding of an annotation value in a cfcomponent                                                      |
| mappings:{mappings}                | Matches to ONLY the named mapping(s) you pass to this method as a list or array.                                         |
| instanceOf:{classPath}             | Matches if the target object is an instance of the classPath. This internally uses the ColdFusion isInstanceOf() method. |
| regex:{regex}                      | Matches against a CFC instantiation path or function name using regular expressions                                      |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wirebox.ortusbooks.com/aspect-oriented-programming/aop-intro/auto-aspect-binding/classmatcher-annotation-dsl.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
