public class ProjectCreateRegistrarImpl extends Object implements ProjectCreateRegistrar, ProjectCreateNotifier
Modifier and Type | Field and Description |
---|---|
protected Map<String,ProjectCreateHandler> |
handlers |
Constructor and Description |
---|
ProjectCreateRegistrarImpl() |
Modifier and Type | Method and Description |
---|---|
protected Collection<ProjectCreateHandler> |
getHandlers() |
boolean |
notifyAllHandlers(ProjectCreatedData projectCreatedData)
Notifies all
ProjectCreateHandler objects that a project as been created. |
void |
register(ProjectCreateHandler handlerToAdd)
Registers a handler that will get notifications every time a project is created.
|
void |
unregister(ProjectCreateHandler handlerToRemove)
Unregisters a handler, which means that it will stop getting notifications for project creation.
|
protected final Map<String,ProjectCreateHandler> handlers
public boolean notifyAllHandlers(ProjectCreatedData projectCreatedData)
ProjectCreateNotifier
ProjectCreateHandler
objects that a project as been created.notifyAllHandlers
in interface ProjectCreateNotifier
projectCreatedData
- Object encapsulating the information about the recently created project.protected Collection<ProjectCreateHandler> getHandlers()
public void register(ProjectCreateHandler handlerToAdd)
ProjectCreateRegistrar
register
in interface ProjectCreateRegistrar
handlerToAdd
- The handler to register.public void unregister(ProjectCreateHandler handlerToRemove)
ProjectCreateRegistrar
unregister
in interface ProjectCreateRegistrar
handlerToRemove
- The handler to unregister.Copyright © 2002-2024 Atlassian. All Rights Reserved.