diff options
author | Diego <diegolparra@gmail.com> | 2014-02-22 19:13:22 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-02-22 19:13:22 -0300 |
commit | 753bd44440282141896a5f511c1fa53927acf511 (patch) | |
tree | 843fe96e35a35ad63fef7276956d85f1982bb576 /kamon-play/src/main/scala/kamon | |
parent | dd508c7a079a1ca7155aeff816a71861cf7bd126 (diff) | |
download | Kamon-753bd44440282141896a5f511c1fa53927acf511.tar.gz Kamon-753bd44440282141896a5f511c1fa53927acf511.tar.bz2 Kamon-753bd44440282141896a5f511c1fa53927acf511.zip |
WIP:play extension
Diffstat (limited to 'kamon-play/src/main/scala/kamon')
-rw-r--r-- | kamon-play/src/main/scala/kamon/play/Play.scala | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/kamon-play/src/main/scala/kamon/play/Play.scala b/kamon-play/src/main/scala/kamon/play/Play.scala new file mode 100644 index 00000000..da8622c0 --- /dev/null +++ b/kamon-play/src/main/scala/kamon/play/Play.scala @@ -0,0 +1,30 @@ +/* + * ========================================================================================= + * Copyright © 2013 2014 the kamon project <http://kamon.io/> + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific language governing permissions + * and limitations under the License. + * ========================================================================================= + */ + +package kamon.play + +import akka.actor.{ ExtendedActorSystem, Extension, ExtensionIdProvider, ExtensionId } +import kamon.Kamon + +object Play extends ExtensionId[PlayExtension] with ExtensionIdProvider { + override def lookup(): ExtensionId[_ <: Extension] = Play + override def createExtension(system: ExtendedActorSystem): PlayExtension = new PlayExtension(system) +} + +class PlayExtension(private val system: ExtendedActorSystem) extends Kamon.Extension { + println("Play extension loaded") + private val config = system.settings.config.getConfig("kamon.play") +} |